Hi Ricardo, Laurent,

On Tue, 03 Feb 2026 at 13:25, Ricardo Wurmus <[email protected]> wrote:

>> All in all, from my understanding, one main “blocker” for 
>> switching
>> appears to me;
>>
>>         the repositories at 
>>         https://git.bioconductor.org/package/NAME do not
>>         tag package versions.  The only method of organization 
>>         is branches
>>         that are named after *Bioconductor releases* (not 
>>         package releases),
>>         e.g. RELEASE_3_15.  We can only determine the package 
>>         version by
>>         reading its DESCRIPTION file or by looking up the 
>>         version index for
>>         all Bioconductor packages (we do that already).  This 
>>         means that there
>>         could be different commits for the same package version 
>>         in the same
>>         release branch — so we have to include the commit hash 
>>         and a revision
>>         counter in the version string.
>
> Yes, this is the main obstacle.
>
> We will need a new way to refer to versions.  This must incorporate
> the Bioconductor release (as an epoch-like prefix or as a suffix or
> just as a property?), the package version, a revision identifier, and
> a commit stub.  Are we okay with this?  It would be ugly and
> inconvenient to include the Bioconductor release in the version
> string.  It's also a bit ugly to include a revision and a bit of the
> commit when in most cases we just have a pretty release version.
>
> The updater will need to update revision numbers when the version
> according to DESCRIPTION has not changed, but a new commit is used.
>
> Does the top commit in a Bioconductor release branch *always*
> correspond to a package release, or can there be experimentation or
> development on these branches?
>
> I no longer remember why we haven't switched to using this WIP commit.
> It looks like it's only a cosmetic problem.

I don’t remember neither. :-)

Roughly, each package included in Bioconductor have the branches:

  + devel: where package developer pushes the development
  + RELEASE_N_M: where package developer pushed their fixes

The package version (Version field in file DESCRIPTION) on the ’devel’
branch is always odd – by convention.  Somehow it reads x.y.z where y is
odd; the value of x and z is let free to the package developer.

When Bioconductor releases, without any action from the package
developer, the Bioconductor release team creates the branch RELEASE_N_M
and bumps all the y value to the next even inside this branch.  The
package version version becomes x.y.0 where y is even – by convention.

Then, the package developer might fix important issue using one or more
commits and then the package developer manual bumps the package version.
By convention, the values x and y are untouched and only the last value
is increased by one; it reads x.y.1 then x.y.2 etc.

For the RELEASE_N_M branch, these bumps (Version field in file
DESCRIPTION) trigger the building of the tarballs and update the
metadata we use.

All that to say, it leads to:

   1. We could use the last commit of the RELEASE_N_M branch for each
      package; when we refresh.

   2. As pointed earlier, it’s hard to extract all these values.
      However, as shown below, some information about the commit seems
      available.  And this information could be used by the importer.

      Well, that’s what I would like to explore. :-)

WDYT?

Cheers,
simon

--8<---------------cut here---------------start------------->8---
library("BiocBuildReporter")
library("tidyverse")
x <- BiocBuildReporter::get_bbs_table("info")

x |>
    filter(Package == "MSnbase") |>
    select(-Maintainer, - MaintainerEmail)|>
    arrange(Version) |>
    mutate(new_version = !(duplicated(Version))) |>
    filter(new_version)
#  # A tibble: 28 × 8
#    Package Version git_url                                       git_branch   
git_last_commit git_last_commit_date report_md5                       
new_version
#    <chr>   <chr>   <chr>                                         <chr>        
<chr>           <dttm>               <chr>                            <lgl>     
 
#  1 MSnbase 2.18.0  https://git.bioconductor.org/packages/MSnbase RELEASE_3_13 
8653c08         2021-05-19 15:47:43  f6f4a3a3ac68f1dd21ab45f79473ed7a TRUE      
 
#  2 MSnbase 2.20.4  https://git.bioconductor.org/packages/MSnbase RELEASE_3_14 
c86ac8b         2022-01-13 16:09:21  b0e50af261966e090388524f021bb139 TRUE      
 
#  3 MSnbase 2.22.0  https://git.bioconductor.org/packages/MSnbase RELEASE_3_15 
4f6e576         2022-04-26 15:07:12  2cc2a659a35d607f71655f3c9c9e4283 TRUE      
 
#  4 MSnbase 2.24.2  https://git.bioconductor.org/packages/MSnbase RELEASE_3_16 
b934748         2022-12-21 13:01:29  b0dc7d18988e0d06786b443c18bd14e3 TRUE      
 
#  5 MSnbase 2.26.0  https://git.bioconductor.org/packages/MSnbase RELEASE_3_17 
3e6268a         2023-04-25 14:19:06  7417c4f35bea65fc804a711bd523cbb5 TRUE      
 
#  6 MSnbase 2.28.1  https://git.bioconductor.org/packages/MSnbase RELEASE_3_18 
6329ed35        2023-11-06 05:58:23  088a6f2b862472b82203ffba88d5683b TRUE      
 
#  7 MSnbase 2.29.3  https://git.bioconductor.org/packages/MSnbase devel        
efd48e3         2024-01-25 17:05:57  07873c8bec71a3e3aceff59a38d5a4fc TRUE      
 
#  8 MSnbase 2.29.4  https://git.bioconductor.org/packages/MSnbase devel        
6284cc6         2024-03-14 05:19:37  03b023c0145ee661ebb19147c512f098 TRUE      
 
#  9 MSnbase 2.30.1  https://git.bioconductor.org/packages/MSnbase RELEASE_3_19 
0264c23         2024-04-30 17:17:18  e8041b1bd746d1919d694caf65774861 TRUE      
 
# 10 MSnbase 2.32.0  https://git.bioconductor.org/packages/MSnbase RELEASE_3_20 
5c32fb1         2024-10-29 13:36:14  0576d77e21acaecf086166a2fc89c993 TRUE      
 
# # ℹ 18 more rows
# # ℹ Use `print(n = ...)` to see more rows
--8<---------------cut here---------------end--------------->8---



Reply via email to