Commit Graph

308 Commits

Author SHA1 Message Date
Maximilian Paß
c565ca217e Fix goroutine leak when reading the client WebSocket 2021-12-14 13:24:53 +01:00
Sebastian Serth
e77024b62c Merge pull request #74 from openHPI/updates
Update Dependencies
2021-12-13 22:28:54 +01:00
Sebastian Serth
2be45c9ef7 Update Dependencies 2021-12-13 21:22:19 +01:00
Maximilian Paß
f45d28d4a4 Fix flaky TestOutputToStdout test 2021-12-12 10:27:03 +01:00
Maximilian Paß
901aa3c8db Remove TCP Write Response Timeout 2021-12-12 10:27:03 +01:00
Maximilian Paß
d684366a4d Add debug statements for TestSendsSignalAfterTimeout 2021-12-12 10:27:03 +01:00
Sebastian Serth
bb66190456 Merge pull request #71 from openHPI/fix/#44-unwrapping-error
Unwrap Nomad Error for Allocation Exec
2021-12-10 11:59:04 +01:00
Maximilian Paß
9cd81930e9 Add API Querier test 2021-12-10 11:30:56 +01:00
Sebastian Serth
ebbbfdb9be Unwrap Nomad error for allocation exec
* This will allow us to inspect whether the websocket connection was closed normally
2021-12-10 10:01:31 +01:00
Maximilian Paß
dce895faff Move the error handler to the api querier
to catch the ws normal close error for all Execute requests
2021-12-09 19:12:20 +01:00
Maximilian Paß
825ebdd3e6 Add forcePull option
* Add forcePull option
for pulling the image when the execution environment gets updated

* Apply suggestions from code review

Co-authored-by: Sebastian Serth <MrSerth@users.noreply.github.com>

* Add unit tests

* Clean up and implement option two

Co-authored-by: Sebastian Serth <MrSerth@users.noreply.github.com>
2021-12-09 14:54:14 +01:00
Maximilian Paß
af939b7810 Catch the "Close normal" error 2021-12-09 13:05:18 +01:00
Maximilian Paß
e95e07e426 Catch the client connection "Close normal" error
* Catch the client connection "Close normal" error

* Reduce cognitive complexity of the input read loop
2021-12-09 10:02:26 +01:00
Maximilian Paß
1955e678f7 Change the e2e test rule to use the remote image
* Change the e2e test rule
to use a remote docker image

* Pull the e2e test image
to avoid delay and failure in the e2e tests
2021-12-08 21:13:19 +01:00
Maximilian Paß
1de559cebc Add statistics route for execution environments
* Add statistics route for execution environments

* Add maximum to port api definition

Co-authored-by: Sebastian Serth <MrSerth@users.noreply.github.com>
2021-12-08 12:08:22 +01:00
Maximilian Paß
c23a534f86 Add workflow to build e2e docker image 2021-12-07 23:21:12 +01:00
dependabot[bot]
8d3d1852b0 Merge pull request #60 from openHPI/dependabot/go_modules/github.com/mitchellh/mapstructure-1.4.3 2021-12-02 03:37:45 +00:00
dependabot[bot]
1bb50d20cf Bump github.com/mitchellh/mapstructure from 1.4.2 to 1.4.3
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/mitchellh/mapstructure/releases)
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.4.2...v1.4.3)

