Closed popescuatopg closed 3 months ago
Update: manually modifying the jobs.run-autograding-tests.runs-on
from ubuntu-latest
to ubuntu-20.04
solves most of them. There's still an error on the qsort segments
test:
But I reckon this is a problem on my side because of poorly written rust code
Also, if you do get to modifying the classroom.yml
please also consider modifying the bss code
test to have the setup command cd devoir-4-tests && timeout 5 ./run.sh bss
instead of cd /devoir-4-tests && timeout 5 ./run.sh bss
, because it errors out when navigating to devoir-4-tests
from the root folder
Update 2: Error with test no_perm code
. It tries to cd into devoir-3-tests
instead of devoir-4-tests
Update 2: Error with test
no_perm code
. It tries to cd intodevoir-3-tests
instead ofdevoir-4-tests
Fixed
Update: manually modifying the
jobs.run-autograding-tests.runs-on
fromubuntu-latest
toubuntu-20.04
solves most of them. There's still an error on theqsort segments
test:But I reckon this is a problem on my side because of poorly written rust code
Also, if you do get to modifying the
classroom.yml
please also consider modifying thebss code
test to have the setup commandcd devoir-4-tests && timeout 5 ./run.sh bss
instead ofcd /devoir-4-tests && timeout 5 ./run.sh bss
, because it errors out when navigating todevoir-4-tests
from the root folder
Fixed
The version of the grader should now run using ubuntu 20.04, thank you for pointing this.
There seems to be a problem with the rustyloader tests. More specifically, with the ELFs created by the Makefile on the github runner. The entry point seems to be erroneous on multiple tests.
Testing (with
bss
ELF as example)I have
rustup target add i686-unknown-linux-gnu && sudo apt-get update && sudo apt-get -y install gcc-multilib
https://github.com/UPB-FILS-SdE2/devoir-4-tests.git
repository locally and cd'ed into itcd inputs && make && cd ..
to create all the ELFscargo build --release
./run.sh bss
./verify.sh bss segments
leading to no differencesI have also created a symlink from
${PWD}/target/i686-unknown-linux-gnu/release/rusty-loader
to/home/codespace/.cargo/bin
so that I can execute the app.Using the command
readelf -h bss | grep 'Entry point'
locally leads to this output:which is correct judging by the
solutions/bss.segments
:The local output from my rust app is correct, as well, since manually git diff'ing leads to:
Possible causes
I am not 100% sure what could lead to this, but I have some ideas:
make
compiles the .c programs on the runner, the entry point is differentRunning
lsb_release -a
locally shows:While the runner runs 22.04: