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

Embed version into the SDKs #161

Merged
merged 17 commits into from
Jul 26, 2024
Merged

Embed version into the SDKs #161

merged 17 commits into from
Jul 26, 2024

Conversation

danielrbradley
Copy link
Member

@danielrbradley danielrbradley commented Jul 24, 2024

Related to pulumi/ci-mgmt#915

Update local build process

  • We already have "respectSchemaVersion" set in the schema, but we don't have a version set in the schema so it had no effect.
  • Set the version in the schema via the generate program - passed in as a new argument.
  • Move generation of the go.mod stubs into the generate step so make generate doesn't leave a dirty working tree.
  • Remove sed from nodejs build - just copy the package which now already has the version set.
  • Fix setting the PACKAGE_VERSION env var for the Java build - makefile variables are not env variables.
  • Rename VERSION to PROVIDER_VERSION to match other providers.

Update CI

  • Set PROVIDER_VERSION in all workflows.
  • Use new working tree clean check to allow for changes to the version number in the SDK.
  • Use new Go SDK publish action to push a new commit & tag

Additional work

  • Switch to using pulumi package gen-sdk wherein we also bump up to the latest version of pulumi.
  • Fix broken tests:
    • Fix type change in Go.
    • Remove need for AWS_REGION env.
    • Use explicit provider path instead of $PATH now we're specifying the version in the SDK.
    • Actually run the python test.
  • Add release verification - where we test the actual published SDK is usable in Go, Nodejs and Python.

- We already have "respectSchemaVersion" set in the schema, but we don't have a version set in the schema so it had no effect.
- Set the version in the schema via the generate program - passed in as a new argument.
- Move generation of the go.mod stubs into the generate step so `make generate` doesn't leave a dirty working tree.
- Remove sed from nodejs build - just copy the package which now already has the version set.
- Fix setting the `PACKAGE_VERSION` env var for the Java build - makefile variables are not env variables.
@danielrbradley danielrbradley self-assigned this Jul 24, 2024
- Less generally used name and matches all other providers.
- Fix actionlint issues.
- Use provider-version action for PRs.
- Allow for changes to the version number.
@danielrbradley danielrbradley marked this pull request as ready for review July 24, 2024 15:14
@danielrbradley
Copy link
Member Author

danielrbradley commented Jul 24, 2024

@danielrbradley danielrbradley requested a review from a team July 24, 2024 19:44
Copy link
Member

@iwahbe iwahbe left a comment

Choose a reason for hiding this comment

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

Looks reasonable.

- Prefer use of built-in feature over third party action.
- Will appear in a single, cohesive job.

Mirror all inputs

Set same defaults so it doesn't skip the different steps
- Disable Java for pre-releases.
- Set up AWS credentials for release verification.
- Make the python release idempotent.
- Use the transformed version that's being released.
- Update from pulumi v3.107.0 to v3.126.0.
- Delete pulumi-gen-aws-apigateway binary.
- Re-generate all SDKs.
- Update sdk/go.mod to use matching pulumi SDK version.
- Default region if not set to same as CI.
- Set binary path via pulumi config rather than relying on $PATH discovery order.
- Produce the provider binary as part of `make build_provider` rather than having to run `make install_provider`. Leave the latter as an alias.
- Fix version of pulumi/sdk to be the same everywhere.
- Fix routes actually being inputty. Unclear why this wasn't the case before.
- Tidy provider go.mod
- Fix extra validation to use same region as the main test (not relying on the AWS_REGION to be set).
- It seems to have a delay before it's listed in the index and causes the test to fail.
- Wait up to 15 minutes before continuing.
- Actually run python integration tests.
- Remove broken relative reference.
- Fix wrong python package name.
@danielrbradley danielrbradley requested a review from a team July 25, 2024 20:24
sdk/nodejs/restAPI.ts Outdated Show resolved Hide resolved
This can be reverted once pulumi/pulumi#16810 has been fixed.
@danielrbradley danielrbradley merged commit b978236 into main Jul 26, 2024
9 checks passed
@danielrbradley danielrbradley deleted the embed-sdk-version branch July 26, 2024 11:06
danielrbradley added a commit that referenced this pull request Jul 26, 2024
@danielrbradley danielrbradley mentioned this pull request Jul 26, 2024
@mjeffryes mjeffryes added this to the 0.108 milestone Aug 16, 2024
@pulumi-bot
Copy link

This PR has been shipped in release v2.6.0.

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.

7 participants