Commit Graph

54 Commits

Author SHA1 Message Date
David Dworken
9fdd676ed5
Increase test timeout since github actions tests are slow on macos 2023-08-30 11:13:18 -07:00
David Dworken
f9da1bf8b6
Rewrite makefile for deploy-static to work from my arm macbook. The docker compose rm is needed because hishtory-static has a volume that was getting reused 2023-02-28 21:22:35 -08:00
David Dworken
f502cbee1d
Fix memory leak caused by not closing resp.Body (#62) and also fix the server to work when the DD integration is disabled 2022-12-23 17:17:44 -08:00
David Dworken
63a9f67771
Rm the hishtory binary before docker build to avoid wasting time transferring it 2022-12-17 21:26:18 -08:00
David Dworken
1e7f5d9119
Add clean for the test cache for make ftest target 2022-12-16 21:18:37 -08:00
David Dworken
53a417296e
Improve backup and restore env function + fix makefile with quotes + remove the zdotdir created file 2022-11-13 16:53:37 -08:00
David Dworken
072a0d0a18
Add ftest command for filter testing 2022-11-13 06:34:41 -08:00
David Dworken
5cd403a22b
Add HISHTORY_SKIP_INIT_IMPORT to makefile to see if that fixes github action tests 2022-11-12 07:42:27 -08:00
David Dworken
6f53fdd41e
Better handling for control-c with control-r search in the shell + update bubbletea 2022-11-11 16:42:07 -08:00
David Dworken
e520b23858
Improve history importing to not double import HISTFILE + improve tests 2022-11-11 18:12:23 -05:00
David Dworken
21a7a48afb
Migrate to logrus so we can auto-rotate the log file 2022-11-09 16:14:44 -08:00
David Dworken
fadc8ad70e
go test -v to make it so I can monitor github actions 2022-11-05 23:57:16 -07:00
David Dworken
e46221f893
Revert all the windows+freebsd commits since they seem to be hopelessly broken 2022-11-04 23:14:34 -07:00
David Dworken
02b093c56d
Increase test timeout for windows tests 2022-11-04 23:09:48 -07:00
David Dworken
18e7580b71
Add ssh command to finish the deploy-static make command 2022-11-03 18:17:43 -07:00
David Dworken
c4a66bb428 Remove -v from make test for shorter output 2022-10-23 15:07:28 -07:00
David Dworken
f3758dc376 Add fix for the weird zsh bug + disable tmate 2022-10-23 00:36:23 -07:00
David Dworken
f2d5026282 Add docker compose integration to the makefile 2022-10-18 14:45:17 -07:00
David Dworken
ad809efef6 Migrate hishtory from k8s to docker compose 2022-10-18 11:53:35 -07:00
David Dworken
8e6a55237c Try running all tests in github actions with a longer timeout 2022-10-09 19:04:03 -07:00
David Dworken
e91e6ab237 Add longer timeout for running tests because github actions on macos are slow 2022-09-27 22:02:55 -07:00
David Dworken
9895a5c677 Improve copy function error checking + delete make fuzz because of https://github.com/golang/go/issues/52569 2022-09-22 23:20:21 -07:00
David Dworken
4e4caef10f Add initial implementation of fuzz testing that fuzzes multiple devices and multiple users 2022-09-22 23:06:28 -07:00
David Dworken
55f0f97d29 Fix tests for importing so they pass on github actions 2022-09-17 21:56:39 -07:00
David Dworken
8d93d08f80 Update make release command for new release system 2022-06-04 20:35:01 -07:00
David Dworken
1da703e9c2 Working update code for macos 2022-05-26 23:45:08 -07:00
David Dworken
93e59f37ec Fix downloading the xattr file 2022-04-25 22:21:17 -07:00
David Dworken
d214395dfd Tag the commit containing the xattrs 2022-04-25 20:59:12 -07:00
David Dworken
10ee085d4c Remove unnecessary set -m calls, speed up the local make acttest command, embed ReleaseVersion into the test server to fix the test failures on macos, and update install to be resistant to bashrc and zshrc not existing 2022-04-19 21:05:54 -07:00
David Dworken
15bec30315 Add fake event with head_commit to restore the ability to run the github action test locally 2022-04-17 21:47:49 -07:00
David Dworken
be6ccbbcc6 Add untested update operation that works with the new releases 2022-04-17 12:30:46 -07:00
David Dworken
e98783d30f Add server-side code to handle updates for non-linux 2022-04-17 12:02:56 -07:00
David Dworken
4036a4594b Add config for building/releasing binaries for other OSs 2022-04-17 11:44:57 -07:00
David Dworken
a827455be7 Better commit message for releases 2022-04-16 21:30:51 -07:00
David Dworken
f7c95f95b4 Fix the ldflags attempt #2 2022-04-16 21:29:59 -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
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
2bb06b568a Add version to binary 2022-04-09 14:37:21 -07:00
David Dworken
57a95fb9a7 Moved all backend code into the backend/ directory 2022-04-08 23:56:02 -07:00
David Dworken
223d14b6a2 Add missing git push 2022-04-08 23:08:53 -07:00
David Dworken
926c7631ae Fix makefile to run in correct order for deploys to work 2022-04-08 23:07:44 -07:00
David Dworken
22ffaf6364 fix makefile 2022-04-08 22:57:53 -07:00
David Dworken
108e1526b8 trying again with ldflags + fixed update url 2022-04-08 22:56:44 -07:00
David Dworken
c42bb66e96 Add server handlers for downloads 2022-04-08 22:37:03 -07:00
David Dworken
13d766a9c8 trying again to make ldflags work with slsa 2022-04-08 22:12:00 -07:00
David Dworken
966f73757b moved client/client.go to hishtory.go to support slsa l3 border 2022-04-08 21:17:11 -07:00
David Dworken
6d84402bce first bit of advanced query support 2022-04-07 22:53:39 -07:00
David Dworken
581231d0ef fixed export, added tests for it, made tests more accurate, and excluded things from gitignore 2022-04-06 23:05:30 -07:00
David Dworken
1065fff062 refactoring, better tests, commit hash, banner, and tested working locally 2022-04-06 22:43:07 -07:00
David Dworken
e2acc6612a well, it builds :D but still failing all the tests 2022-04-04 22:07:01 -07:00