Commit Graph

353 Commits

Author SHA1 Message Date
Maximilian Paß
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
Maximilian Paß
a4d13fb8cb #148 Add stage to influx monitoring. 2022-06-21 15:31:29 +02:00
Maximilian Paß
22620985bc Java11Exec: Reduce complexity of parseCommand method. 2022-06-21 13:24:01 +02:00
Maximilian Paß
ed5205236f #166 Fix AWS JAVA ignoring shell commands in combination with a Makefile. 2022-06-21 13:24:01 +02:00
Maximilian Paß
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
Maximilian Paß
3afe8ddb66 #155 Enable stopping of the CodeOcean WebSocket read independently of writing to CodeOcean. 2022-06-21 12:13:33 +02:00
Maximilian Paß
3d1ed7cb0f #155 Minimise timing issues with websocket close. 2022-06-21 12:13:33 +02:00
dependabot[bot]
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
dependabot[bot]
43f3c3be03 Bump github.com/stretchr/testify from 1.7.2 to 1.7.4
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.2 to 1.7.4.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.2...v1.7.4)

---
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-21 03:43:35 +00:00
Maximilian Paß
79dc3a94da #155 Add log statement for further investigations (#164) 2022-06-12 11:10:57 +02:00
Sebastian Serth
057dc0f1cc Update usage of CodeQL action 2022-06-11 13:51:10 +02:00
Maximilian Paß
eecacc08bf #42 Allow deletion of ./* 2022-06-10 18:21:06 +02:00
Maximilian Paß
59ca63268b Add CODEOCEAN environment variable. 2022-06-10 18:10:28 +02:00
Maximilian Paß
2f066a9fb4 E2e test environment variables. 2022-06-10 18:10:28 +02:00
Maximilian Paß
903ad415c6 Set and unset aws environment variables
in order to provide the CodeOcean context for some scripts and hide AWS credentials from the users.
2022-06-10 18:10:28 +02:00
Maximilian Paß
ecce3c294f #155 Add log statement for further investigations 2022-06-09 22:34:43 +02:00
Sebastian Serth
2b18b25f93 Update Dependencies 2022-06-09 22:23:40 +02:00
Sebastian Serth
d0398376c5 Update ansible-deployment 2022-06-08 09:10:20 +02:00
Maximilian Paß
0f8a1fa25a Specify AWS Functions as list
to conform with the yaml standard of list definition.
2022-06-08 09:01:46 +02:00
Maximilian Paß
d80761a973 Update CodeQL 2022-06-07 17:21:05 +02:00
Maximilian Paß
669ec039ce Update dependencies 2022-06-07 17:21:05 +02:00
Maximilian Paß
1e59c1146e Fix CodeQL log injection warning
by removing newlines from logged user input.
2022-06-07 17:21:05 +02:00
Maximilian Paß
97a2311a74 Fix CodeClimate duplication smells
by extracting one http helper method and
increasing the threshold for duplication issues.
2022-06-07 16:59:02 +02:00
Maximilian Paß
7ac08b83d0 Add CodeClimate configuration 2022-06-07 16:59:02 +02:00
Maximilian Paß
f7dad81691 Add CodeClimate badges to README.md 2022-06-07 16:59:02 +02:00
Maximilian Paß
bd7dc173c3 Introduce CodeClimate
to make the test coverage easily accessible.
2022-06-07 16:59:02 +02:00
Maximilian Paß
795c83f7b2 Fix deleting non existent environments
that is an error caused by throwing a panic when an environment is not found and a nonexistent runner manager at the end of the chain is asked for it.
2022-06-07 15:54:48 +02:00
Maximilian Paß
689493047d Memory oversubscription documentation 2022-06-07 15:47:29 +02:00
dependabot[bot]
64316186bc Merge pull request #160 from openHPI/dependabot/go_modules/github.com/stretchr/testify-1.7.2 2022-06-07 12:28:52 +00:00
dependabot[bot]
5b6d3caf55 Bump github.com/stretchr/testify from 1.7.1 to 1.7.2
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.1...v1.7.2)

