question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Developmental releases

See original GitHub issue

Description

We’re running into issues using commitizen for version-bumping where, if people are working on the same repository simultaneously on different branches, our CI process will bump them to the same version, leading to a collision when tagging.

Previously, we’ve used a CI-specific suffix to get around this and, as per PEP 440, “Developmental releases” “may be useful for continuous integration purposes…”.

The docs currently state: “post and dev releases are not supported yet” so this may be a useful feature for anyone with a similar workflow…?

Possible Solution

I’ve made an initial attempt at this over here.

Here, --devrelease has been added as a flag that takes an explicit “non-negative integer value” and simply uses that as part of the .devN component of the version, e.g. passing --devrelease 1234 results in a developmental release segment of .dev1234.

It does not attempt to infer the version based on the current version: doing so would run counter to the continuous-integration use-case and potentially result in a collision as per the Description.

Additional context

No response

Additional context

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
woilecommented, Sep 12, 2022

Nice! I think that could work, PR’s welcome. Maybe add a tutorial explaining how to do devreleases, it would be great.

Thanks!

1reaction
PsypherPunkcommented, Sep 12, 2022

Thanks, @Lee-W.

We tend to follow the same workflow: the above only really arises when we have more than one active branch. If we’re actively pushing to those branches, because each is relative to main and unaware of the other, they end up vying for version numbers.

When one gets merged, as you say, any remaining branches can be rebased and it’s less of a problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Software release life cycle - Wikipedia
A software release life cycle is the sum of the stages of development and maturity for a piece of computer software ranging from...
Read more >
Development Cycle - Python Developer's Guide
new minor versions are feature releases; they get released annually, from the current in-development branch;. new micro versions are bugfix releases; ...
Read more >
Developmental milestones just changed for the first time in years
The developmental markers had not changed since they were first released in 2004. By adjusting the ages to account for societal changes such ......
Read more >
What is a software release? - TechTarget
In agile software development, a release is a deployable software package culminating in several iterations and can be made before the end of...
Read more >
Developmental milestones for children have changed ... - CNN
Infants and toddlers should be screened more for developmental delays, according to updated US guidelines released last week.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found