Commit Graph

1664 Commits

Author SHA1 Message Date
ce883279f7 Follow up to f3764b2545: Update error code used for panics in unit tests 2023-09-30 22:22:31 -07:00
f9372dda75 Silence go-errcheck warning for fmt.Fprintf logging 2023-09-30 07:25:58 -07:00
f3764b2545 Update error code used for panics 2023-09-30 07:25:22 -07:00
6539f834c7 Merge pull request #114 from lsmoura/sergio/panic-guard
Add improve handling for panics in the server
2023-09-30 07:24:01 -07:00
2f5288f832 Merge branch 'panic-handling' into sergio/panic-guard 2023-09-30 07:22:12 -07:00
33f09ea030 Fix testPresaving/bash by calling SetSid to prevent SIGTTIN signal from killing the test 2023-09-29 21:38:50 -07:00
2c77c3d9c9 Fix bug with bash presaving that caused commands to not get properly recorded due to presaving looking like a duplicate command 2023-09-29 21:03:12 -07:00
0b57034c39 Revert "Revert all commits since v0.223 to enable me to release a patch on top of v0.223"
This reverts commit 68ed9f2d5d.
2023-09-29 18:21:23 -07:00
c079e13078 remove redundant test 2023-09-29 09:40:53 -04:00
6698cf526f prevent server breaking when handlers panics, log even when panic happens, with tests 2023-09-29 09:38:06 -04:00
68ed9f2d5d Revert all commits since v0.223 to enable me to release a patch on top of v0.223 2023-09-28 22:15:30 -07:00
98b6eb57d0 Disable broken test on github actions 2023-09-28 22:15:26 -07:00
61a7435fb7 Add additional assertion to presaving test to make it a stronger test, and to help debug a test failure that only reproduces on github actions 2023-09-28 22:15:22 -07:00
4370820281 Skip storing user stats when running with sqlite, since the queries aren't compatible with sqlite 2023-09-28 22:15:16 -07:00
b1988d7022 Increase delay since TestTui/search is still flaky 2023-09-28 22:15:12 -07:00
1a84bc2fef Remove new line 2023-09-28 22:15:09 -07:00
b859b34616 Disable testing of TUI colors on linux 2023-09-28 22:15:03 -07:00
96e8e4f620 Add backend table to track daily/weekly active user stats 2023-09-28 22:14:55 -07:00
fdec51bd14 Update presaving for bash to use history 1 rather than BASH_COMMAND to ensure we don't log bash functions 2023-09-28 22:14:53 -07:00
5d46c94b13 Improve test for duplicate rows to make it more reliable/simple 2023-09-28 22:14:47 -07:00
678ba25ecd Update CreateIndices() function so that it works with sqlite 2023-09-28 22:14:44 -07:00
2e5f345411 Refactor tmux capturing to take in a struct to avoid having to create so many overloaded functions 2023-09-28 22:14:41 -07:00
7e33e942e6 Delete no longer used function 2023-09-28 22:14:35 -07:00
06ee1bd6fe Add comments/clean up TUI highlighting code 2023-09-28 22:14:30 -07:00
83c3664de6 Add test for beta-mode enabling highlighting of matching queries 2023-09-28 22:14:22 -07:00
e04583f62f Move regexp compilation out of render function so it isn't run once for every single cell 2023-09-28 22:14:15 -07:00
3feb267038 Remove debug log statements 2023-09-28 22:14:11 -07:00
b482a6d6ec Add very basic TUI test that also tests how the TUI uses escape sequences for colors 2023-09-28 22:14:05 -07:00
79ec2be1e4 Improve testPresaving to cover more potential errors with presaving 2023-09-28 22:14:00 -07:00
89014a8674 Add workaround for bash issues with pre-saving 2023-09-28 22:13:41 -07:00
5ac6f297fb Fix incorrect shell name in config.fish for pre-saving 2023-09-28 22:13:35 -07:00
59119823f5 Fix bug in updateUsageData that caused it to not record usage data for newly created users 2023-09-28 22:13:31 -07:00
9fda54d4c2 Remove testutils.Check(t, err) and replace it with require.NoError which gives a clearer error message and a full stacktrace 2023-09-28 22:13:27 -07:00
c77d5a5424 Remove prints from server startup 2023-09-28 22:13:23 -07:00
beb907d59e Add bolding of matching search results for #112, currently behind the beta-mode flag 2023-09-28 22:13:11 -07:00
ca155b3a1f Release v0.224 v0.224 2023-09-28 21:52:10 -07:00
ec44e94565 Fix NPE that occurs if the initial sqlite query is slow, the user starts typing, and then the latter query is faster and completes first, by forcing an update of the table if it is nil before calling SetRows() on it 2023-09-28 21:52:00 -07:00
6d5a86a8bb Revert all commits since v0.223 to enable me to release a patch on top of v0.223 2023-09-28 21:49:37 -07:00
d18747e639 Disable broken test on github actions 2023-09-27 21:10:39 -07:00
bed3fd3eb4 Add additional assertion to presaving test to make it a stronger test, and to help debug a test failure that only reproduces on github actions 2023-09-26 22:17:32 -07:00
d0712f84c6 Skip storing user stats when running with sqlite, since the queries aren't compatible with sqlite 2023-09-26 20:49:21 -07:00
f84c2d86b5 Increase delay since TestTui/search is still flaky 2023-09-26 20:16:55 -07:00
289fe6e8e1 Remove new line 2023-09-26 20:16:22 -07:00
adc069bd54 Disable testing of TUI colors on linux 2023-09-26 20:15:11 -07:00
db4e31d997 Add backend table to track daily/weekly active user stats 2023-09-26 20:11:06 -07:00
d14dc1cd50 Update presaving for bash to use history 1 rather than BASH_COMMAND to ensure we don't log bash functions 2023-09-26 19:41:12 -07:00
753b7241a8 Improve test for duplicate rows to make it more reliable/simple 2023-09-26 19:38:21 -07:00
3d0673e6e9 Update CreateIndices() function so that it works with sqlite 2023-09-24 18:49:40 -07:00
64db341144 Refactor tmux capturing to take in a struct to avoid having to create so many overloaded functions 2023-09-24 18:28:06 -07:00
0c202e4130 Delete no longer used function 2023-09-24 18:09:41 -07:00