:test_tube: So...... I think I might've crossed th...
# development
b
๐Ÿงช So...... I think I might've crossed the Dr. Ian Malcom line here..... but I can now do high-level testing of GitHub Actions in Pants...
Copy code
experimental_test_shell_command(
    name="Test auto-cherry-picker prereqs",
    command="./act workflow_dispatch -W .github/workflows/auto-cherry-picker.yaml -j prerequisites --input PR_number=17295 --env GITHUB_REPOSITORY=pantsbuild/pants",
    execution_dependencies=["//build-support/bin/act:bundled-act"],
    workdir="/",
    timeout=120,
)
Now I know I don't have broken YAML and my code executes reasonably well...
๐Ÿš‚ 3
...and this DID find a bug ๐Ÿ˜…
๐Ÿฆ– 4
Scratch that. TWO bugs ๐Ÿ™‚
I decided to ignore Dr. Ian and trudge forth. https://github.com/pantsbuild/pants/pull/19278 I explain in the PR why I think the overhead is worth it.