Skip to content

Fix reusable workflow to checkout lab-validation repository#82

Merged
dhalperi merged 1 commit intomainfrom
fix-reusable-workflow-checkout
Jul 30, 2025
Merged

Fix reusable workflow to checkout lab-validation repository#82
dhalperi merged 1 commit intomainfrom
fix-reusable-workflow-checkout

Conversation

@dhalperi
Copy link
Copy Markdown
Member

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:

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.

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.

Fixes both checkout actions:
- discover-labs: Add repository: batfish/lab-validation
- lab-integration-test: Add repository: batfish/lab-validation to existing path
@dhalperi dhalperi enabled auto-merge (squash) July 30, 2025 23:24
@dhalperi dhalperi merged commit 8a15bc5 into main Jul 30, 2025
101 checks passed
@dhalperi dhalperi deleted the fix-reusable-workflow-checkout branch July 30, 2025 23:31
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.

1 participant