---
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-07 03:18:41 +00:00
dependabot[bot]
d0263feff4 Bump github.com/hashicorp/nomad from 1.2.6 to 1.3.1
Bumps [github.com/hashicorp/nomad](https://github.com/hashicorp/nomad) from 1.2.6 to 1.3.1.
- [Release notes](https://github.com/hashicorp/nomad/releases)
- [Changelog](https://github.com/hashicorp/nomad/blob/v1.3.1/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/nomad/compare/v1.2.6...v1.3.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-05-24 23:18:33 +02:00
dependabot[bot]
0ec5275296 Bump github.com/influxdata/influxdb-client-go/v2 from 2.8.2 to 2.9.0
Bumps [github.com/influxdata/influxdb-client-go/v2](https://github.com/influxdata/influxdb-client-go) from 2.8.2 to 2.9.0.
- [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.8.2...v2.9.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-24 23:04:54 +02:00
Maximilian Paß
358769eb6b Fix golangci lint. 2022-05-24 22:12:48 +02:00
Sebastian Serth
425ef900b1 Add SECURITY.md 2022-04-29 23:09:07 +02:00
Maximilian Paß
609a7b803e Java11Exec: Fix Test with updated dependencies. 2022-04-24 18:49:49 +02:00
Maximilian Paß
841518bf05 Java11Exec: Add support for make assignments. (#131)
* Java11Exec: Add support for make assignments.

* Java11Exec: Make quotes in assignments optional.
2022-04-24 17:55:41 +02:00
dependabot[bot]
dca91a8c4f Bump github.com/mitchellh/mapstructure from 1.4.3 to 1.5.0
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure) from 1.4.3 to 1.5.0.
- [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.3...v1.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-24 17:51:57 +02:00
Maximilian Paß
09b90a4555 Java11Exec: Quick fix for test dependencies. 2022-04-24 17:28:40 +02:00
Sebastian Serth
7af17c87d3 Ignore Comments in Makefiles starting with # 2022-04-24 17:03:27 +02:00
Maximilian Paß
a545614040 Java11Exec: Fix that EOF is replaced by newline. 2022-04-24 16:21:54 +02:00
Maximilian Paß
bb2d989bc5 Add the missing newline of AWS. 2022-04-22 08:52:47 +02:00
Maximilian Paß
4cd53d24bc Ignore @ Symbols in Makefiles 2022-04-22 08:52:16 +02:00
Sebastian Serth
a95db653ca Fix another typo in configuration.example.yaml 2022-04-20 19:06:45 +02:00
dependabot[bot]
9b4b31585f Merge pull request #120 from openHPI/dependabot/go_modules/github.com/influxdata/influxdb-client-go/v2-2.8.2 2022-04-20 09:15:02 +00:00
dependabot[bot]
17c7a8cbfa Bump github.com/influxdata/influxdb-client-go/v2 from 2.8.1 to 2.8.2
Bumps [github.com/influxdata/influxdb-client-go/v2](https://github.com/influxdata/influxdb-client-go) from 2.8.1 to 2.8.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.8.1...v2.8.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-04-20 03:23:15 +00:00
Maximilian Paß
430b1748f5 Allow the CR character as part of a newline.
Since CodeOcean may send the `\r\n` newline.
2022-04-18 22:29:05 +02:00
Maximilian Paß
ba98916121 Fix typo in configuration.example.yaml (#117)
* Fix typo in configuration.example.yaml

* Fix typo also in the description.

Co-authored-by: Sebastian Serth <MrSerth@users.noreply.github.com>
2022-04-18 22:27:50 +02:00
Maximilian Paß
b41ce431b8 Temporarily fixed golang version mismatch
in the ci build docker image step.
2022-04-18 22:21:00 +02:00
Maximilian Paß
25f92e5f94 Add environment specific data to the influxdb data. 2022-04-18 13:17:49 +02:00
Maximilian Paß
eabe3a1b27 Add the Environment ID to the influxdb data.
Also move the interface of an execution environment into its own file, execution_environment.go.
2022-04-18 13:17:49 +02:00