Skip to content

Reduce pre-push hook to fast, non-network smoke tests#47

Merged
dreadn0ught merged 2 commits into
update_testing_improve_poetryfrom
copilot/sub-pr-45-again
Feb 10, 2026
Merged

Reduce pre-push hook to fast, non-network smoke tests#47
dreadn0ught merged 2 commits into
update_testing_improve_poetryfrom
copilot/sub-pr-45-again

Conversation

Copilot AI commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

The pre-push hook runs the full smoke suite including network-dependent tests (npm installs, git clones), making it slow and flaky for contributors without those tools.

Changes

  • Default pre-push to run only smoke and not network and not slow tests (7 of 29 tests, ~22s)
  • Add comment documenting how to opt into the full suite
# Run Smoke tests (fast, non-network subset)
# For the full smoke suite including network/slow tests, use:
#   poetry run pytest test/smoke/test_smoke.py
poetry run pytest test/smoke/test_smoke.py -m "smoke and not network and not slow"

This excludes tests requiring external dependencies while maintaining coverage of core functionality.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

High-level PR Summary

This is a work-in-progress PR created to address feedback from a review on PR #45. The PR is intended to merge into #45 rather than the main branch, and focuses on testing improvements based on specific review comments. Currently, no file changes have been submitted yet as the work is still in progress.

⏱️ Estimated Review Time: 5-15 minutes

Need help? Join our Discord

@recurseml recurseml Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review by RecurseML

🔍 Review performed on 3b08b90..8f0d941

✨ No files to analyze

Co-authored-by: dreadn0ught <31293924+dreadn0ught@users.noreply.github.com>

Copilot AI commented Feb 10, 2026

Copy link
Copy Markdown
Contributor Author

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • install.python-poetry.org
    • Triggering command: /usr/bin/curl curl -sSL REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] WIP Address feedback from review for testing improvements Reduce pre-push hook to fast, non-network smoke tests Feb 10, 2026
Copilot AI requested a review from dreadn0ught February 10, 2026 15:15
@dreadn0ught dreadn0ught marked this pull request as ready for review February 10, 2026 15:55
@dreadn0ught dreadn0ught merged commit 488beb8 into update_testing_improve_poetry Feb 10, 2026
@dreadn0ught dreadn0ught deleted the copilot/sub-pr-45-again branch February 10, 2026 15:56
dreadn0ught added a commit that referenced this pull request Feb 10, 2026
* Improved testing and fixed poetry failure handling

* add smoke tests

* Add smoke tests to cicd

* Update pre-push tests

* fix tests

* update runtime test paths

* fix venv issue

* Update .github/workflows/test.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update ossprey/sbom_python.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update test/smoke/test_smoke.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Reduce pre-push hook to fast, non-network smoke tests (#47)

* Initial plan

* Update pre-push hook to run only fast, non-network smoke tests

Co-authored-by: dreadn0ught <31293924+dreadn0ught@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: dreadn0ught <31293924+dreadn0ught@users.noreply.github.com>

* bug fix

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
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.

2 participants