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

Run tests in parallel #378

Merged
merged 2 commits into from
Jan 21, 2025
Merged

Run tests in parallel #378

merged 2 commits into from
Jan 21, 2025

Conversation

julienp
Copy link
Contributor

@julienp julienp commented Jan 18, 2025

This doesn't gain us that much, the slowest image, provider-build-environment, seems to go from 38 to 35 minutes.

@julienp julienp added the impact/no-changelog-required This issue doesn't require a CHANGELOG update label Jan 18, 2025
@julienp julienp force-pushed the julienp/parallel branch 5 times, most recently from edfc757 to 0f6cedc Compare January 19, 2025 13:24
@julienp julienp marked this pull request as ready for review January 21, 2025 08:03
@julienp julienp requested a review from a team as a code owner January 21, 2025 08:03
Copy link
Contributor

@tgummerer tgummerer left a comment

Choose a reason for hiding this comment

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

Every little bit helps! See my question inline though, we might be missing a t.Parallel call here still unless I'm missing something.

@@ -107,9 +107,6 @@ func TestPulumiTemplateTests(t *testing.T) {
for _, test := range testCases {
test := test
t.Run(test.template, func(t *testing.T) {
// TODO: Not running these in parallel to help with disk space.
// https://github.com/pulumi/pulumi-docker-containers/issues/215
// t.Parallel()
Copy link
Contributor

Choose a reason for hiding this comment

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

We're removing the TODO here, but not enabling running in parallel 🤔 was this an oversight or intentional?

Copy link
Contributor Author

@julienp julienp Jan 21, 2025

Choose a reason for hiding this comment

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

Hmmm a little weird, we use program test below, which calls t.Parallel().

I updated this now so that we call t.Parallel() ourselves, and tell program test not to. This way the pulumi new command should be part of the parallel execution too.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah I had missed that. ProgramTest calling parallel itself always trips me up.

Base automatically changed from julienp/use-arm-runners to main January 21, 2025 13:30
@julienp julienp enabled auto-merge (squash) January 21, 2025 13:47
@julienp julienp merged commit 81c687a into main Jan 21, 2025
53 checks passed
@julienp julienp deleted the julienp/parallel branch January 21, 2025 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/no-changelog-required This issue doesn't require a CHANGELOG update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants