Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 33 additions & 32 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,17 @@ GEM
faye-websocket (0.11.3)
eventmachine (>= 0.12.0)
websocket-driver (>= 0.5.1)
ffi (1.17.1)
ffi (1.17.1-aarch64-linux-gnu)
ffi (1.17.1-aarch64-linux-musl)
ffi (1.17.1-arm-linux-gnu)
ffi (1.17.1-arm-linux-musl)
ffi (1.17.1-arm64-darwin)
ffi (1.17.1-x86-linux-gnu)
ffi (1.17.1-x86-linux-musl)
ffi (1.17.1-x86_64-darwin)
ffi (1.17.1-x86_64-linux-gnu)
ffi (1.17.1-x86_64-linux-musl)
ffi (1.17.2)
ffi (1.17.2-aarch64-linux-gnu)
ffi (1.17.2-aarch64-linux-musl)
ffi (1.17.2-arm-linux-gnu)
ffi (1.17.2-arm-linux-musl)
ffi (1.17.2-arm64-darwin)
ffi (1.17.2-x86-linux-gnu)
ffi (1.17.2-x86-linux-musl)
ffi (1.17.2-x86_64-darwin)
ffi (1.17.2-x86_64-linux-gnu)
ffi (1.17.2-x86_64-linux-musl)
forgery (0.8.1)
fugit (1.11.1)
et-orbi (~> 1, >= 1.2.11)
Expand Down Expand Up @@ -470,7 +470,7 @@ GEM
rspec-mocks (~> 3.13)
rspec-support (~> 3.13)
rspec-support (3.13.2)
rubocop (1.75.2)
rubocop (1.75.3)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
Expand Down Expand Up @@ -500,7 +500,7 @@ GEM
rack (>= 1.1)
rubocop (>= 1.75.0, < 2.0)
rubocop-ast (>= 1.38.0, < 2.0)
rubocop-rspec (3.5.0)
rubocop-rspec (3.6.0)
lint_roller (~> 1.1)
rubocop (~> 1.72, >= 1.72.1)
rubocop-rspec_rails (2.31.0)
Expand Down Expand Up @@ -580,16 +580,17 @@ GEM
fugit (~> 1.11.0)
railties (>= 7.1)
thor (~> 1.3.1)
sorbet-runtime (0.5.12010)
sorbet-runtime (0.5.12032)
sorcery (0.17.0)
bcrypt (~> 3.1)
oauth (>= 0.6)
oauth2 (~> 2.0)
sorted_set (1.0.3)
rbtree
set (~> 1.0)
sprockets (4.2.1)
sprockets (4.2.2)
concurrent-ruby (~> 1.0)
logger
rack (>= 2.2.4, < 4)
sprockets-rails (3.5.2)
actionpack (>= 6.1)
Expand Down Expand Up @@ -624,7 +625,7 @@ GEM
unicode-emoji (4.0.4)
uri (1.0.3)
useragent (0.16.11)
version_gem (1.1.6)
version_gem (1.1.7)
web-console (4.2.1)
actionview (>= 6.0.0)
activemodel (>= 6.0.0)
Expand Down Expand Up @@ -815,17 +816,17 @@ CHECKSUMS
faraday-net_http (3.4.0) sha256=a1f1e4cd6a2cf21599c8221595e27582d9936819977bbd4089a601f24c64e54a
faraday-net_http_persistent (2.3.0) sha256=33d4948cabe9f8148222c4ca19634c71e1f25595cccf9da2e02ace8d754f1bb1
faye-websocket (0.11.3) sha256=109187161939c57032d2bba9e5c45621251d73f806bb608d2d4c3ab2cabeb307
ffi (1.17.1) sha256=26f6b0dbd1101e6ffc09d3ca640b2a21840cc52731ad8a7ded9fb89e5fb0fc39
ffi (1.17.1-aarch64-linux-gnu) sha256=c5d22cb545a3a691d46060f1343c461d1a8d38c3fd71b96b4cbbe6906bf1fd38
ffi (1.17.1-aarch64-linux-musl) sha256=88b9d6ae905d21142df27c94bb300042c1aae41b67291885f600eaad16326b1d
ffi (1.17.1-arm-linux-gnu) sha256=fe14f5ece94082f3b0e651a09008113281f2764e7ea95f522b64e2fe32e11504
ffi (1.17.1-arm-linux-musl) sha256=df14927ca7bd9095148a7d1938bb762bbf189d190cf25d9547395ec7acc198a0
ffi (1.17.1-arm64-darwin) sha256=a8e04f79d375742c54ee7f9fff4b4022b87200a4ec0eb082128d3b6559e67b4d
ffi (1.17.1-x86-linux-gnu) sha256=01411c78cb3cff3c88cf67b2a7b24534e9b1638253d88581fef44c2083f6a174
ffi (1.17.1-x86-linux-musl) sha256=02bcc7bbcff71e021ef05f43469f7c5074ab3422e415b287001bd890c9cbb1c6
ffi (1.17.1-x86_64-darwin) sha256=0036199c290462dd7f03bc22933644c1685b7834a21788062bd5df48c72aa7a6
ffi (1.17.1-x86_64-linux-gnu) sha256=8c0ade2a5d19f3672bccfe3b58e016ae5f159e3e2e741c856db87fcf07c903d0
ffi (1.17.1-x86_64-linux-musl) sha256=3a343086820c96d6fbea4a5ef807fb69105b2b8174678f103b3db210c3f78401
ffi (1.17.2) sha256=297235842e5947cc3036ebe64077584bff583cd7a4e94e9a02fdec399ef46da6
ffi (1.17.2-aarch64-linux-gnu) sha256=c910bd3cae70b76690418cce4572b7f6c208d271f323d692a067d59116211a1a
ffi (1.17.2-aarch64-linux-musl) sha256=69e6556b091d45df83e6c3b19d3c54177c206910965155a6ec98de5e893c7b7c
ffi (1.17.2-arm-linux-gnu) sha256=d4a438f2b40224ae42ec72f293b3ebe0ba2159f7d1bd47f8417e6af2f68dbaa5
ffi (1.17.2-arm-linux-musl) sha256=977dfb7f3a6381206dbda9bc441d9e1f9366bf189a634559c3b7c182c497aaa3
ffi (1.17.2-arm64-darwin) sha256=54dd9789be1d30157782b8de42d8f887a3c3c345293b57ffb6b45b4d1165f813
ffi (1.17.2-x86-linux-gnu) sha256=95d8f9ebea23c39888e2ab85a02c98f54acb2f4e79b829250d7267ce741dc7b0
ffi (1.17.2-x86-linux-musl) sha256=41741449bab2b9530f42a47baa5c26263925306fad0ac2d60887f51af2e3b24c
ffi (1.17.2-x86_64-darwin) sha256=981f2d4e32ea03712beb26e55e972797c2c5a7b0257955d8667ba58f2da6440e
ffi (1.17.2-x86_64-linux-gnu) sha256=05d2026fc9dbb7cfd21a5934559f16293815b7ce0314846fee2ac8efbdb823ea
ffi (1.17.2-x86_64-linux-musl) sha256=97c0eb3981414309285a64dc4d466bd149e981c279a56371ef811395d68cb95c
forgery (0.8.1) sha256=d4d4f75eba6cd51b8abcaf8da2a5f89dcc3e744bc17459b27e1228c44af755b4
fugit (1.11.1) sha256=e89485e7be22226d8e9c6da411664d0660284b4b1c08cacb540f505907869868
glob (0.4.1) sha256=e68e50419ffb7f896b39a483c1a37e7a1aa8f1a8c8ea13961f8cd1b50f40715d
Expand Down Expand Up @@ -941,13 +942,13 @@ CHECKSUMS
rspec-mocks (3.13.2) sha256=2327335def0e1665325a9b617e3af9ae20272741d80ac550336309a7c59abdef
rspec-rails (7.1.1) sha256=e15dccabed211e2fd92f21330c819adcbeb1591c1d66c580d8f2d8288557e331
rspec-support (3.13.2) sha256=cea3a2463fd9b84b9dcc9685efd80ea701aa8f7b3decb3b3ce795ed67737dbec
rubocop (1.75.2) sha256=8efde647e278417e8074421b007e0d7d7c591482ef99d980528b18fea015a7c8
rubocop (1.75.3) sha256=1860a1b571fe4a15dff79d6683642ebf3ea4b3f7ae7903743ab0885b4686a1d5
rubocop-ast (1.44.1) sha256=e3cc04203b2ef04f6d6cf5f85fe6d643f442b18cc3b23e3ada0ce5b6521b8e92
rubocop-capybara (2.22.1) sha256=ced88caef23efea53f46e098ff352f8fc1068c649606ca75cb74650970f51c0c
rubocop-factory_bot (2.27.1) sha256=9d744b5916778c1848e5fe6777cc69855bd96548853554ec239ba9961b8573fe
rubocop-performance (1.25.0) sha256=6f7d03568a770054117a78d0a8e191cefeffb703b382871ca7743831b1a52ec1
rubocop-rails (2.31.0) sha256=79476e1075299c3e60fc50549c7c32614f9ebaae719b899ed75785c6786c52bd
rubocop-rspec (3.5.0) sha256=710c942fe1af884ba8eea75cbb8bdbb051929a2208880a6fc2e2dce1eed5304c
rubocop-rspec (3.6.0) sha256=c0e4205871776727e54dee9cc91af5fd74578001551ba40e1fe1a1ab4b404479
rubocop-rspec_rails (2.31.0) sha256=775375e18a26a1184a812ef3054b79d218e85601b9ae897f38f8be24dddf1f45
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
ruby-vips (2.2.3) sha256=41d12b1a805cd6ead4a7965201a8f7c5fe459bb58d3a7d967c9eb0719a6edc92
Expand All @@ -974,10 +975,10 @@ CHECKSUMS
snaky_hash (2.0.1) sha256=1ac87ec157fcfe7a460e821e0cd48ae1e6f5e3e082ab520f03f31a9259dbdc31
solid_cable (3.0.7) sha256=f2bce91e17e2c6e04c3c5e9905cc31b1078ff991702278c8bb1ac2e09f441a21
solid_queue (1.1.5) sha256=bae0c9d76310f4953ebc57466f2e8c78703a0fbf4b89d25756c23c88f9b6df9b
sorbet-runtime (0.5.12010) sha256=5c30eefa2b4bd39c254a4f8357e1a480c2abfc9bc79278bf88c2361ff8dc7bcc
sorbet-runtime (0.5.12032) sha256=c346e7c0578160a336770662ecd001dcea28bc63f7924da9519f7d6f1b736475
sorcery (0.17.0) sha256=cde1853d4fa0bf40f0ee5ea97a3b5bc1b22e431ed6bb256876f5b4d2e415a2c2
sorted_set (1.0.3) sha256=4f2b8bee6e8c59cbd296228c0f1f81679357177a8b6859dcc2a99e86cce6372f
sprockets (4.2.1) sha256=951b13dd2f2fcae840a7184722689a803e0ff9d2702d902bd844b196da773f97
sprockets (4.2.2) sha256=761e5a49f1c288704763f73139763564c845a8f856d52fba013458f8af1b59b1
sprockets-rails (3.5.2) sha256=a9e88e6ce9f8c912d349aa5401509165ec42326baf9e942a85de4b76dbc4119e
ssrf_filter (1.2.0) sha256=1e22130ada4b4d2c9675ac56a13802cad9c6395338bbd8d2d4c60429a071389f
stackprof (0.2.27) sha256=aff6d28656c852e74cf632cc2046f849033dc1dedffe7cb8c030d61b5745e80c
Expand All @@ -999,7 +1000,7 @@ CHECKSUMS
unicode-emoji (4.0.4) sha256=2c2c4ef7f353e5809497126285a50b23056cc6e61b64433764a35eff6c36532a
uri (1.0.3) sha256=e9f2244608eea2f7bc357d954c65c910ce0399ca5e18a7a29207ac22d8767011
useragent (0.16.11) sha256=700e6413ad4bb954bb63547fa098dddf7b0ebe75b40cc6f93b8d54255b173844
version_gem (1.1.6) sha256=b989cf19880ee18907083ba9bb6fdbe40826bd698fbd7cdfab7345a2550bf203
version_gem (1.1.7) sha256=df3bacb16c09d9069d51625f6e009da28e69ed8f9cbd2dd14753cec944e0cacc
web-console (4.2.1) sha256=e7bcf37a10ea2b4ec4281649d1cee461b32232d0a447e82c786e6841fd22fe20
webauthn (3.4.0) sha256=a10665f5e05eb156ba0219fd17480c57e0af4daaf83e3e33439bf958350af4c5
webmock (3.25.1) sha256=ab9d5d9353bcbe6322c83e1c60a7103988efc7b67cd72ffb9012629c3d396323
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/exercises_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def clone
def collect_paths(files)
unique_paths = files.map(&:path).compact_blank.uniq
subpaths = unique_paths.map do |path|
Array.new((path.split('/').length + 1)) do |n|
Array.new(path.split('/').length + 1) do |n|
path.split('/').shift(n).join('/')
end
end
Expand Down
4 changes: 4 additions & 0 deletions docs/LOCAL_SETUP_VAGRANT.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,7 @@ vagrant ssh
cd codeocean
bundle exec prometheus_exporter
```

## Known Issues

On MacOS systems, starting the virtual machine might fail due to existing port forwarding on port 7000. This port is used by the MacOS ControlCenter for Apple AirPlay. Therefore, if you are not actively using AirPlay, you can disable it in "System Preferences" --> "General" --> "AirDrop & Handoff" by disabling the "AirPlay Receiver" option. Alternatively, you can edit the Vagrant file and set a different port.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"@fortawesome/fontawesome-free": "^6.7.2",
"@github/webauthn-json": "^2.1.1",
"@popperjs/core": "^2.11.8",
"@sentry/browser": "^9.13.0",
"@sentry/browser": "^9.14.0",
"@toast-ui/editor": "^3.2.2",
"@webpack-cli/serve": "^3.0.1",
"ace-builds": "^1.40.0",
"ace-builds": "^1.40.1",
"babel-loader": "^10.0.0",
"bootstrap": "^5.3.5",
"bootswatch": "^5.3.5",
Expand Down
6 changes: 3 additions & 3 deletions spec/controllers/request_for_comments_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
expect(assigns(:request_for_comments)).to eq([rfc_within_my_study_group])
end

include_examples 'RfC visibility settings'
it_behaves_like 'RfC visibility settings'
end

describe 'GET #my_comment_requests' do
Expand All @@ -91,7 +91,7 @@
expect_http_status(:ok)
expect_template(:index)

include_examples 'RfC visibility settings'
it_behaves_like 'RfC visibility settings'
end

describe 'GET #rfcs_with_my_comments' do
Expand All @@ -100,7 +100,7 @@
expect_http_status(:ok)
expect_template(:index)

include_examples 'RfC visibility settings'
it_behaves_like 'RfC visibility settings'
end

describe 'GET #rfcs_for_exercise' do
Expand Down
4 changes: 2 additions & 2 deletions spec/lib/runner/strategy/docker_container_pool_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
end
end

include_examples 'Faraday error handling', :post
it_behaves_like 'Faraday error handling', :post
end

describe '#destroy_at_management' do
Expand All @@ -81,7 +81,7 @@
expect(destroy_runner_stub).to have_been_requested.once
end

include_examples 'Faraday error handling', :delete
it_behaves_like 'Faraday error handling', :delete
end

describe '#copy_files' do
Expand Down
52 changes: 26 additions & 26 deletions spec/lib/runner/strategy/poseidon_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@
end

context 'when error code is nomad overload' do
include_examples(
it_behaves_like(
'InternalServerError (500) with error code',
described_class.error_nomad_overload, Runner::Error::NotAvailable
)
end

context 'when error code is not nomad overload' do
include_examples(
it_behaves_like(
'InternalServerError (500) with error code',
described_class.error_unknown, Runner::Error::InternalServerError
)
Expand Down Expand Up @@ -189,11 +189,11 @@
end

[201, 204].each do |status|
include_examples 'returns true when the api request was successful', status
it_behaves_like 'returns true when the api request was successful', status
end

[400, 500].each do |status|
include_examples 'returns false when the api request failed', status
it_behaves_like 'returns false when the api request failed', status
end

it 'raises an exception if Faraday raises an error' do
Expand Down Expand Up @@ -252,8 +252,8 @@
end
end

include_examples 'BadRequest (400) error handling'
include_examples 'Unauthorized (401) error handling'
it_behaves_like 'BadRequest (400) error handling'
it_behaves_like 'Unauthorized (401) error handling'

context 'when Poseidon returns NotFound (404)' do
let(:response_status) { 404 }
Expand All @@ -263,9 +263,9 @@
end
end

include_examples 'InternalServerError (500) error handling'
include_examples 'unknown response status error handling'
include_examples 'Faraday error handling'
it_behaves_like 'InternalServerError (500) error handling'
it_behaves_like 'unknown response status error handling'
it_behaves_like 'Faraday error handling'
end

describe '#execute_command' do
Expand Down Expand Up @@ -319,12 +319,12 @@
end
end

include_examples 'BadRequest (400) error handling'
include_examples 'Unauthorized (401) error handling'
include_examples 'Gone (410) error handling'
include_examples 'InternalServerError (500) error handling'
include_examples 'unknown response status error handling'
include_examples 'Faraday error handling'
it_behaves_like 'BadRequest (400) error handling'
it_behaves_like 'Unauthorized (401) error handling'
it_behaves_like 'Gone (410) error handling'
it_behaves_like 'InternalServerError (500) error handling'
it_behaves_like 'unknown response status error handling'
it_behaves_like 'Faraday error handling'
end

describe '#destroy_at_management' do
Expand Down Expand Up @@ -352,10 +352,10 @@
end
end

include_examples 'Unauthorized (401) error handling'
include_examples 'InternalServerError (500) error handling'
include_examples 'unknown response status error handling'
include_examples 'Faraday error handling'
it_behaves_like 'Unauthorized (401) error handling'
it_behaves_like 'InternalServerError (500) error handling'
it_behaves_like 'unknown response status error handling'
it_behaves_like 'Faraday error handling'
end

describe '#copy_files' do
Expand All @@ -382,13 +382,13 @@
end
end

include_examples 'BadRequest (400) error handling'
include_examples 'BadRequest (400) destroys local runner'
include_examples 'Unauthorized (401) error handling'
include_examples 'Gone (410) error handling'
include_examples 'InternalServerError (500) error handling'
include_examples 'unknown response status error handling'
include_examples 'Faraday error handling'
it_behaves_like 'BadRequest (400) error handling'
it_behaves_like 'BadRequest (400) destroys local runner'
it_behaves_like 'Unauthorized (401) error handling'
it_behaves_like 'Gone (410) error handling'
it_behaves_like 'InternalServerError (500) error handling'
it_behaves_like 'unknown response status error handling'
it_behaves_like 'Faraday error handling'
end

describe '#attach_to_execution' do
Expand Down
Loading
Loading