Repository navigation
fix(setup): unblock testinfra init fixture (dep-sync timeout + NixOS git-hook shebangs) - #694
Merged
c-vigo merged 3 commits intoJun 24, 2026
Conversation
The .githooks/{pre-commit,commit-msg,prepare-commit-msg} hooks hardcoded
#!/bin/bash. Like the host scripts fixed in #690, these run on the host and
fail on NixOS (no /bin/bash), so git cannot exec them and every commit aborts
with 'cannot exec: No such file or directory'. Switch to the portable
#!/usr/bin/env bash form.
Refs: #690
The session-scoped initialized_workspace fixture waited only 30s for the 'Workspace initialized successfully' banner after 'Syncing dependencies'. That window covers 'just sync' (uv sync --all-extras) downloading the test-project's heavy scientific extras (numpy, scipy, pandas, matplotlib, jupyter) with no warm uv cache, so a cold/slow network times out and the failure cascades to every dependent test as an ERROR at setup. Raise the completed-stage timeout to a generous default (300s) and make it overridable via INIT_DEPS_SYNC_TIMEOUT for fast-cache/CI tuning. Refs: #692
…fixture-sync-timeout
This was referenced Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the flaky
initialized_workspacetestinfra fixture that timed out duringuv sync, cascading anERROR at setupto every dependent test. Folds in acompanion portability fix for the git hooks (same
#!/bin/bash-on-NixOS class as#690), without which commits cannot run on a NixOS host.
Sub-issue of the #625 Nix migration epic; targets the epic branch
feature/625-nix-claude-migration.Changes
test(setup)— init dep-sync timeout (Closes #692)Workspace initialized successfullybanner after
Syncing dependencies. That window coversjust sync(
uv sync --all-extras) downloading the test-project's heavy scientific extras(
numpy,scipy,pandas,matplotlib,jupyter) with no warm uv cache,so a cold/slow network times out mid-download.
via
INIT_DEPS_SYNC_TIMEOUTfor fast-cache/CI tuning.fix(setup)— portable git-hook shebangs (Refs #690).githooks/{pre-commit,commit-msg,prepare-commit-msg}hardcoded#!/bin/bash.Like the host scripts fixed in fix(setup): use portable env-bash shebang in host scripts #690, these run on the host and fail on NixOS
(no
/bin/bash):fatal: cannot exec '.githooks/pre-commit': No such file or directory. Switched to portable#!/usr/bin/env bash.Verification
INIT_DEPS_SYNC_TIMEOUTenv override resolve correctly(verified via
uv run python).line-length), soruffis clean.bandit, agent-identity, branch-name, commit-msg validation, sync-manifest).
ruff/ruff-format/typoscannot execute on this NixOS host (dynamicallylinked binaries — the very limitation [MASTER] Migrate devcontainer to a Nix toolchain + Claude-native setup #625 addresses) and were skipped locally
via pre-commit
SKIP; CI enforces them on this PR. No--no-verifyused.Notes
The durable fix (warming the uv cache in the Nix-built image so
uv syncisoffline-fast) belongs to the #634/#635 image track and is out of scope here.
Closes #692