Skip to content

ci: remove last use of DANDI_ALLOW_LOCALHOST_URLS env var#375

Merged
yarikoptic merged 1 commit intomasterfrom
remove-remnants-of-DANDI_ALLOW_LOCALHOST_URLS
Mar 3, 2026
Merged

ci: remove last use of DANDI_ALLOW_LOCALHOST_URLS env var#375
yarikoptic merged 1 commit intomasterfrom
remove-remnants-of-DANDI_ALLOW_LOCALHOST_URLS

Conversation

@candleindark
Copy link
Member

@candleindark candleindark commented Mar 2, 2026

Summary

Removes the last remaining reference to DANDI_ALLOW_LOCALHOST_URLS
from .github/workflows/test-dandi-cli.yml.

Why this closes #67

Issue #67 was filed because the codebase required DANDI_ALLOW_LOCALHOST_URLS
to be set in test environments to permit localhost URLs, which were
otherwise rejected by strict URL validation in the Pydantic models.

The root cause was addressed in commit a12f2e4 (2023): DANDI_INSTANCE_URL
was defaulted to localhost and AnyHttpUrl was adopted
unconditionally, eliminating the need for the env var workaround
entirely. Since then, DANDI_ALLOW_LOCALHOST_URLS has been a no-op —
no code in the repository reads it.

This PR removes its last mention in the dandi-cli test workflow,
completing the cleanup originally requested in #67.

This cleanup was identified while running the
/issue-triage
skill against the open issues of this repository, which flagged #67 as
likely resolved with HIGH confidence.

Closes #67.

Test plan

  • dandi-cli CI passes without DANDI_ALLOW_LOCALHOST_URLS set
    (no behavioral change expected — the env var has been unread since 2023).

🤖 Generated with Claude Code

The env var DANDI_ALLOW_LOCALHOST_URLS was removed from the codebase
in a12f2e4 (2023), when the DANDI_INSTANCE_URL defaulted to localhost
and AnyHttpUrl was used unconditionally. This removes the remaining
reference in the dandi-cli test workflow, which has been a no-op since
that commit.

Closes: #67
@codecov
Copy link

codecov bot commented Mar 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.91%. Comparing base (20544c0) to head (c7a7e23).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #375   +/-   ##
=======================================
  Coverage   97.91%   97.91%           
=======================================
  Files          18       18           
  Lines        2401     2401           
=======================================
  Hits         2351     2351           
  Misses         50       50           
Flag Coverage Δ
unittests 97.91% <ø> (ø)

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.

@yarikoptic yarikoptic merged commit 3a267f7 into master Mar 3, 2026
72 checks passed
@yarikoptic yarikoptic deleted the remove-remnants-of-DANDI_ALLOW_LOCALHOST_URLS branch March 3, 2026 16:12
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.

avoid needing DANDI_ALLOW_LOCALHOST_URLS env var for tests

2 participants