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

Add missing command to dandi-archive docker compose fixture #1421

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

mvandenburgh
Copy link
Member

dandi-archive requires this command to be run as part of system initialization in order to initialize the database to serve as a Django cache backend. It must be run in order for any endpoint with caching enabled to work properly. See the set up instructions for docker-compose: https://github.com/dandi/dandi-archive/blob/master/DEVELOPMENT.md#initial-setup

Up until this point, the only endpoint with caching enabled was /api/stats/, and presumably the CLI has no need to hit that in testing so this went unnoticed. However, the rate limiting introduced in dandi/dandi-archive#1899 also makes use of the database cache backend, and thus the CLI tests are failing on that PR.

dandi-archive requires this command to be run as part of system
initialization in order to initialize the database to serve as a Django
cache backend. it must be run in order for any endpoint with caching
enabled to work properly.
@jwodder jwodder added the tests Add or improve existing tests label Mar 22, 2024
Copy link

codecov bot commented Mar 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.09%. Comparing base (23e702e) to head (8b76c82).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1421      +/-   ##
==========================================
+ Coverage   67.96%   68.09%   +0.13%     
==========================================
  Files          77       77              
  Lines       10522    10523       +1     
==========================================
+ Hits         7151     7166      +15     
+ Misses       3371     3357      -14     
Flag Coverage Δ
unittests 68.09% <100.00%> (+0.13%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yarikoptic
Copy link
Member

Thanks for the PR! Failures seems due to ontobee being still down!

Let's hope we didn't miss any side effect. Marking for release so any downstream testing benefits

@yarikoptic yarikoptic merged commit 94ec361 into master Mar 22, 2024
11 of 28 checks passed
@yarikoptic yarikoptic deleted the add-dandiapi-cachetable-in-tests branch March 22, 2024 16:44
Copy link

🚀 PR was released in 0.61.2 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release Create a release when this pr is merged released tests Add or improve existing tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants