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

chore(releasing): automate release preperation steps (part 1) #22485

Merged
merged 7 commits into from
Feb 20, 2025

Conversation

pront
Copy link
Member

@pront pront commented Feb 20, 2025

Summary

Full revamp of prepare.rs to match our current release process.
Example: #22445

This PR automates the following steps:

Create a new release branch from master to freeze commits
git fetch && git checkout origin/master && git checkout -b v0.<new version number> && git push -u

Create a new release preparation branch from master
git checkout -b website-prepare-v0.<new version number> && git push -u

Pin VRL to latest released version rather than main

To facilitate PR reviews, so I am going to automate more steps later.

Change Type

  • Bug fix
  • New feature
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

How did you test this PR?

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the "no-changelog" label to this PR.

Checklist

  • Please read our Vector contributor resources.
    • make check-all is a good command to run locally. This check is
      defined here. Some of these
      checks might not be relevant to your PR. For Rust changes, at the very least you should run:
      • cargo fmt --all
      • cargo clippy --workspace --all-targets -- -D warnings
      • cargo nextest run --workspace (alternatively, you can run cargo test --all)
  • If this PR introduces changes Vector dependencies (modifies Cargo.lock), please
    run dd-rust-license-tool write to regenerate the license inventory and commit the changes (if any). More details here.

References

@pront pront requested review from bfung and jszwedko February 20, 2025 19:59
@pront pront requested a review from a team as a code owner February 20, 2025 19:59
@github-actions github-actions bot added the domain: vdev Anything related to the vdev tooling label Feb 20, 2025
@pront pront added the no-changelog Changes in this PR do not need user-facing explanations in the release changelog label Feb 20, 2025
// Step 1: Create a new release branch
git::run_and_check_output(&["fetch"])?;
git::checkout_main_branch()?;
let release_branch = format!("v0.{new_version}");
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: the patch needs to be trimmed

@datadog-vectordotdev
Copy link

datadog-vectordotdev bot commented Feb 20, 2025

Datadog Report

Branch report: pront/release-prep-automation-v1
Commit report: 5b6b170
Test service: vector

✅ 0 Failed, 7 Passed, 0 Skipped, 25.52s Total Time

@pront pront enabled auto-merge February 20, 2025 21:22
@pront pront added this pull request to the merge queue Feb 20, 2025
Merged via the queue into master with commit 92f09ee Feb 20, 2025
43 checks passed
@pront pront deleted the pront/release-prep-automation-v1 branch February 20, 2025 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: vdev Anything related to the vdev tooling no-changelog Changes in this PR do not need user-facing explanations in the release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants