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

Add release automation logic #504

Merged
merged 10 commits into from
Oct 17, 2024
Merged

Add release automation logic #504

merged 10 commits into from
Oct 17, 2024

Conversation

sydney-runkle
Copy link
Member

@sydney-runkle sydney-runkle commented Oct 15, 2024

Closes #470

See readme for new pattern:

1. Run `uv run release/prepare.py {VERSION}` from the root of the repository. This will:
    * Update the version number in the `pyproject.toml` files in the root and in `logfire-api`.
    * Add a new section to CHANGELOG.md with a title containing the version number tag and current date.
    * Add a line at the end of this section that looks something like [v1.0.1]: https://github.com/pydantic/logfire/compare/v{PREV_VERSION}...v1.0.1 but with the correct version number tags.
2. Curate the changes in CHANGELOG.md:
    * Make sure the markdown is valid; in particular, check text that should be in code-blocks is.
    * Mark any breaking changes with **Breaking Change:**.
    * Deduplicate the packaging entries to include only the most recent version bumps for each package.
3. Run `uv run release/push.py` from the root of the repository. This will:
    * Create a PR with the changes you made in the previous steps.
    * Add a label to the PR to indicate that it's a release PR.
    * Open a draft release on GitHub with the changes you made in the previous steps.
4. Review the PR and merge it.
5. Publish the release and wait for the CI to finish building and publishing the new version.

Sample draft release created: https://github.com/pydantic/logfire/releases/tag/untagged-f0b744b87f685d76bbd2
Sample PR (note, I've changed the base for clarity, but normally it would be against main): #511

Looks like I updated stubs as well 🤷‍♀️

Copy link
Contributor

@hyperlint-ai hyperlint-ai bot left a comment

Choose a reason for hiding this comment

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

1 files reviewed, 1 total issue(s) found.

The style guide flagged several spelling errors that seemed like false positives. We skipped posting inline suggestions for the following words:

  • gh

release/README.md Outdated Show resolved Hide resolved
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (9350571) to head (b3520c8).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #504   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          132       132           
  Lines         9961      9961           
  Branches      1341      1341           
=========================================
  Hits          9961      9961           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com>
Copy link

cloudflare-workers-and-pages bot commented Oct 15, 2024

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: b3520c8
Status: ✅  Deploy successful!
Preview URL: https://674612b8.logfire-docs.pages.dev
Branch Preview URL: https://automate-releases.logfire-docs.pages.dev

View logs

@sydney-runkle sydney-runkle changed the title WIP: Adding release automation logic Add release automation logic Oct 17, 2024
@sydney-runkle sydney-runkle marked this pull request as ready for review October 17, 2024 15:41
Copy link
Contributor

@hyperlint-ai hyperlint-ai bot left a comment

Choose a reason for hiding this comment

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

2 files reviewed, 1 total issue(s) found.

The style guide flagged several spelling errors that seemed like false positives. We skipped posting inline suggestions for the following words:

  • approx_percentile_cont

CHANGELOG.md Outdated Show resolved Hide resolved
@@ -311,45 +311,45 @@ First release from new repo!
* Ensure `logfire.testing` doesn't depend on pydantic and eval_type_backport by @alexmojaki in https://github.com/pydantic/logfire/pull/40
* Allow using pydantic plugin with models defined before calling logfire.configure by @alexmojaki in https://github.com/pydantic/logfire/pull/36

[v1.1.0]: https://github.com/pydantic/logfire/compare/v1.0.1...v1.1.0
Copy link
Member Author

Choose a reason for hiding this comment

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

Reversed the order here so that we can simply append in the future

@alexmojaki alexmojaki merged commit 5aed096 into main Oct 17, 2024
16 checks passed
@alexmojaki alexmojaki deleted the automate-releases branch October 17, 2024 16:29
@alexmojaki
Copy link
Contributor

Thank you! I haven't reviewed the code because I don't think there's really a need, if there's issues we'll discover them.

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.

Automate releasing more
2 participants