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

Automatically accept SDK changes for Renovate PRs #1248

Merged
merged 2 commits into from
Dec 23, 2024
Merged

Conversation

blampe
Copy link
Contributor

@blampe blampe commented Dec 23, 2024

We have a problem right now where automated dependency upgrades can change our generated code, and this causes tests to fail because we expect no changes in CI.

The "right" way to do this is with a hermetic make renovate step which can re-generate this code during the Renovate job, as @t0yv0 has started doing for EKS (e.g. pulumi/pulumi-eks#1552). But we don't have hermetic builds so we don't yet have an easy way to get this to work across all providers.

This PR implements a suggestion from Daniel to help address the long tail. Essentially right before we fail a build for containing SDK changes, we will commit those changes and push them back to the PR -- but only if it came from Renovate. The build will still fail, but tests will be re-tried against the updated SDK.

Renovate has already been configured to "ignore" updates from pulumi-bot (https://github.com/pulumi/renovate-config/commit/82931a62d50a9b7a628032bdefbf3c6f64a4e895), so if tests pass it will still automatically squash and merge.

Here's an example where I manually modified the SDK and the PR was automatically corrected:

image

Refs #1101
Refs #936

@blampe blampe requested a review from t0yv0 December 23, 2024 21:08
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.

Let's try this.

@blampe
Copy link
Contributor Author

blampe commented Dec 23, 2024

@blampe blampe added this pull request to the merge queue Dec 23, 2024
Merged via the queue into master with commit f96fe37 Dec 23, 2024
9 checks passed
@blampe blampe deleted the blampe/renovate-sdk branch December 23, 2024 22:52
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