Skip to content

Mark the live HED validation tests as network - #486

Merged
neuromechanist merged 1 commit into
developfrom
fix/hed-tests-network-marker
Sep 24, 2026
Merged

neuromechanist merged 1 commit into
developfrom
fix/hed-tests-network-marker

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Every test in tests/test_tools/test_hed_validation.py calls hedtools.org (its docstring says so), but only TestValidationIntegration carried a marker. The unit jobs, which run -m "not network" (tests.yml) and -m "not integration and not llm and not network" (test.yml), therefore ran the other ten against the live service, and a slow response failed two unrelated PRs today:

A module-level pytestmark = pytest.mark.network leaves them to test.yml's network job, which already runs -m network with continue-on-error: true. No test is removed or changed.

  • -m "not integration and not llm and not network": all 11 deselected
  • -m network: all 11 run and pass against hedtools.org
  • ruff check and format clean

tests/test_tools/test_hed_validation.py calls hedtools.org in every test but only one class carried a marker (integration), so the unit jobs ran the rest and a slow response failed unrelated PRs: #484 (read operation timed out) and #485 (two validations returned False) on 2026-09-24. A module-level pytestmark = pytest.mark.network leaves them to test.yml's network job, which is continue-on-error.

Tested: -m 'not integration and not llm and not network' deselects all 11; -m network runs all 11, passing against hedtools.org; ruff check and format clean.
@neuromechanist
neuromechanist merged commit 0fd2d8d into develop Sep 24, 2026
7 checks passed
@neuromechanist
neuromechanist deleted the fix/hed-tests-network-marker branch September 24, 2026 19:48
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.

1 participant