8000 fix: keep optional audit dependencies out of test discovery by rafatahmed · Pull Request #205 · rafatahmed/Flahax · GitHub
[go: up one dir, main page]

Skip to content
8000

fix: keep optional audit dependencies out of test discovery - #205

Merged
rafatahmed merged 3 commits into
mainfrom
fix/ci-optional-audit-dependencies
Oct 29, 2026
Merged

rafatahmed merged 3 commits into
mainfrom
fix/ci-optional-audit-dependencies

Conversation

@rafatahmed
Copy link
Copy Markdown
Owner

Closes #204

Makes NumPy and SciPy optional for the catalogue workflow audit. They are imported only inside fit(), and the tests that need them are skipped (find_spec) when absent, so plain unittest discover no longer fails with ImportError on tests.test_catalogue_workflow_audit. The audit tool and its test resolve paths and the git revision from the repository root, so they run from any directory. Both files get the SPDX/disclaimer header and ruff formatting, plus tests for the audit failure paths and the CLI.

This is PR 1 of the gate-decision plan (2026-10-29): restore a green main before the owner catalogue and the gate removals.

Direct pushes on record: d6a42dd, 12afcee and f9a1054 reached main by direct push, bypassing the PR requirement and the required checks. History is not rewritten.

Recommendation to the owner (settings action, not done here): in branch protection for main, enable "Do not allow bypassing the above settings" (enforce_admins).

Note: the two SciPy-gated tests first run on the 3.13 coverage leg (CI installs benchmarks/requirements.txt); they could not run locally.

@rafatahmed rafatahmed self-assigned this Oct 29, 2026
@codecov
codecov Bot commented Oct 29, 2026 •
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (12afcee) to head (aa967ec).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##              main      #205    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          111       112     +1     
  Lines        12978     13088   +110     
  Branches      2595      2604     +9     
==========================================
+ Hits         12978     13088   +110     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

@rafatahmed
rafatahmed marked this pull request as ready for review October 29, 2026 20:18
@rafatahmed
rafatahmed merged commit 33c5df2 into main Oct 29, 2026
13 checks passed
@rafatahmed
rafatahmed deleted the fix/ci-optional-audit-dependencies branch October 29, 2026 20:19
@rafatahmed rafatahmed added bug Something isn't working github_actions Pull requests that update GitHub Actions code labels Oct 30, 2026
rafatahmed added a commit that referenced this pull request Nov 7, 2026
…ncies

fix: keep optional audit dependencies out of test discovery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: respect phase review policy in catalogue audit reports

1 participant

0