Skip to content

Comments

ci: support external fork repositories in reusable workflow#91

Merged
dhalperi merged 1 commit intomainfrom
spr/main/514bf778
Feb 3, 2026
Merged

ci: support external fork repositories in reusable workflow#91
dhalperi merged 1 commit intomainfrom
spr/main/514bf778

Conversation

@dhalperi
Copy link
Member

@dhalperi dhalperi commented Feb 3, 2026

Add batfish_repository input to allow callers to specify which
repository contains the batfish code to checkout. This enables
lab validation for PRs from external contributors, whose branches
exist in their forks rather than batfish/batfish.


Prompt:

Lab validation doesn't work for PRs from external contributors.
Now it's failing on:

https://github.com/batfish/batfish/actions/runs/21613339182/job/62286746884?pr=9757

/usr/bin/git -c protocol.version=2 fetch --no-tags --prune
--no-recurse-submodules --depth=1 origin
+refs/heads/bgp-confederation-fix*:refs/remotes/origin/bgp-confederation-fix*
+refs/tags/bgp-confederation-fix*:refs/tags/bgp-confederation-fix*
The process '/usr/bin/git' failed with exit code 1

Add batfish_repository input to allow callers to specify which
repository contains the batfish code to checkout. This enables
lab validation for PRs from external contributors, whose branches
exist in their forks rather than batfish/batfish.

----

Prompt:
```
Lab validation doesn't work for PRs from external contributors.
Now it's failing on:

https://github.com/batfish/batfish/actions/runs/21613339182/job/62286746884?pr=9757

  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune
  --no-recurse-submodules --depth=1 origin
  +refs/heads/bgp-confederation-fix*:refs/remotes/origin/bgp-confederation-fix*
  +refs/tags/bgp-confederation-fix*:refs/tags/bgp-confederation-fix*
  The process '/usr/bin/git' failed with exit code 1
```

commit-id:514bf778
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.57%. Comparing base (a10edba) to head (7b17c90).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #91   +/-   ##
=======================================
  Coverage   83.57%   83.57%           
=======================================
  Files          86       86           
  Lines        3902     3902           
=======================================
  Hits         3261     3261           
  Misses        641      641           
Flag Coverage Δ
unittests 83.57% <ø> (ø)

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

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

@dhalperi dhalperi enabled auto-merge (squash) February 3, 2026 01:54
@dhalperi dhalperi merged commit 551b7d8 into main Feb 3, 2026
101 checks passed
@dhalperi dhalperi deleted the spr/main/514bf778 branch February 3, 2026 01:59
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