Skip to content

no network - #2338

Merged
Byron merged 2 commits into
mainfrom
no-network
Nov 4, 2026
Merged

Byron merged 2 commits into
mainfrom
no-network

Conversation

@Byron

@Byron Byron commented Nov 4, 2026

Copy link
Copy Markdown
Member

Supersedes #2337

mcepl and others added 2 commits November 4, 2026 00:44
<!-- aent -->
SUSE and openSUSE package builders disable network access for reproducible
builds. Allow them to exclude network-using tests with
`pytest -m 'not net'` while retaining local filesystem tests.

Register `net` in `pyproject.toml` and document in `CONTRIBUTING.md`
that it includes loopback sockets and fixture-triggered package downloads,
not just internet access. Mark the daemon-based repository tests, stalled
remote timeout cases, daemon restart test, installation test, and the
already-skipped external clone test. Mark only the daemon-launching
cleanup parameter so the other cleanup cases remain selected.

Existing skips and test bodies remain unchanged. Normalize TOML formatting
and imports in the touched files.

Assisted-by: GPT 6.0 Astra
Co-authored-by: GPT 6.0 Astra <codex@openai.com>
Copilot AI balanced review requested due to automatic review settings November 4, 2026 06:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the network-test marking and offline test-selection changes.

No open issues 🎉

What changed in this PR

This PR supports running GitPython’s tests on network-restricted builders, continuing the work in #2337 by identifying tests that require internet access or local sockets.

Changes:

  • Registers pytest.mark.net and documents exclusion with pytest -m 'not net'.
  • Marks network-dependent tests, including only the relevant parameterized cleanup case.
  • Tidies imports and TOML formatting.
File Description
test/​test_remote.py Marks remote-operation and timeout tests that use network sockets.
test/​test_installation.py Marks the installation test that downloads dependencies.
test/​test_clone.py Marks an already-skipped network clone test.
test/​test_cleanup.py Marks daemon cleanup tests and the network-dependent decorator parameter.
test/​test_base.py Marks the remote-repository fixture test.
pyproject.toml Registers the net marker and normalizes formatting.
CONTRIBUTING.md Documents marker usage, loopback coverage, and offline test selection.

Review effort: Balanced

@Byron
Byron merged commit 8e919a4 into main Nov 4, 2026
68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants