Comments

introfini created an issue. See original summary.

drumm’s picture

Project: Drupal.org infrastructure » VBO Push Notifications
Version: » 1.x-dev
Component: Packaging » Code
Category: Bug report » Task

For releases to show on the project page, they have to be marked as supported at https://www.drupal.org/node/3125088/edit/releases

introfini’s picture

I tried to changed that option but isn't active. How can I change that?

drumm’s picture

Project: VBO Push Notifications » Drupal.org infrastructure
Version: 1.x-dev »
Component: Code » Packaging
Related issues: +#2681459: Support contrib semver releases

Sorry, I missed that it is 1.x, not 1.0.x.

With semantic versioning, we’ll have tagged releases like 1.0.0 or 1.0.0-beta1, with all three 3 semver components. (Tagged releases won’t be only 1.0 or 1.0-beta1.) What the edit/admin releases page for a project is primarily for is marking tagged release series as supported, like “1.0.* is supported.” 1.0-dev translates to the 1.* series, which will only ever have that one dev release. These supported release series currently goes straight into update status XML, and having both 1.* and 1.0.* as “supported” would be hard for clients to consistently make sense of. So we currently only allow series with a major & minor version to be supported.

A few ways forward:

  • Once any tagged release, like 1.0.0-alpha1, is made, and 1.0.* marked as supported, we should make sure the associated 1.x-dev release is shown. It looks like this isn’t working right now, since https://www.drupal.org/project/semver_example doesn’t have 2.x-dev under 2.0.0.
  • A 1.0.x-dev release would show as you are expecting today.
  • Or, we could do a bit of re-engineering to allow marking 1.* as “supported,” but never advertising that in update status XML.
geek-merlin’s picture

Aah! I ran into this with og_members_tab.

Note that i had the idea to use 1.x branch from the examples on the version control tab.
So that page might benefit from an update.

markhalliwell’s picture

Just adding to the noise to confirm that I ran into this as well with https://www.drupal.org/project/background_image.

Originally just created a 2.x branch and then realized that option to "support" it was disabled and "recommended" was completely missing. Figured, I would try creating a 2.0.x branch and that showed up.

introfini’s picture

As a quick fix, the examples on the version control tab can be updated to recommend creating a 1.0.x branch.

.

heddn’s picture

I've updated the docs. It seems 2.x is not support. You have to list Major.minor.patch (3 numbers separated by a period).

https://www.drupal.org/node/3108648 and https://www.drupal.org/node/1015226#semver-transition are also now updated.

drumm’s picture

heddn - I’m clarifying those edits. 1.x and 2.x branches are definitely supported. The only issue is this one - they can’t appear on the project page. Regardless of that, they still exist as regular installable dev branches.

drumm’s picture

Title: Dev version not listed on project page for download » N.x dev version not able to be listed on project page
tanc’s picture

StatusFileSize
new16.61 KB
new56.11 KB

I've created a 4.0.x branch for my project (responsive_menu) and I'm able to mark that as a dev release. In my case I'm not concerned about it showing on the project page but I do want it to show in the version select widget when writing an issue, but it doesn't. How do I get it to show?

4.0.x shown as a release

select widget shown without 4.0.x

drumm’s picture

The new version is now available for responsive_menu issues. That is an unrelated issue, there is a cache of release versions for issues. I cleared it by saving the 4.0.x release.

tanc’s picture

Thank you for doing that. I had also re-saved the releases form but it hadn't helped.

ccjjmartin’s picture

I am setting up a new module and happened to be aware of this issue so I won't do this but I am seeing that setting up a 1.x branch is recommended:

git checkout -b 1.x
git push origin 1.x

drumm’s picture

Once any tagged release, like 1.0.0-alpha1, is made, and 1.0.* marked as supported, we should make sure the associated 1.x-dev release is shown. It looks like this isn’t working right now, since https://www.drupal.org/project/semver_example doesn’t have 2.x-dev under 2.0.0.

This is now fixed. https://www.drupal.org/project/semver_example lists “Development version: 2.x-dev” under “2.0.0.” If that project were to make a 2.0.x-dev release in the future, it would replace 2.x-dev, the way the 2.1.* set of releases looks like.

Hopefully this helps make it clear that {major}.x-dev releases are supported, if you want to use that branching strategy.

This does not make the {major}.x dev release able to be supported and shown on the project page, unless there is a supported tagged release.

drumm’s picture

Title: N.x dev version not able to be listed on project page » Suggest 1.0.x as the first branch to create instead of 1.x
Project: Drupal.org infrastructure » Project Git instructions
Version: » 7.x-1.x-dev
Component: Packaging » Instructions
Assigned: Unassigned » drumm

The remaining suggestion here is to update the Version control tab on project pages, which is certainly doable.

The original idea here was that project maintainers could use the {major}.x branches more-like the master convention that a lot of projects on GitHub/etc use. They always commit to master, and make a mostly-straight line of releases, incrementing version number components as-needed. For Drupal.org projects, {major}.x isn’t quite there; it does let you manage fewer branches if you intend your releases to move in a straight line, only going back to create a {major}.{minor}.x when you want to backport a non-breaking change.

  • drumm committed 32331e8 on 7.x-1.x
    Issue #3125239 by introfini, drumm, geek-merlin, markcarver, ccjjmartin...
drumm’s picture

Status: Active » Fixed

That is now done.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.