Skip to content

Commit 8a15bc5

Browse files
authored
Fix reusable workflow to checkout lab-validation repository (#82)
## Problem The reusable workflow was checking out the calling repository instead of the lab-validation repository, causing the discover-labs job to fail when trying to find the snapshots/ directory. When called from batfish/docker, the workflow would check out the docker repository and then try to run: ```bash ls -1 snapshots/ # This fails because docker repo has no snapshots/ directory ``` ## Solution Fixed both checkout actions to explicitly specify the lab-validation repository: 1. **discover-labs job**: Added `repository: batfish/lab-validation` 2. **lab-integration-test job**: Added `repository: batfish/lab-validation` to the existing path specification ## Impact This enables the reusable workflow to be called from any repository (like batfish/docker) while still accessing the lab snapshots and test framework from lab-validation. ## Testing This fix is needed for batfish/docker#140 which integrates lab-validation testing into the docker release pipeline.
1 parent e0fb407 commit 8a15bc5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/reusable-lab-validation.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
steps:
4545
- name: Checkout lab-validation
4646
uses: actions/checkout@v4
47+
with:
48+
repository: batfish/lab-validation
4749

4850
- name: Discover available labs
4951
id: discover
@@ -116,6 +118,7 @@ jobs:
116118
- name: Checkout lab-validation
117119
uses: actions/checkout@v4
118120
with:
121+
repository: batfish/lab-validation
119122
path: lab-validation
120123

121124
- name: Set up Python 3.10

0 commit comments

Comments
 (0)