Commit Graph

395 Commits

Author SHA1 Message Date
5059a5dc4c Upgrade Go from 1.18 to 1.19 2022-08-10 20:47:02 +02:00
9677253b35 Change Influx field name for the startup duration
due to a currently not resolvable type mismatch.
2022-08-10 20:46:17 +02:00
021530d5a7 Apply GoFmt fixes 2022-08-10 19:34:05 +02:00
a841675e7e Adapt linter config to remove warnings 2022-08-10 19:34:05 +02:00
770327cf64 Add storage count debug statement. 2022-08-08 09:17:27 +02:00
6ddc6493d4 Update Nomad version in CI 2022-08-08 09:17:13 +02:00
7a7ed1ff39 Bump github.com/hashicorp/nomad from 1.3.2 to 1.3.3
Bumps [github.com/hashicorp/nomad](https://github.com/hashicorp/nomad) from 1.3.2 to 1.3.3.
- [Release notes](https://github.com/hashicorp/nomad/releases)
- [Changelog](https://github.com/hashicorp/nomad/blob/v1.3.3/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/nomad/compare/v1.3.2...v1.3.3)

---
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-08-08 09:17:13 +02:00
89e15c5c2f Fix startup time format
Before it was a string. To use it efficiently we want it to be a number - in this case in nanoseconds.
2022-08-05 21:16:58 +02:00
b287aa335d Monitor environment id also for deletions. 2022-08-05 21:16:58 +02:00
2864a60653 Add Workflow for Java CI and specify encoding 2022-08-03 22:36:03 +02:00
a7b4b25e61 Update JUnit to v14.13.2 2022-08-03 14:43:39 +02:00
9d54a40340 Bump junit from 4.11 to 4.13.1 in /deploy/aws/java11Exec
Bumps [junit](https://github.com/junit-team/junit4) from 4.11 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.11.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.11...r4.13.1)

---
updated-dependencies:
- dependency-name: junit:junit
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-03 14:43:39 +02:00
bdf42cd2a7 Update dependencies in Java POM 2022-08-03 14:43:00 +02:00
7d58d2b99c CI Debug Print AWS functions 2022-08-01 16:52:34 +02:00
2908caeb71 Merge pull request #184 from openHPI/dependabot/go_modules/github.com/influxdata/influxdb-client-go/v2-2.9.2 2022-08-01 12:44:24 +00:00
0094776a88 CI Debug WIP 2022-08-01 14:39:12 +02:00
d0ad9e03a3 Suppress request noctx linter. 2022-08-01 14:35:52 +02:00
c150e8291f Bump github.com/influxdata/influxdb-client-go/v2 from 2.9.1 to 2.9.2
Bumps [github.com/influxdata/influxdb-client-go/v2](https://github.com/influxdata/influxdb-client-go) from 2.9.1 to 2.9.2.
- [Release notes](https://github.com/influxdata/influxdb-client-go/releases)
- [Changelog](https://github.com/influxdata/influxdb-client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/influxdata/influxdb-client-go/compare/v2.9.1...v2.9.2)

---
updated-dependencies:
- dependency-name: github.com/influxdata/influxdb-client-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-01 09:37:30 +00:00
6e52b8660d Avoid elements being removed multiple times
as this leads to multiple deletion events in the monitoring.
2022-08-01 11:36:18 +02:00
d10b31a1fb Remove static (nil) return value. 2022-08-01 11:24:56 +02:00
4230543d41 Bump github.com/sirupsen/logrus from 1.8.1 to 1.9.0
Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/sirupsen/logrus/releases)
- [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sirupsen/logrus/compare/v1.8.1...v1.9.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-01 11:24:56 +02:00
7edd40b4f0 Add Read Header Timeout
to prevent a potential Slowloris attack.
2022-07-31 19:42:35 +02:00
c6e65c14bb Monitor Nomad allocation startup duration. 2022-07-31 19:42:35 +02:00
18daa1152c Save the environment id for runner monitoring. 2022-07-31 19:42:35 +02:00
49c7a2d405 Save the runner and environment id for executions monitoring. 2022-07-31 19:42:35 +02:00
00f3d9b77b Merge pull request #179 from openHPI/dependabot/go_modules/github.com/hashicorp/nomad-1.3.2 2022-07-14 22:59:25 +00:00
7334f6f2af Bump github.com/hashicorp/nomad from 1.3.1 to 1.3.2
Bumps [github.com/hashicorp/nomad](https://github.com/hashicorp/nomad) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/hashicorp/nomad/releases)
- [Changelog](https://github.com/hashicorp/nomad/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/nomad/compare/v1.3.1...v1.3.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-07-14 03:27:26 +00:00
c0a617a383 Improve documentation of request URLs 2022-07-08 10:12:59 +02:00
39cfdbf635 Apply suggestions from code review 2022-07-01 15:29:31 +02:00
d9b7989a6c Enable logging for failed monitoring. 2022-07-01 15:29:31 +02:00
3f0c781997 Monitor storage object count. 2022-07-01 15:29:31 +02:00
051fe29d59 Add unit test for monitored storage. 2022-07-01 15:29:31 +02:00
498e8f5ff5 #110 Refactor influxdb monitoring
to use it as singleton.
This enables the possibility to monitor processes that are independent of an incoming request.
2022-07-01 15:29:31 +02:00
eafc01e69a Add availability dashboard row
including a panel with the prewarming poolsize and the idle runner count.
2022-07-01 15:29:31 +02:00
ff3ec9e362 Add Grafana Dashboard
including information about the number of requests, runner and executions and their durations.
2022-07-01 15:29:31 +02:00
344dfdfe58 Merge pull request #177 from openHPI/dependabot/go_modules/github.com/stretchr/testify-1.8.0 2022-06-30 09:08:26 +00:00
46874c09c2 Bump github.com/stretchr/testify from 1.7.5 to 1.8.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.5 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.5...v1.8.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-30 03:25:32 +00:00
275b6aa642 #89 Adjust golangci-lint configuration
as it does not support generics at this moment.

See https://github.com/golangci/golangci-lint/issues/2649
2022-06-29 16:21:19 +02:00
34040162c2 #89 Generalise the three Storage interfaces and structs into one generic storage manager. 2022-06-29 16:21:19 +02:00
542be96c66 Merge pull request #175 from openHPI/dependabot/go_modules/github.com/stretchr/testify-1.7.5 2022-06-27 10:19:29 +00:00
32ed8b7170 Bump github.com/stretchr/testify from 1.7.4 to 1.7.5
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.4 to 1.7.5.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.4...v1.7.5)

---
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-06-27 09:58:44 +00:00
dc1a0c807f Bump github.com/influxdata/influxdb-client-go/v2 from 2.9.0 to 2.9.1
Bumps [github.com/influxdata/influxdb-client-go/v2](https://github.com/influxdata/influxdb-client-go) from 2.9.0 to 2.9.1.
- [Release notes](https://github.com/influxdata/influxdb-client-go/releases)
- [Changelog](https://github.com/influxdata/influxdb-client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/influxdata/influxdb-client-go/compare/v2.9.0...v2.9.1)

---
updated-dependencies:
- dependency-name: github.com/influxdata/influxdb-client-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-27 11:54:30 +02:00
203d5a3a4f #155 refactor and synchronise writing to CodeOcean. (#174)
* #155 refactor and synchronise writing to CodeOcean.

* Reduce complexity of input parsing.

* Update typo in internal/api/ws/codeocean_writer.go

Co-authored-by: Sebastian Serth <MrSerth@users.noreply.github.com>
2022-06-26 20:19:23 +02:00
a4d13fb8cb #148 Add stage to influx monitoring. 2022-06-21 15:31:29 +02:00
22620985bc Java11Exec: Reduce complexity of parseCommand method. 2022-06-21 13:24:01 +02:00
ed5205236f #166 Fix AWS JAVA ignoring shell commands in combination with a Makefile. 2022-06-21 13:24:01 +02:00
b0916a2485 #166 Adjust outdated make command pattern
as with #147 a new unset command part is introduced.

Also add a regression e2e test that would have caught this issue.
2022-06-21 13:24:01 +02:00
3afe8ddb66 #155 Enable stopping of the CodeOcean WebSocket read independently of writing to CodeOcean. 2022-06-21 12:13:33 +02:00
3d1ed7cb0f #155 Minimise timing issues with websocket close. 2022-06-21 12:13:33 +02:00
950c421ea7 Merge pull request #170 from openHPI/dependabot/go_modules/github.com/stretchr/testify-1.7.4 2022-06-21 07:38:32 +00:00