Skip to content

Allow bridged providers to opt into test sharding - #1293

Merged
t0yv0 merged 7 commits into
masterfrom
t0yv0/bridged-test-sharding
Jan 16, 2025
Merged

Allow bridged providers to opt into test sharding#1293
t0yv0 merged 7 commits into
masterfrom
t0yv0/bridged-test-sharding

Conversation

@t0yv0

@t0yv0 t0yv0 commented Jan 15, 2025

Copy link
Copy Markdown
Contributor

This PR rebases @blampe work on sharding for bridged providers #1217 with minor simplifications. An example PR applying this work is found here: pulumi/pulumi-awsx#1487

There should be no visible change for providers unless they opt in with "shards: 3" or similar. For providers that do opt in, the test job will stop splitting the build matrix by language and instead create a build matrix with as many workers as shards requested, and randomly assign integration tests to these workers. This permits better loading as typically language-based strategies end up being heavy on Node tests. It also permits having more workers than languages.

This work is prerequisite to onboarding pulumi-eks to ci-mgmt via the simplified bridge template.

@t0yv0
t0yv0 marked this pull request as ready for review January 15, 2025 22:31
@t0yv0
t0yv0 requested a review from rquitales January 15, 2025 22:31
@t0yv0 t0yv0 changed the title WIP: allow bridged provider sharding Allow bridged providers to opt into test sharding Jan 15, 2025
uses: ./.github/actions/setup-tools
#{{- if not .Config.Shards }}#
with:
tools: pulumictl, pulumicli, ${{ matrix.language }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we not need pulumi and pulumictl when we shard as well?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nevermind. The default is to install all tools if not specified.

@t0yv0
t0yv0 force-pushed the t0yv0/bridged-test-sharding branch from ad333b0 to 7d68154 Compare January 16, 2025 21:07
@t0yv0
t0yv0 enabled auto-merge January 16, 2025 21:08
@t0yv0
t0yv0 added this pull request to the merge queue Jan 16, 2025
Merged via the queue into master with commit 523c6a2 Jan 16, 2025
@t0yv0
t0yv0 deleted the t0yv0/bridged-test-sharding branch January 16, 2025 22:09
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.

2 participants