Commit Graph

465 Commits

Author SHA1 Message Date
Maximilian Paß
0c6c48c3cf #190 Add unit tests for runner recovery. 2022-11-26 13:33:44 +00:00
Maximilian Paß
f9c877cc93 Fix wrongly filtered data
by not assuming that every duration data point has a environment id tag.
2022-11-10 00:24:35 +00:00
Maximilian Paß
37ee649675 Refactor environment mapping
to be not duplicated 12 times.
2022-11-10 00:17:23 +00:00
Maximilian Paß
77d3f3388e Change Grafana panel label structure
by moving the stage and environment id to the front.
2022-11-10 00:06:16 +00:00
Maximilian Paß
81d777c9cb Increase minimal memory usage
as we collected new insights about the actual memory usage.
2022-11-09 23:19:25 +01:00
Maximilian Paß
45f7fcfc26 Change to new ansible deployment process. 2022-11-09 23:19:25 +01:00
Maximilian Paß
8950ab3776 Add single quotes for inner command.
Change to bash as interpreter.
Forbid single quotes for user commands.
2022-11-04 15:15:43 +01:00
Maximilian Paß
4c25473c9e Hide Nomad specific environment variables
from the user environment.
2022-11-04 15:15:43 +01:00
Sebastian Serth
697e7723e4 Add Python CI for GitHub actions 2022-10-29 23:20:29 +01:00
Sebastian Serth
4c359c2a5f Integrate additional feedback for PR #200 2022-10-29 23:20:29 +01:00
Maximilian Paß
ae9de5b93f Uncollapse rows and change order. 2022-10-29 23:20:29 +01:00
Maximilian Paß
137e3ff1ee Implement pull request comments #200.
Co-authored-by: Sebastian Serth <mrserth@users.noreply.github.com>
2022-10-29 23:20:29 +01:00
Sebastian Serth
694965b92d Add Pipfile with Python dependencies 2022-10-29 23:20:29 +01:00
Maximilian Paß
44aa5d73a2 Grafana as Code
Transfer our dashboard into a code representation via grafanalib.
2022-10-29 23:20:29 +01:00
Sebastian Serth
b98e3deb40 Rebuild base image for e2e images as well 2022-10-29 19:11:05 +02:00
Maximilian Paß
b3eee17846 Support protected directories
by setting the sticky bit to all explicitly requested directories.
2022-10-29 19:11:05 +02:00
Sebastian Serth
b1de6faa03 Update Nomad in CI 2022-10-27 19:46:26 +02:00
dependabot[bot]
31167c31e8 Merge pull request #246 from openHPI/dependabot/go_modules/github.com/hashicorp/nomad-1.4.2 2022-10-27 15:19:11 +00:00
dependabot[bot]
303e749ada Bump github.com/hashicorp/nomad from 1.4.1 to 1.4.2
Bumps [github.com/hashicorp/nomad](https://github.com/hashicorp/nomad) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/hashicorp/nomad/releases)
- [Changelog](https://github.com/hashicorp/nomad/blob/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/nomad/compare/v1.4.1...v1.4.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-27 15:11:00 +00:00
Sebastian Serth
acb4d24c45 Change loglevel for context cancellation to DEBUG 2022-10-26 16:18:35 +02:00
Maximilian Paß
5e5e13806e Monitor file download. 2022-10-26 01:33:26 +02:00
Maximilian Paß
939f36dac6 Fix e2e test exhausted cpu
by decreasing the reservation amount.
2022-10-26 01:27:33 +02:00
Sebastian Serth
b1027a907d Update versions in GitHub Action workflow 2022-10-25 11:49:34 +01:00
Sebastian Serth
8061004dd0 Update Dependencies 2022-10-25 11:49:34 +01:00
Maximilian Paß
28fb0ca61c Catch context canceled error 2022-10-25 09:36:52 +02:00
Maximilian Paß
160df3d9e6 Add retry-mechanism for sample, mark-as-used and return
of Nomad runners.
2022-10-24 22:12:09 +01:00
Maximilian Paß
b9c923da8a Remove unused and deprecated Storer interface. 2022-10-24 22:12:09 +01:00
Maximilian Paß
7119f3e012 Fix not canceling monitoring events for removed environments
and runners.
2022-10-24 13:15:14 +02:00
Maximilian Paß
5d54b0f786 Fix wrong environment id at monitoring
data for created or updated environments.
2022-10-24 13:15:14 +02:00
Maximilian Paß
a1d30f00c6 OpenAPI Add token and version prefix. 2022-10-24 12:58:16 +02:00
dependabot[bot]
ff267dbde0 Merge pull request #237 from openHPI/dependabot/go_modules/github.com/stretchr/testify-1.8.1 2022-10-24 03:28:01 +00:00
dependabot[bot]
ad5dfb41ad Bump github.com/stretchr/testify from 1.8.0 to 1.8.1
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.0...v1.8.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-24 03:19:22 +00:00
Sebastian Serth
b0a1531ef5 Setup Go for lint action 2022-10-23 10:53:05 +02:00
Sebastian Serth
c63cc2f80a Update GitHub Action workflow versions 2022-10-23 10:28:41 +02:00
Maximilian Paß
3e9606d1b9 Fix flaky e2e tests because of no idle runners
at startup.
2022-10-14 21:40:09 +01:00
dependabot[bot]
50c2adb386 Bump github.com/hashicorp/nomad from 1.3.5 to 1.4.1
Bumps [github.com/hashicorp/nomad](https://github.com/hashicorp/nomad) from 1.3.5 to 1.4.1.
- [Release notes](https://github.com/hashicorp/nomad/releases)
- [Changelog](https://github.com/hashicorp/nomad/blob/v1.4.1/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/nomad/compare/v1.3.5...v1.4.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/nomad
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-10 21:20:56 +02:00
dependabot[bot]
802a654441 Bump github.com/getsentry/sentry-go from 0.13.0 to 0.14.0
Bumps [github.com/getsentry/sentry-go](https://github.com/getsentry/sentry-go) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/getsentry/sentry-go/releases)
- [Changelog](https://github.com/getsentry/sentry-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-go/compare/v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: github.com/getsentry/sentry-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-05 13:45:31 +02:00
Maximilian Paß
3509109b6f Fix Ls2JsonWriter
by allowing more spaces in the ls response.
by sending the error response of the list file system route only when no content has been written.
2022-10-05 12:11:47 +01:00
Maximilian Paß
195f88177e Add Content-Length and Content-Disposition Header
for GetFileContent route.
2022-10-05 12:11:47 +01:00
Maximilian Paß
0c70ad3b24 Enable unprivileged retrieve of file listing and content. 2022-10-05 12:11:47 +01:00
Maximilian Paß
0218b3589a Add openAPI definition of the WebSocket endpoint. 2022-10-05 12:11:47 +01:00
Maximilian Paß
847e5cda65 Extend ls2json reader
by also parsing the link target, permissions, group and owner.
2022-10-05 12:11:47 +01:00
Maximilian Paß
3469d0ce77 Specify http not found exit code
by replacing it with StatusGone (410) for a missing runner and StatusFailedDependency (424) for missing or not accessible files.
2022-10-05 12:11:47 +01:00
Maximilian Paß
fc77f11d4d Enquote file path for shell execution.
Also, fix json of 500 response.
2022-10-05 12:11:47 +01:00
Maximilian Paß
152b77afe5 Add listing of runners file system. 2022-10-05 12:11:47 +01:00
Maximilian Paß
c7ee7c1e25 Remove superfluous response.WriteHeader call
as the Write of the responseWriter automatically sends also the Header.
2022-10-05 12:11:47 +01:00
Maximilian Paß
f2b25566dd #136 Copy files back from Nomad runner. 2022-10-05 12:11:47 +01:00
Maximilian Paß
ae7b3ccd58 Add api definition for copying files back from the runner. 2022-10-05 12:11:47 +01:00
Sebastian Serth
b30223bf58 Specify requirements for Docker images
Closes #3 [ci skip]
2022-10-04 15:27:49 +02:00
Sebastian Serth
28872f8269 Clean outdated dependencies 2022-10-04 10:21:07 +02:00