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

feat: enforce version is greater than release version on PRs to main #4351

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

kylezs
Copy link
Contributor

@kylezs kylezs commented Dec 14, 2023

Pull Request

Part of: PRO-973

Checklist

Please conduct a thorough self-review before opening the PR.

  • I am confident that the code works.
  • I have updated documentation where appropriate.

Summary

In order for the automated upgrade testing to work, we need to ensure that the versions are updated correctly, so that the correct type of upgrade (CFEs required to run side by side) or it's just a runtime upgrade, can be run.

Enforcing that the version is bumped does two things:

  • Allows us to properly automate upgrade testing in CI
  • Puts the decision of "how much to bump by" on the developer, this means the developer will have to think about whether their change is compatible with the CFE or not - which should mean when it comes to release, the thinking is already done, and the change itself had the upgrade process considerations in mind.

NOTE: This does NOT mean that every PR needs to bump the version. The PR simply has to have versions greater than the version currently released. Thus, if an earlier PR has already bumped the release version to be greater than the current release version, then this check will pass.

Copy link

codecov bot commented Dec 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f28c005) 71% compared to head (d1a2b8a) 71%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #4351   +/-   ##
=====================================
- Coverage     71%     71%   -0%     
=====================================
  Files        393     393           
  Lines      66667   66667           
  Branches   66667   66667           
=====================================
- Hits       47496   47493    -3     
+ Misses     16743   16742    -1     
- Partials    2428    2432    +4     

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

@kylezs kylezs changed the title feat: enforce version bump on PRs to main feat: enforce version is greater than release version on PRs to main Dec 14, 2023
@kylezs kylezs requested a review from ahasna December 14, 2023 14:45
@kylezs kylezs merged commit 4318931 into main Dec 15, 2023
43 checks passed
@kylezs kylezs deleted the feat/force-version-bump branch December 15, 2023 09:32
syan095 added a commit that referenced this pull request Dec 18, 2023
…-timeout

* origin/main:
  feat: end to end network upgrade github action (#4274)
  feat: spec_version of PR is greater than spec version of current release (#4355)
  feat: enforce version is greater than release version on PRs to main (#4351)
  fix: btc witnesser test failing sometimes (#4353)
  fix: connections can become stale when reconnecting (#4310)
  chore: add `chainflip-rpc-node` systemd file 🚀 (#4352)
  feat: API Bins check SC compatibility (#4342)
  chore: update runtime spec checks ⛓️ (#4349)
  feat: Add version cmd to all bins (#4343)
  fix: changelog check 🤫 (#4348)
  chore: update docker tags 🐳 (#4347)
  chore: add runtime version check 👀 (#4344)
  feat: shave fees on ingress (#4335)
  pick/persa fixes (#4329)
  feat: track btc fees on success (#4334)
  ensure we dont create BTC transaction outputs below the bitcoin dust limit (#4340)
  fix: sweeping before withdrawal (#4337)
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