Commit Graph

245 Commits

Author SHA1 Message Date
David Dworken
519f85cd98 And what about this? 2022-04-17 10:40:06 -07:00
David Dworken
39337e0a52 Bump hishtory version to v0.29 2022-04-17 10:38:33 -07:00
David Dworken
76ebb73326 Does this work to generate SLSA binaries for two OSs 2022-04-17 10:38:12 -07:00
David Dworken
15d8e241ac Bump hishtory version to v0.28 2022-04-17 10:30:15 -07:00
David Dworken
cf55805578 Verify the version tag in SLSA too 2022-04-17 10:29:48 -07:00
David Dworken
f22bb5b4d9 Fix TODOs in tests 2022-04-16 23:02:36 -07:00
David Dworken
31288fb361 Better tests for the update flow 2022-04-16 23:00:04 -07:00
David Dworken
945cf8cea3 Bump hishtory version to v0.27 2022-04-16 22:33:35 -07:00
David Dworken
8aa44e5e26 Add missing return 2022-04-16 21:54:34 -07:00
David Dworken
b9c28bbfbe Bump hishtory version to v0.26 2022-04-16 21:39:55 -07:00
David Dworken
339b115542 Fix version comparison logic 2022-04-16 21:39:40 -07:00
David Dworken
a827455be7 Better commit message for releases 2022-04-16 21:30:51 -07:00
David Dworken
81acbed5bd Bump hishtory version to 25 2022-04-16 21:30:12 -07:00
David Dworken
f7c95f95b4 Fix the ldflags attempt #2 2022-04-16 21:29:59 -07:00
David Dworken
f3f01583a1 Bump hishtory version 2022-04-16 21:15:36 -07:00
David Dworken
8a962b7993 try again for setting the ldflags in the action builder 2022-04-16 21:15:19 -07:00
David Dworken
c765a5d663 Bump hishtory version 2022-04-16 21:02:43 -07:00
David Dworken
158f08f5c6 Improved update flow
Using the previously added new API endpoint, the update flow can now skip updates if the latest version is already installed. This also improves the output by making it so update can print the version. Also improved the error handling.
2022-04-16 20:50:02 -07:00
David Dworken
735a98a611 Add API endpoint for getting information about the latest hishtory version and download URLs 2022-04-16 16:34:09 -07:00
David Dworken
05f1af8714 Add trigger-cron endpoint + optimize dockerfile for server 2022-04-16 16:28:53 -07:00
David Dworken
ab04756bab Bump hishtory version 2022-04-16 16:26:45 -07:00
David Dworken
cb62bf48fa Bump hishtory version 2022-04-16 16:02:59 -07:00
David Dworken
3d7af0cd4b Add SLSA verification of updated binary
Currently the SLSA verifier is meant to be used a standalone binary. I copied a bit of code from their main (and imported the rest of their code as a library) in order to support embedding it as a library. This ensures that the updated hishtory passes SLSA L3.
2022-04-16 16:02:07 -07:00
David Dworken
d7ad96906f Add todo + remove pending features that are already done 2022-04-16 12:39:28 -07:00
David Dworken
d7d8c0adf1 Bump hishtory version 2022-04-16 11:37:54 -07:00
David Dworken
a436edbd16 Add backend code to delete entries that have already been read + start collecitng data on usage data so we can eventually prune data from users that are no longer using hishtory 2022-04-16 11:37:43 -07:00
David Dworken
f80c39f6f0 Bump hishtory version 2022-04-16 10:47:03 -07:00
David Dworken
def83d6b0e Add verbose flag for the status subcommand 2022-04-16 10:46:57 -07:00
David Dworken
2b676a935b Optimize server by only sending new-ish records to the client 2022-04-16 10:30:39 -07:00
David Dworken
a65fbb7192 Bump hishtory version 2022-04-16 01:11:58 -07:00
David Dworken
62a83b76b1 Add a test for displaying a table 2022-04-16 01:09:25 -07:00
David Dworken
a9af51f5b2 Improved tests 2022-04-16 00:56:08 -07:00
David Dworken
c369661e53 More server-side logging + client-side logging 2022-04-16 00:44:47 -07:00
David Dworken
bdfb7c0a75 Delete unused file that I thought I had already deleted 2022-04-16 00:13:27 -07:00
David Dworken
df59b43e03 Add request logs to the backend 2022-04-15 23:19:39 -07:00
David Dworken
6df100ebbd Fix variable collision in tests 2022-04-15 22:54:38 -07:00
David Dworken
b9204bf649 add a test for a complex command getting recorded 2022-04-15 18:24:58 -07:00
David Dworken
5b59141c3a optimize test execution time by only building the client once + add Makefile target for action tests 2022-04-15 18:12:26 -07:00
David Dworken
682a063e95 making tests pass on actions by grepping out pipefail which is flakily recorded due to actions not recording line numbers 2022-04-15 18:06:48 -07:00
David Dworken
ba2f8ae452 Bump hishtory version 2022-04-15 11:20:32 -07:00
David Dworken
ab0d9d4c90 optimize test runtime by running a single server instance per-file rather than one per test 2022-04-15 11:20:23 -07:00
David Dworken
e906785336 Bump hishtory version 2022-04-15 00:17:18 -07:00
David Dworken
d1d78de0e4 whoops, inverted boolean condition so the test still failed 2022-04-15 00:17:02 -07:00
David Dworken
fd2a642374 Make the test pass on github actions 2022-04-15 00:10:22 -07:00
David Dworken
b09b725f49 Properly skip recording of commands prefixed with a space to match bash's history behavior 2022-04-15 00:04:49 -07:00
David Dworken
2fdfbb9d20 Bump hishtory version 2022-04-14 20:25:32 -07:00
David Dworken
dc6fb6a47b Refactor tests to make them non-flakey and pass on actions
This required adding the ability to have hishtory run synchronously to avoid reconditions. I also added additional waiting code. Also a whole bunch of new tests and disabled gorm's default logger which also caued flakeyness
2022-04-14 20:18:49 -07:00
David Dworken
24db9d825e integration test running on actions 2022-04-13 21:48:52 -07:00
David Dworken
e854c8304f TestUpdate running in github actions 2022-04-13 21:34:18 -07:00
David Dworken
e2b5fd13bf tests passing inside act, hopefully on real actions 2022-04-13 21:30:27 -07:00