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

Generate workflows for aws #518

Merged
merged 12 commits into from
Aug 28, 2023
Merged

Generate workflows for aws #518

merged 12 commits into from
Aug 28, 2023

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Aug 22, 2023

This PR generated the workflow files for pulumi/pulumi-aws#2708.

This does not account for aws's Makefile, which is still non-standard. To make this safe to merge, we skip generating a Makefile for pulumi-aws (leaving the current one in place).

Improvements to ci-mgmt:

  • Parameterize by test runners (default and publisher).

We are waiting to merge until aws v6 has launched. v6 has launched and we have updated pulumi-aws's workflows. Merging now.

@iwahbe iwahbe self-assigned this Aug 22, 2023
@iwahbe iwahbe marked this pull request as draft August 22, 2023 18:47
@iwahbe iwahbe mentioned this pull request Aug 22, 2023
@iwahbe iwahbe force-pushed the iwahbe/ci-mgmt-for-pulumi-aws branch 2 times, most recently from 47a0565 to baa0f50 Compare August 24, 2023 18:43
@iwahbe iwahbe requested review from danielrbradley and a team August 25, 2023 03:44
@iwahbe iwahbe marked this pull request as ready for review August 25, 2023 03:44
@iwahbe iwahbe requested review from t0yv0 and removed request for a team, t0yv0 and danielrbradley August 25, 2023 03:56
@iwahbe iwahbe marked this pull request as draft August 25, 2023 19:23
@iwahbe iwahbe force-pushed the iwahbe/ci-mgmt-for-pulumi-aws branch 8 times, most recently from 8786cf6 to 8ec6279 Compare August 25, 2023 19:57
We missed updating this when we removed `.Config.actionVersions.setupGo` to
`.Config.actions.setupGo`. These workflows were broken, and this fixes them.
@iwahbe iwahbe force-pushed the iwahbe/ci-mgmt-for-pulumi-aws branch from 8ec6279 to a9bb324 Compare August 25, 2023 20:06
@iwahbe iwahbe changed the base branch from master to iwahbe/fix-nightly-workflow August 25, 2023 20:06
@iwahbe iwahbe marked this pull request as ready for review August 25, 2023 20:08
@iwahbe iwahbe requested review from danielrbradley and a team August 25, 2023 20:08
@iwahbe iwahbe force-pushed the iwahbe/ci-mgmt-for-pulumi-aws branch from a9bb324 to 0e7a98d Compare August 25, 2023 20:12
Base automatically changed from iwahbe/fix-nightly-workflow to master August 25, 2023 20:16
iwahbe added a commit to pulumi/pulumi-aws that referenced this pull request Aug 25, 2023
@iwahbe iwahbe requested a review from t0yv0 August 25, 2023 21:20
Copy link
Contributor

@guineveresaenger guineveresaenger left a comment

Choose a reason for hiding this comment

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

This looks great at first glance.

Can you add an explanation why we need the extraTests config option? I'm assuming it's because we want to test the provider shim in AWS but nowhere else - however I don't see an extra shim test action being generated; what am I missing?

Comment on lines +370 to +388
go_test_shim:
if: github.event_name == 'repository_dispatch' || github.event.pull_request.head.repo.full_name == github.repository
name: Run test of provider shim
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
ref: ${{ env.PR_COMMIT_SHA }}
submodules: true
- uses: actions/setup-go@v4
with:
cache-dependency-path: provider/shim/go.sum
go-version-file: provider/shim/go.mod
- name: go test
run: |
cd provider/shim
go test -v .
timeout-minutes: 60
Copy link
Member Author

@iwahbe iwahbe Aug 26, 2023

Choose a reason for hiding this comment

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

This looks great at first glance.

Can you add an explanation why we need the extraTests config option? I'm assuming it's because we want to test the provider shim in AWS but nowhere else - however I don't see an extra shim test action being generated; what am I missing?

You're right, we use extraTests for testing the shim. Each item in extraTests is instantiated wherever we do tests (run-acceptance-tests.yml, master.yml, main.yml, prerelease.yml and release.yml), and then back-linked as a needs dependency wherever other tests are linked.

Copy link
Member

@t0yv0 t0yv0 left a comment

Choose a reason for hiding this comment

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

🚢

iwahbe added a commit to pulumi/pulumi-aws that referenced this pull request Aug 28, 2023
…2708)

This PR is based off of pulumi/ci-mgmt#518. The Makefile has greater changes, which will be handled in a separate PR.

There are outstanding changes in these files:
- [ ]  Makefile
- [x] .github/workflows/main.yml
- [x] .github/workflows/master.yml
- [x] .github/workflows/nightly-test.yml
- [x] .github/workflows/prerelease.yml
- [x] .github/workflows/release.yml
- [x] .github/workflows/run-acceptance-tests.yml
- [x] .github/workflows/update-bridge.yml
- [X] .github/workflows/command-dispatch.yml
- [X] .github/workflows/community-moderation.yml
- [X] .github/workflows/pull-request.yml
- [X] .github/workflows/resync-build.yml
- [X] .github/workflows/upgrade-bridge.yml
- [X] .github/workflows/upgrade-provider.yml
- [X] .goreleaser.prerelease.yml
- [X] .goreleaser.yml
- [X] .upgrade-config.yml
- [X] scripts/upstream.sh

We will merge as soon as we release v6. I expect the Makefile normalization to occur later.
@iwahbe iwahbe merged commit fb037fd into master Aug 28, 2023
@iwahbe iwahbe deleted the iwahbe/ci-mgmt-for-pulumi-aws branch August 28, 2023 19:35
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.

3 participants