Commit Graph

3951 Commits

Author SHA1 Message Date
0c51f3ca7d BuildDiff: make actual hash ref 2022-01-10 12:11:05 -08:00
0eb952d72d t/BuildDiff: init 2022-01-10 12:11:05 -08:00
1349887974 BuildDiff: split out from JobsetEval GET impl 2022-01-10 12:11:05 -08:00
aba0422865 JobsetEval: allow restarting failed builds even with no eval to compare to 2022-01-10 12:10:56 -08:00
98c88a4dbf Merge pull request from DeterminateSystems/api-test-warnings
Api test warnings: clean up
2022-01-10 14:03:38 -05:00
265908c1cd Merge pull request from helsinki-systems/feat/dark-theme
Provide a dark theme when the user prefers it
2022-01-10 14:01:36 -05:00
680cd43e40 Provide a dark theme when the user prefers it 2022-01-10 19:33:51 +01:00
e254b62f13 Merge pull request from DeterminateSystems/pathinput-revision-hash
PathInput: make the hash part of the revision
2022-01-10 13:32:58 -05:00
d68032dd13 Merge pull request from helsinki-systems/fix/hydra-eval-jobset
hydra-eval-jobset: Fix two minor bugs
2022-01-10 13:20:56 -05:00
a69693a832 hydra-eval-jobset: Fix two minor bugs
I'm honestly too lazy to create two commits for fixing these one-line
issues so here's one.

The first hunk fixes the name of the projectName input. This is relevant
now because it gets logged and the log message looks stupid when there
is an input without a name.

The second hunk fixes a warning when using declarative non-flake
jobsets. The implementation may look weird but it's just the same as the
logical implication operator of nix.
2022-01-10 18:28:41 +01:00
3874db4fb7 PathInput: make the hash part of the revision 2022-01-10 11:23:22 -05:00
d8025fcf04 api-test.t: don't print request content
It adds noise to the logs
2022-01-10 11:02:01 -05:00
6b2f0a9fe1 api-test.t: set a default method 2022-01-10 11:02:01 -05:00
832fa8c73d Controller/Jobset: make some warnings about undef's go away 2022-01-10 10:33:33 -05:00
0484f13a1a Merge pull request from DeterminateSystems/tests/prefix-names-with-t
HydraTestContext: prefix names with t
2022-01-10 10:01:45 -05:00
35f55279c1 HydraTestContext: prefix names with t
This is necessary because jobset and project names are not allowed to
begin with a digit, and yet the generated jobset and project names would
do just that.

Not the most elegant solution, but it works.
2022-01-10 09:39:42 -05:00
e72d2225e9 Merge pull request from helsinki-systems/feat/print-whats-evaluated
hydra-eval-jobset: Print the jobset that is evaluated
2022-01-10 09:29:46 -05:00
bf9ac72fe1 Merge pull request from DeterminateSystems/runcommand-logs
RunCommand: store a log of execution and render it on the Build page
2022-01-10 09:27:28 -05:00
22f9045a03 Merge branch 'master' into feat/print-whats-evaluated 2022-01-10 13:45:57 +01:00
f3d77c3e6b hydra-eval-jobset: Print the jobset that is evaluated
This is useful for systems that use concurrent evals
2022-01-10 13:44:07 +01:00
1505a56a70 build.tt: only show RunCommandLogs tab if there are any to show 2022-01-07 15:14:02 -05:00
06360bfbb6 RunCommandLogs.t: use test_context to get a specific build
Fixes a build error: Can't use global @_ in 'my' at Schema/Result/RunCommandLogs.t line 20, near ', @_'
2022-01-07 15:05:33 -05:00
2f382ba067 Add migration 79: RunCommand logs 2022-01-07 15:05:33 -05:00
fe149613b3 Builds page: show RunCommand logs 2022-01-07 15:05:33 -05:00
a7aeb766aa RunCommandLogs: add a helper for if it failed with an exec error 2022-01-07 15:05:33 -05:00
d849856dcd RunCommandLogs: add helpers for if it is running/failed/signaled 2022-01-07 15:05:33 -05:00
c81acbf93e RunCommandLogs: test recording a signaled process without a core dump 2022-01-07 15:05:33 -05:00
d003fec8a5 RunCommandLogs: add a did_succeed helper 2022-01-07 15:05:33 -05:00
5bb3e2be78 Record the errno if exec fails 2022-01-07 15:05:33 -05:00
4ce8239cea RunCommand: create run logs for each execution 2022-01-07 15:05:33 -05:00
52843195db RunCommandLogs: init table 2022-01-07 15:05:33 -05:00
f4e86a3236 Merge pull request from DeterminateSystems/config/tracker
Fetch the tracker HTML from the config file, remove HYDRA_TRACKER
2022-01-06 15:48:47 -05:00
9708f6bf6f Fetch the tracker HTML from the config file, remove HYDRA_TRACKER
The indentation in the hydra.conf makes it possible to include multi-line
strings without it being likely that the contents of the tracker
is mis-parsed or interrupts tho config parser.

It isn't impossible / foolproof probably, but it shouldn't be likely.
2022-01-05 15:27:21 -05:00
76962bfcb0 Merge pull request from DeterminateSystems/faster-notifications
Faster notifications and buildQueued support
2021-12-23 09:23:00 -05:00
189d4fdabe build_queued: document in the notifications docs 2021-12-21 20:57:53 -05:00
2db422f7b0 Event: interested -> interestedIn 2021-12-21 20:57:53 -05:00
e84bbc7f90 hydra-eval-jobset: notify build_queued 2021-12-21 20:57:53 -05:00
a14501c616 Tasks: only execute the event if the plugin is interested in it 2021-12-21 20:57:53 -05:00
633fc36d6a TaskDispatcher: pre-declare the notify_no_such_plugin metric 2021-12-21 20:57:53 -05:00
d195e545f5 hydra-notify: listen for build_queued events 2021-12-21 20:57:53 -05:00
eb5f6c8490 Merge pull request from DeterminateSystems/measure-per-event-duration
hydra-notify: track the duration of handling an event
2021-12-21 20:00:30 -05:00
cf514baaf2 hydra-notify: track the duration of handling an event
Currently we only track how long individual plugins take.
With  we stop executing a lot of plugins, but we
don't have a way to measure its practical impact on the
execution time of handling events.
2021-12-21 19:46:19 -05:00
e1e5fafdff Merge pull request from DeterminateSystems/dev-server
foreman: run the dev server with --restart and --debug
2021-12-17 10:03:08 -05:00
aaec4bb626 foreman: run the dev server with --restart and --debug
Debug enables info and debug log levels and provides quite a lot of useful dev-time information.

Restart automatically restarts the app when the .pm files change.
2021-12-16 10:20:25 -05:00
cf6f78c365 Merge pull request from DeterminateSystems/fixup-queue-runner-status
queue-runner-status: fixup from perlcritic-level-2
2021-12-15 18:44:07 -05:00
f2f8d571f3 queue-runner-status: fixup from perlcritic-level-2
>
> from_json was legacy / deprecated. This was the only use.
2021-12-15 17:24:23 -05:00
42f0dee441 Merge pull request from DeterminateSystems/HydraTestContext
HydraTestContext: init a context object for helpers
2021-12-14 21:22:43 -05:00
fbce3b6ed1 default-machine-file: use makeAndEvaluateJobset 2021-12-14 20:52:40 -05:00
06f824ca48 notifications.t: use system() with lists 2021-12-14 20:48:19 -05:00
5836bc9a11 HydraTestContext::makeAndEvaluateJobset: make a random user 2021-12-14 20:48:07 -05:00