Developing
This section contains documentation for maintainers of Pulsar.
Branches and Versions
Each Galaxy release pins a pulsar-galaxy-lib minor series (see
Galaxy Compatibility). Pulsar keeps a release branch per minor series, named
like Galaxy’s:
mastercarries the next minor series as a.dev0version (e.g.0.16.0.dev0). Features and behavior changes land here only.release_0.Ncarries the0.N.xpoint releases for the Galaxy releases that pin that series.
Open a bug fix against the oldest supported release branch it applies to. After
it merges, merge that branch forward through the newer release branches and
into master.
Packages
One tag publishes two packages built from the same tree: pulsar-app (the
server) and pulsar-galaxy-lib (the client half Galaxy depends on, built with
PULSAR_GALAXY_LIB=1). Pushing a version tag to galaxyproject/pulsar
triggers .github/workflows/deploy.yaml, which builds both with
make dist-all and uploads them to PyPI using trusted publishing. Nothing
else is needed to publish. Tags pushed to a fork do not publish.
PyPI’s trusted publisher is bound to deploy.yaml; renaming or moving that
workflow requires updating the publisher on PyPI for both projects.
Preparing a Release
Releases are cut from the branch that owns the series: master for a new
minor series, release_0.N for a point release.
HISTORY.rst needs an entry for every PR merged since the previous tag
(dependabot bumps excepted). make add-history ITEM=pr526 adds one from the
PR title, crediting outside contributors. Edit the result into a user-facing
description, call out behavior changes with Note:, and credit the original
authors of rescued PRs.
make release-check reports whether the current branch is ready:
on
masteror therelease_0.Nmatching the version, which is a.dev0version, with a clean tree in sync withgalaxyproject/pulsar;the top
HISTORY.rstsection matches the version, every PR merged since the previous tag is listed, and every reference has a link target;the tag does not exist yet, and CI passed on the commit (requires
gh; without it this is a warning).
ALLOW_MISSING_HISTORY=1 or SKIP_CI=1 turn those failures into warnings
for make release-check and make release.
Cutting a Release
make releaseruns the checks, then commitsCreate pulsar release X.Y.Z(dates theHISTORY.rstheader, drops.dev0), tags it, and commitsStart work on X.Y.Z+1with a new.dev0section. Onmaster, passNEXT=0.16.0to start a different version.make push-releaseshows the push and asks for confirmation, then pushes the branch and tag togalaxyproject/pulsarin one atomic push.Watch the
Deployworkflow run for the tag, then confirm bothpulsar-appandpulsar-galaxy-libshow the new version on PyPI.Create the GitHub release (
push-releaseprints thegh release createcommand).
Nothing is pushed until step 2. To abandon a release before then, delete the tag and reset the two commits.
Cutting a Release Branch
When Galaxy branches a new release, cut the last release of the current series
from master and start the next minor there:
make release NEXT=0.16.0
make release-branch
make push-release
make release-branch creates release_0.15 from the 0.15.16 tag and
commits Start work on 0.15.17 on it. make push-release then pushes
master, release_0.15 and the tag together.
After a point release on a release branch, merge the branch into master.
In HISTORY.rst, keep master’s .dev0 section on top and the point
release’s section below it.
After a Release
Bump
pulsar-galaxy-libinlib/galaxy/dependencies/pinned-requirements.txton each Galaxy branch that should pick up the release.Update
docs/compatibility.yml(and regenerate withmake compatibility-docs) when a series is added, a Galaxy pin changes, or a release fixes or introduces a known break..agents/commands/update_compat_matrix.mddescribes the survey.