Skip to content
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

Add act to Pants (all in BUILD) and smoke test our workflows #19278

Merged
merged 3 commits into from
Jun 11, 2023

Conversation

thejcannon
Copy link
Member

This is groundwork for/from #19230.

Not only can we have devs run act now (without having to install it 😄 (kudos to @chrisjrn 's work in adhoc/shell) but we can smoke test our workflows.

My local testing using act has actually bore much fruit. Several bugs were caught that existed solely in the YAML file itself. A history of the workflows file shows PRs that mirror my own findings: It's damn hard to test actions. Although this addition represents semi-significant cognitive burden of act and what goes into smoke testing, I think it's worth it to avoid the large churn that comes with authoring/editing actions. And I want to author more actions (because automation is bae).

So, here's the foundation 😄

@thejcannon thejcannon added the category:internal CI, fixes for not-yet-released features, etc. label Jun 8, 2023
.github/workflows/tests/BUILD Outdated Show resolved Hide resolved
@thejcannon thejcannon enabled auto-merge (squash) June 9, 2023 01:14
@benjyw
Copy link
Contributor

benjyw commented Jun 9, 2023

Not being able to test locally is one of the main reasons I hate updating our workflows. So yay!

Copy link
Contributor

@benjyw benjyw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huzzah!


file(
name="downloaded-act",
source=per_platform(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This right here is the business!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♥️

I tried doing something similar with GH, but it was sometimes a tar, sometimes not, and just didn't seem worth it at the time.

Maybe I'll try again as well ..

Copy link
Member

@kaos kaos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet!

@thejcannon thejcannon merged commit 5a59c60 into main Jun 11, 2023
@thejcannon thejcannon deleted the thejcannon/add-act branch June 11, 2023 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants