Configure bumpver for Concourse release pipeline#2996
Configure bumpver for Concourse release pipeline#2996blarghmatey wants to merge 2 commits intomasterfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the versioning scheme in main/settings.py to a date-based format and introduces bumpver configuration in pyproject.toml for automated version management. A review comment suggests including pyproject.toml in the bumpver file patterns to ensure the project's metadata version stays in sync with the application version.
|
@blarghmatey This still needs to remove the problematic test. Secondly, why can't we do a |
|
The reason for not running a uv lock is that it can inadvertantly change the locked values of other dependencies. The version of the project in the lockfile is immaterial since it never actually gets built and "installed" at all, so modifying the version in the lockfile directly is actually the cleanest option with the lowest overhead and lowest potential for unintended consequences. |
c050047 to
814c431
Compare
- Add bump-my-version configuration to pyproject.toml with CalVer format - Track version in pyproject.toml [project] section - Track version in uv.lock - Replace test_semantic_version with test_bump_my_version_format Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0dc5db2 to
d5e2831
Compare
for more information, see https://pre-commit.ci
zawan-ila
left a comment
There was a problem hiding this comment.
@blarghmatey There are a couple unrelated changes here that we should undo:-
- We should not remove the
externalkey from the tool.ruff.lint table in pyproject.toml. That is required to prevent ruff from removing the ORM001 and ORM002 noqas. By default, ruff complains about codes it does not understand. Please also restore the noqas inwebsites/serializers.py - In pyproject.toml, we downgrade a number of completely unrelated dependencies. Please restore the current versions from master.
Feel free to merge after addressing the above comments.
What are the relevant tickets?
N/A
Description (What does it do?)
Adds
[tool.bumpver]configuration topyproject.tomlso the Concourserelease pipeline can update the application version automatically on each
release.
The new version format is
YYYY.MM.DD.N(e.g.,2026.04.16.1), whichreplaces the previous semver-style version strings. This is required by the
Concourse
releaseresource workflow being rolled out inmitodl/ol-infrastructure#4506.
The
VERSIONconstant in Django settings is updated to the initial releaseformat version as part of this change.
How can this be tested?
bumpverinstalled (pip install bumpver), runbumpver update --dryfrom the repo root and confirm it shows the expected diff with no errors.VERSIONin Django settings matchescurrent_versioninpyproject.toml.Additional Context
Part of the Concourse release pipeline modernization — migrating from the Doof
Slack bot to a Concourse-native release workflow using GitHub Issues as
production gates.