Skip to content

Assert the Fallback Fetch URL in hub-fetch-run.py's Tests - #2352

Merged
ptr727 merged 1 commit into
developfrom
feature/2339-fallback-url-test
Oct 4, 2026
Merged

ptr727 merged 1 commit into
developfrom
feature/2339-fallback-url-test

Conversation

@ptr727

@ptr727 ptr727 commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Summary

Each fallback subtest in tests/test_hub_fetch_run.py now asserts the last fetched URL ends with /main/ followed by the prose gate path. A mutation that fetches from an unresolved ref now fails every fallback subtest.

Addresses #2339

🤖 Generated with Claude Code

Each fallback subtest now checks the last fetched URL ends with /main/ and the prose gate path.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 4, 2026 17:45
@coderabbitai

coderabbitai Bot commented Oct 4, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 960e4d30-8e59-4044-b1f9-11cde9a23809
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

Adds regression coverage to ensure fallback fetches use the main ref and correct prose gate path.

Changes:

  • Clears recorded requests per fallback case.
  • Verifies the final fallback URL.
File Description
tests/​test_hub_fetch_run.py Adds fallback URL assertions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ptr727
ptr727 merged commit 6cde7a3 into develop Oct 4, 2026
11 checks passed
@codecov

codecov Bot commented Oct 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.70%. Comparing base (f63c3fb) to head (1bdce7a).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2352   +/-   ##
========================================
  Coverage    57.70%   57.70%           
========================================
  Files           16       16           
  Lines         7919     7919           
========================================
  Hits          4570     4570           
  Misses        3349     3349           
Flag Coverage Δ
python-3.13 57.70% <ø> (ø)

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.

@ptr727
ptr727 deleted the feature/2339-fallback-url-test branch October 4, 2026 17:49
ptr727 added a commit that referenced this pull request Oct 4, 2026
…nd Review Digest Tolerance (#2360)

## Summary

Promotes `develop` to `main` with four pull requests, each already
reviewed and merged into `develop`:

- [#2352](#2352) asserts
that `hub-fetch-run.py`'s fallback fetch uses the `main` path.
- [#2355](#2355) tolerates
a per-field `workflowRun` error in `pr_review.py`, keying unreadable
Actions runs per suite so no failure is hidden.
- [#2356](#2356) reads the
`comments` label live in the validate task's lint job rather than off
the event payload, on public repositories, with private repositories
following in #2354.
- [#2359](#2359) reads
composite-action files through PyYAML under `uvx`, in isolated mode,
where PyYAML is not importable, replacing the unprovisioned `yq`
fallback.

Closes #2339
Closes #2338
Closes #1703
Closes #2348

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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