-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
smoke_test: Fix Failure on Windows GitHub Workflow #571
Conversation
3d799fe
to
dd1d14e
Compare
dd1d14e
to
40f8602
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran workflow manually against windows/macos with python versions 3.10, 3.11, 3.12 and latest OPA. All passed, but had to rerun the windows 3.12 test due to Google Policy API rate limits (something to keep in mind if testing multiple versions).
The smoke test was failing on Windows and Alden temporarily limited the workflow to run on macOS. With the changes in this PR, the smoke test successfully runs on the Windows workflow. I’m suggesting that this PR be approved as it accomplishes the goal of fixing the issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Roy, looks good
🗣 Description
Fixed the smoke test for the Windows workflow by correcting the use of the Python virtual environments for both OS flows. GitHub uses 2 drives in its VM/container when running a workflow on Windows, and it looks like OPA isn't handling it correctly when the current working directory is on one drive and is being passed input files on another drive. Regardless, we should be using the Python virtual environment correctly, and this fix takes care of the OPA issue as well (because OPA is run with the current working directory on the same drive as the input data).
The default OPA version used in the smoke test has been updated to v1.0.0. We really should be running the latest version of OPA for this test so we can catch any OPA issues before ScubaGoggles users encounter them.
Closes #529
🧪 Testing
Ran the smoke test workflow with both macOS and Windows runners and the tests complete successfully.
✅ Pre-approval checklist
✅ Pre-merge Checklist
Squash and merge
button.✅ Post-merge Checklist