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

Test /server-info endpoint in Dockerized environment #1020

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

jwodder
Copy link
Member

@jwodder jwodder commented May 26, 2022

Closes #977.

Blocked by dandi/dandi-archive#1108.

@jwodder jwodder added the tests Add or improve existing tests label May 26, 2022
@codecov
Copy link

codecov bot commented May 26, 2022

Codecov Report

Merging #1020 (3655aa1) into master (3655aa1) will not change coverage.
The diff coverage is n/a.

❗ Current head 3655aa1 differs from pull request most recent head 8a3d88f. Consider uploading reports for the commit 8a3d88f to get more accurate results

@@           Coverage Diff           @@
##           master    #1020   +/-   ##
=======================================
  Coverage   88.48%   88.48%           
=======================================
  Files          73       73           
  Lines        9291     9291           
=======================================
  Hits         8221     8221           
  Misses       1070     1070           
Flag Coverage Δ
unittests 88.48% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


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 3655aa1...8a3d88f. Read the comment docs.

@yarikoptic yarikoptic added the blocked Blocked by some needed development/fix label Jun 7, 2022
@yarikoptic
Copy link
Member

dandi/dandi-archive#1108 was addressed/closed -- should we retry this PR now @jwodder?

@jwodder
Copy link
Member Author

jwodder commented Jul 28, 2022

@yarikoptic I'm still getting a 404 for http://localhost:8000/server-info. dandi/dandi-archive#1190 indicates that only /server-info/ (with a trailing slash) is currently accepted, yet the code relies on accessing the path without a trailing slash.

@yarikoptic
Copy link
Member

note: I have followed up on dandi/dandi-archive#1108 (comment) .

I think that the path forward of the least resistance would be to switch to use /server-info/ with a trailing slash.

both main and staging support that
$> curl https://dandiarchive.org/server-info/
{"schema_version":"0.6.3","schema_url":"https://raw.githubusercontent.com/dandi/schema/master/releases/0.6.3/dandiset.json","version":"0.2.41","services":{"api":{"url":"https://api.dandiarchive.org/api"},"webui":{"url":"https://dandiarchive.org"},"jupyterhub":{"url":"https://hub.dandiarchive.org/"}},"cli-minimal-version":"0.14.2","cli-bad-versions":[]}%  

$> curl https://gui-staging.dandiarchive.org/server-info/
{"schema_version":"0.6.3","schema_url":"https://raw.githubusercontent.com/dandi/schema/master/releases/0.6.3/dandiset.json","version":"0.2.41","services":{"api":{"url":"https://api-staging.dandiarchive.org/api"},"webui":{"url":"https://gui-staging.dandiarchive.org"},"jupyterhub":{"url":"https://hub.dandiarchive.org/"}},"cli-minimal-version":"0.14.2","cli-bad-versions":[]}%      

or do you see any problem with that @jwodder ?

@jwodder
Copy link
Member Author

jwodder commented Jul 29, 2022

@yarikoptic Would the Archive continue to support older versions of the CLI that use /server-info without a trailing slash?

@yarikoptic
Copy link
Member

Well, ATM the actual deployment still has /server-info working through netlify somehow I guess. So unless and until that is changed, it would. Whenever it would stop we might need to boost minimal supported client version. For now I think it would be all good regardless.

@yarikoptic
Copy link
Member

wouldn't this be made obsolete with #1298 @jwodder ?

@jwodder
Copy link
Member Author

jwodder commented May 24, 2023

@yarikoptic No, get_instance() still makes requests to /server-info.

@yarikoptic
Copy link
Member

@jwodder - please reapproach this PR to be finalized. It seems that trailing / is no longer needed:

❯ curl --silent https://dandiarchive.org/server-info
{"schema_version":"0.6.4","schema_url":"https://raw.githubusercontent.com/dandi/schema/master/releases/0.6.4/dandiset.json","version":"0.3.40","services":{"api":{"url":"https://api.dandiarchive.org/api"},"webui":{"url":"https://dandiarchive.org"},"jupyterhub":{"url":"https://hub.dandiarchive.org/"}},"cli-minimal-version":"0.51.0","cli-bad-versions":[]}

@jwodder
Copy link
Member Author

jwodder commented Jun 8, 2023

@yarikoptic The Dockerized API instance currently returns 404 for http://localhost:8000/server-info with & without a trailing slash.

@yarikoptic
Copy link
Member

@yarikoptic The Dockerized API instance currently returns 404 for http://localhost:8000/server-info with & without a trailing slash.

Please investigate why , check it with @AlmightyYakob et al.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Blocked by some needed development/fix tests Add or improve existing tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RF move redirector testing into dandiapi testing?
3 participants