Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX add hyperlink to log when submission failed #576

Merged

Conversation

glemaitre
Copy link
Collaborator

closes #575

I suspect this is the source of the error that was introduced in #366

We should probably add a non-regression test that checks that we have a link to a hyperlink with the failed leaderboard.

# check that we have a link to the log of the failed submission
print(leaderboard_failed)
assert False
assert "<a href=" in leaderboard_failed
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK so the string is:

<a href=/abcb5aeab7e78cd43636a10d6856dcdf4ae886c6/error.txt>

So we can make a regex <a href=/*/error.txt>

@codecov
Copy link

codecov bot commented May 21, 2022

Codecov Report

Merging #576 (d5c8453) into master (9d2f479) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #576   +/-   ##
=======================================
  Coverage   93.52%   93.52%           
=======================================
  Files         103      103           
  Lines        8962     8964    +2     
=======================================
+ Hits         8382     8384    +2     
  Misses        580      580           
Impacted Files Coverage Δ
ramp-database/ramp_database/tools/leaderboard.py 100.00% <ø> (ø)
...base/ramp_database/tools/tests/test_leaderboard.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9d2f479...d5c8453. Read the comment docs.

@agramfort agramfort merged commit ccf2cf5 into paris-saclay-cds:master May 22, 2022
@agramfort
Copy link
Collaborator

Thx @glemaitre

I suggest we make a minor release and update the server ok?

@glemaitre
Copy link
Collaborator Author

I suggest we make a minor release and update the server ok?

I would like to tackle this one before that:

#577

@rth
Copy link
Collaborator

rth commented Oct 19, 2022

@glemaitre @frcaud I'll tag the 0.10.1 release with this fix and deploy this if you don't mind. I haven't realized it wasn't deployed, and it's a regression.

cc @jjerphan

@glemaitre
Copy link
Collaborator Author

Fine with me.

rth pushed a commit that referenced this pull request Oct 19, 2022
* FIX add hyperlink to log when submission failed

* debug

* Update ramp-database/ramp_database/tools/tests/test_leaderboard.py

* Update test_leaderboard.py

* Update ramp-database/ramp_database/tools/tests/test_leaderboard.py

* Update ramp-database/ramp_database/tools/tests/test_leaderboard.py
@frcaud
Copy link
Collaborator

frcaud commented Oct 19, 2022

LGTM !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing error traceback when a submission failed
4 participants