Skip to content

Conversation

@candleindark
Copy link
Member

@candleindark candleindark commented Nov 25, 2025

This PR makes the dandi-archive instance used by the tests vendorizable. It is a part of a solution to address dandi/dandi-schema#350. It gives a foundation for the solution at dandi/dandi-schema#355.

@codecov
Copy link

codecov bot commented Nov 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.05%. Comparing base (fa3ce1e) to head (c49b51b).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1756      +/-   ##
==========================================
- Coverage   75.06%   75.05%   -0.01%     
==========================================
  Files          84       84              
  Lines       11873    11873              
==========================================
- Hits         8912     8911       -1     
- Misses       2961     2962       +1     
Flag Coverage Δ
unittests 75.05% <ø> (-0.01%) ⬇️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@candleindark candleindark force-pushed the pass-vendor-info-to-tests branch 3 times, most recently from b318e11 to bad6700 Compare November 25, 2025 18:55
@candleindark candleindark added the tests Add or improve existing tests label Nov 25, 2025
@candleindark candleindark marked this pull request as ready for review November 25, 2025 22:33
Copilot finished reviewing on behalf of candleindark November 25, 2025 22:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enables vendorization of the dandi-archive instance used in tests by making three instance-specific configuration values customizable through environment variables. This addresses issue #350 in dandi/dandi-schema by allowing tests to run against different DANDI instances with custom identifiers.

  • Replaces hardcoded instance configuration values with environment variables that have backward-compatible defaults
  • Uses bash parameter expansion syntax (${VAR:-default}) to maintain existing behavior when environment variables are not set
  • Enables testing of vendorized DANDI instances by allowing customization of instance name, identifier, and DOI prefix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

Copy link
Contributor

Copilot AI commented Nov 26, 2025

@candleindark I've opened a new pull request, #1757, to work on those changes. Once the pull request is ready, I'll request review from you.

@candleindark candleindark force-pushed the pass-vendor-info-to-tests branch from bad6700 to 5834722 Compare November 26, 2025 01:24
@candleindark
Copy link
Member Author

Notes:

The following remaining failure has nothing to do with changes in the PR but #1758.

Screenshot 2025-11-25 at 10 43 14 PM

@yarikoptic yarikoptic merged commit c43062d into master Nov 26, 2025
72 of 74 checks passed
@yarikoptic yarikoptic deleted the pass-vendor-info-to-tests branch November 26, 2025 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Add or improve existing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants