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

cdk publish: add required token to commit to master and --no-cache for getting just-published version from pypi #36864

Merged

Conversation

erohmensing
Copy link
Contributor

@erohmensing erohmensing commented Apr 5, 2024

Some fixes to the workflow:

  • we need a token when checking out to be able to commit back to master
  • Without --no-cache, poetry's pypi cache immediately decides it can't find the new version that we just published in the previous step. --no-cache forces it to pull the versions again. It's possible that by the time it does this, pypi won't have updated it yet in their apis - if so we'll need to add a timeout too. But we'll try this first.

@erohmensing erohmensing requested a review from a team as a code owner April 5, 2024 17:38
Copy link

vercel bot commented Apr 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Apr 5, 2024 6:01pm

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @erohmensing and the rest of your teammates on Graphite Graphite

@erohmensing erohmensing enabled auto-merge (squash) April 5, 2024 17:41
@erohmensing
Copy link
Contributor Author

/approve-and-merge reason="Continue to fix cdk publish pipeline"

@octavia-approvington
Copy link
Contributor

After a careful ML study,
we think this looks okay.
imagine code being okay

@octavia-approvington octavia-approvington merged commit b2e8c15 into master Apr 5, 2024
26 of 27 checks passed
@octavia-approvington octavia-approvington deleted the ella/04-05-add-required-token-and---no-cache branch April 5, 2024 17:56
Copy link
Contributor

@natikgadzhi natikgadzhi left a comment

Choose a reason for hiding this comment

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

Thank you for the cleanup!

@@ -97,7 +97,7 @@ jobs:
with:
repository: ${{ github.event.inputs.repo }}
ref: ${{ github.event.inputs.gitref }}
token: ${{ secrets.GH_PAT_MAINTENANCE_OSS }}
token: ${{ secrets.GH_PAT_MAINTENANCE_OSS }} # This token is what allows us to commit directly to master
- name: "Publish Python CDK: bump Poetry package version"
id: bumpversion
run: |
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh I love this, now I know where we have the logic that pushes the version into the Changelog.

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.

None yet

3 participants