Commit Graph

4929 Commits

Author SHA1 Message Date
Sebastian Serth
8a47310177 Fix selenium deprecations 2023-02-18 20:31:12 +01:00
Sebastian Serth
5d7f19db94 Speed up CI by dropping requirement on Docker 2023-02-18 20:12:54 +01:00
Sebastian Serth
5d7772825c Simplify Gemfile by removing unused Gems 2023-02-18 20:12:54 +01:00
Sebastian Serth
1623951074 Bundle update 2023-02-18 19:49:36 +01:00
Sebastian Serth
40c7a50834 Directly use ActiveRecord object instead of ID
This change will improve the performance by reducing unnecessary SELECT queries.
2023-02-18 19:28:26 +01:00
Sebastian Serth
6465404ebe Set sentry context after logging in 2023-02-18 19:27:46 +01:00
Sebastian Serth
9c3ec3c7ff Refactor submission scoring and testing
* Properly cancel code execution if running is prohibited
* Correctly monitor duration with Sentry
* Align methods with running submissions
2023-02-17 18:13:48 +01:00
Sebastian Serth
a1ec4579fe Properly cancel code execution if running is prohibited 2023-02-17 18:13:48 +01:00
Sebastian Serth
e632f95060 Prevent storing empty results
Fixes CODEOCEAN-HS
2023-02-17 18:13:48 +01:00
dependabot[bot]
46bd9142c7 Merge pull request #1546 from openHPI/dependabot/npm_and_yarn/sass-1.58.2 2023-02-17 04:06:04 +00:00
dependabot[bot]
00220eb042 Bump sass from 1.58.1 to 1.58.2
Bumps [sass](https://github.com/sass/dart-sass) from 1.58.1 to 1.58.2.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.58.1...1.58.2)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-17 03:57:17 +00:00
Sebastian Serth
6957452ffc Specify nodes_modules directory for webpack
Also align ./bin/webpacker-dev-server and ./bin/webpacker
2023-02-16 14:23:29 +01:00
Sebastian Serth
a9382a915b Update Ruby version to 3.2.1 2023-02-16 11:56:06 +01:00
Sebastian Serth
326b5fce51 Allow assigning tips during exercise create
Fixes CODEOCEAN-H6
2023-02-16 11:23:52 +01:00
Sebastian Serth
ee63166af7 Sentry: Replace UUIDs with * in URLs 2023-02-16 10:50:01 +01:00
Sebastian Serth
e9cf79085a Refactor listing files to be independent of exiting runners
Previously, we were always fetching files, even if not required (e.g., for score runs). Now, we reduce the number of file listings and use a dedicated callback.
2023-02-16 10:50:01 +01:00
Sebastian Serth
e96eda69d7 Bulk insert LinterCheckRuns
Similar to TestrunMessages, we insert all linter check runs through a bulk operation, potentially reducing time.
2023-02-16 10:50:01 +01:00
Sebastian Serth
b375aed543 Bulk insert TestrunMessages
With Sentry, we identified that all TestrunMessages are created one-by-one (besides passing them all in an array to #create!). Therefore, we now do the validations on our own first and then store all once, dramatically reducing the required time.

Fixes CODEOCEAN-HP
2023-02-16 10:50:01 +01:00
Sebastian Serth
a558a6df3b Shorten message name for sentry hub cloning 2023-02-16 10:47:58 +01:00
Sebastian Serth
91c2e14fe8 Fix error handling during Runner::Connection close
Closes CODEOCEAN-HQ
2023-02-16 10:47:28 +01:00
Sebastian Serth
596a04b9da Handle ReadTimeouts for LTI consumer properly 2023-02-16 10:12:05 +01:00
Sebastian Serth
339d1b3760 Vagrant provision: Update comment about NVM 2023-02-16 10:12:05 +01:00
dependabot[bot]
7bf78013e9 Merge pull request #1544 from openHPI/dependabot/bundler/rubocop-capybara-2.17.1 2023-02-16 04:06:26 +00:00
dependabot[bot]
57a3de0143 Bump rubocop-capybara from 2.17.0 to 2.17.1
Bumps [rubocop-capybara](https://github.com/rubocop/rubocop-capybara) from 2.17.0 to 2.17.1.
- [Release notes](https://github.com/rubocop/rubocop-capybara/releases)
- [Changelog](https://github.com/rubocop/rubocop-capybara/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-capybara/compare/v2.17.0...v2.17.1)

---
updated-dependencies:
- dependency-name: rubocop-capybara
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-16 03:57:22 +00:00
Sebastian Serth
744eead83f Fix typos in local setup guides 2023-02-16 00:29:56 +01:00
Sebastian Serth
f49262cc1a Update Native Setup and Vagrant Setup 2023-02-15 19:34:14 +01:00
Sebastian Serth
359539ffd7 Update configuration examples for seamless start 2023-02-15 19:18:05 +01:00
Sebastian Serth
0e4cd91ef7 Seeds: Set all environments to use a privileged execution
While we generally discourage the use of the privileged executions for production usage, the existing setup with the outdated execution environments broke. Therefore, we should switch our seed data to feature the latest Docker images.
2023-02-15 19:13:26 +01:00
Sebastian Serth
4b4942ef08 Seeds: Increase memory limit for Java 8 environment 2023-02-15 19:11:48 +01:00
Sebastian Serth
223e97f13a Bundle update 2023-02-14 15:51:33 +01:00
dependabot[bot]
1ece879804 Merge pull request #1540 from openHPI/dependabot/npm_and_yarn/sass-1.58.1 2023-02-14 04:06:17 +00:00
dependabot[bot]
f5858a7e4b Merge pull request #1541 from openHPI/dependabot/bundler/nokogiri-1.14.2 2023-02-14 04:05:29 +00:00
dependabot[bot]
a97cede9d3 Bump nokogiri from 1.14.1 to 1.14.2
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.14.1 to 1.14.2.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.14.1...v1.14.2)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-14 03:57:00 +00:00
dependabot[bot]
f67f4d68d1 Bump sass from 1.58.0 to 1.58.1
Bumps [sass](https://github.com/sass/dart-sass) from 1.58.0 to 1.58.1.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.58.0...1.58.1)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-14 03:56:53 +00:00
Sebastian Serth
890c99fa07 Update bundle and Puma
sd_notify has been integrated into Puma 6.1, no need to include it manually
2023-02-13 17:11:17 +01:00
Sebastian Serth
4a8653040c Use deep merge for Runner::Connection headers 2023-02-12 14:08:54 +01:00
Sebastian Serth
b1372e880c Enable Sentry instrumentation for WebSocket connection 2023-02-12 13:51:10 +01:00
Sebastian Serth
99372464aa Lock "sudo" switch for shell with root environments 2023-02-11 00:44:47 +01:00
Sebastian Serth
b0c84b190d Enable breadcrumbs and more details for Sentry 2023-02-10 00:38:45 +01:00
Sebastian Serth
750c59ca6a Increase sample rate for Sentry and introduce ENV variable 2023-02-09 19:32:03 +01:00
Sebastian Serth
379edbc12c Remove dedicated settings for Style/SymbolProc
Those settings have been removed with Rubocop 1.45 and are deprecated
2023-02-09 18:56:31 +01:00
Sebastian Serth
6ed67d7f06 Bundle update 2023-02-09 18:56:28 +01:00
Karol
90d713a1d4 fix (potential) problems with empty file_extensions 2023-02-09 18:42:24 +01:00
Karol
93188ba04d added migration to replace existing file_extension containing nil with '' 2023-02-09 18:42:24 +01:00
Karol
637f872f34 add file_extension validation for file_type 2023-02-09 18:42:24 +01:00
Karol
454b34275c fix file_type selection for Makefile 2023-02-09 18:42:24 +01:00
Sebastian Serth
70933ac9da Bundle update 2023-02-03 00:25:05 +01:00
Sebastian Serth
04504973ba Adjust Sentry's user context 2023-02-03 00:16:52 +01:00
dependabot[bot]
7d1e6ca6d3 Merge pull request #1528 from openHPI/dependabot/bundler/nokogiri-1.14.1 2023-01-31 03:10:31 +00:00
dependabot[bot]
0e5852f612 Bump nokogiri from 1.14.0 to 1.14.1
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.14.0 to 1.14.1.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.14.0...v1.14.1)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-31 03:00:42 +00:00