Commit Graph

543 Commits

Author SHA1 Message Date
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
Maximilian Paß
b7a20e3114 Introduce method "Environment" to the Runners interface.
This way we can relate to which environment a runner belongs.
2022-04-18 13:17:49 +02:00
Maximilian Paß
8feffdae3a Add initial structure of influxdb monitoring. 2022-04-18 13:17:49 +02:00
Sebastian Serth
e4ebb5b384 Add trace statements for WebSocket messages
* With `logger.level: TRACE`, the content of WebSocket messages is logged
  together with the corresponding timestamp.
* The input is not further sanitized as this log level
  is not intended for production use.
2022-04-15 12:39:03 +02:00
Maximilian Paß
f1825ebd69 CI: Remove dep-scan as dependency of e2e-tests 2022-04-09 16:35:53 +02:00
Maximilian Paß
3570f18202 Apply suggestions from code review
Co-authored-by: Sebastian Serth <MrSerth@users.noreply.github.com>
2022-04-09 16:35:53 +02:00
Maximilian Paß
597cbec456 Fix golangci-lint timeout error 2022-04-09 16:35:53 +02:00
Maximilian Paß
136f596dc2 Add aws environments to the statistics
but only with the field usedRunners.
2022-04-09 16:35:53 +02:00
Maximilian Paß
d7b1c2d691 Add limited support for Makefile parsing. (#103)
* Add limited support for Makefile parsing.
As the AWS Linux images do not contain make.

* javaExec: Extract makefile functionality in its own class

* Implement review comments
2022-04-07 22:40:19 +02:00
Sebastian Serth
830517f464 Upgrade Go from 1.17 to 1.18 2022-04-04 11:41:57 +02:00
Maximilian Paß
a41659eed4 Enable memory oversubscription (#102)
* Enable memory oversubscription

* Fix and add e2e test
2022-03-18 08:31:27 +01:00