---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-02 03:32:05 +00:00
Sebastian Serth
77a308e8fd Merge pull request #38 from openHPI/upgrade-nomad
Upgrade Nomad to 1.2.2
2021-11-26 22:10:37 +01:00
Sebastian Serth
16a74095fe CI: Wait until Poseidon is ready 2021-11-26 21:44:03 +01:00
Sebastian Serth
0e505a88a5 Upgrade Nomad to 1.2.2 2021-11-26 21:44:03 +01:00
Maximilian Paß
7c9406cd7a Change response logging message
to allow specific error tracking in sentry. See POSEIDON-F
2021-11-26 21:28:10 +01:00
Maximilian Paß
a6eaa45097 Stop stdout & stderr after timeout
Co-authored-by: Sebastian Serth <MrSerth@users.noreply.github.com>
2021-11-25 21:08:56 +01:00
Maximilian Paß
0d7e07eae0 Add route for version information 2021-11-25 19:49:58 +01:00
Maximilian Paß
3ae83217d7 Add Sentry integration 2021-11-25 19:29:33 +01:00
Sebastian Serth
705d358027 Update ansible-deployment submodule 2021-11-17 23:03:56 +01:00
Maximilian Paß
cf3db036fa Make environment variables of the system accessible. 2021-11-17 13:44:50 +01:00
Maximilian Paß
fbbc96da37 Add guard close in event stream
for not handling stopped Execution Environment Allocations
2021-11-17 13:16:18 +01:00
Sebastian Serth
aa87556a45 Merge pull request #37 from openHPI/trivy
Checkout code for trivy analysis
2021-11-17 09:00:14 +01:00
Sebastian Serth
051c62b43b Merge pull request #36 from openHPI/upgrade-dependencies
Upgrade dependencies
2021-11-17 09:00:02 +01:00
Sebastian Serth
bd4cc67c78 Merge pull request #34 from openHPI/update_version_for_ci
Update versions used during GitHub actions
2021-11-17 08:59:41 +01:00
Sebastian Serth
89f97bd273 Merge pull request #30 from openHPI/codeql-analysis
Create codeql-analysis.yml
2021-11-17 08:59:27 +01:00
Sebastian Serth
7ad28b1bd5 Merge pull request #35 from openHPI/optimize_build_cache
Update last trim for Go build cache
2021-11-17 08:59:16 +01:00
Sebastian Serth
fef7d951d2 Do not return exit code 1 in case of trivy results 2021-11-11 12:12:56 +01:00
Sebastian Serth
ea0ca8f4db Upgrade dependencies 2021-11-11 09:00:01 +01:00
Sebastian Serth
6592efffe2 Checkout code for trivy analysis 2021-11-11 01:29:11 +01:00
Sebastian Serth
68c6b28861 Update versions used during GitHub actions 2021-11-11 00:22:21 +01:00
Sebastian Serth
dd91f696a1 Update last trim for Go build cache 2021-11-11 00:19:58 +01:00
Sebastian Serth
38785d79b7 Create codeql-analysis.yml 2021-11-10 13:42:48 +01:00
Maximilian Paß
ac6ce56c38 Remove flaky test case 2021-11-10 13:11:38 +01:00
Maximilian Paß
dcc869cd94 Fix after updating golangci-lint
v1.43
2021-11-10 13:11:38 +01:00
Maximilian Paß
fff67246d6 Infinite busy waiting for lost event (#31)
* Close evaluation stream for Nomad Job creation
 when set event handler have been finished

* Remove evaluation event stream requests
by handling the events via the main Nomad event handler.
2021-11-10 09:57:40 +01:00
Maximilian Paß
4db1ceb41e Fix Bug with the runner recovery
that the runners of the environment 10 are also recovered for the environment 1.
2021-10-22 16:24:55 +02:00
Maximilian Paß
24b22f2c40 Fix racing condition
when creating a Nomad job in the e2e tests
2021-10-22 16:23:51 +02:00
Maximilian Paß
ba6e7035fa Mark runner as used now asynchronously. 2021-10-22 16:23:51 +02:00
Maximilian Paß
055fa43227 Create a new runner async after one gets claimed 2021-10-22 16:23:51 +02:00
Sebastian Serth
dff3df9cc7 Merge pull request #18 from openHPI/nomad-readme
Add instructions on setting up Nomad for Poseidon
2021-10-21 11:45:21 +02:00
Sebastian Serth
d5722a20c7 Add instructions on setting up Nomad for Poseidon 2021-10-21 11:24:25 +02:00
Sebastian Serth
eb4dd9433c Merge pull request #17 from openHPI/update-deploy-reference
Update git submodule for ansible-deployment
2021-10-21 10:58:21 +02:00
Sebastian Serth
669fd48166 Merge pull request #15 from openHPI/ignore-idea-files
Exclude IntelliJ and GoLand files
2021-10-21 10:57:22 +02:00