Skip to content

[ALNR-6808] Add standalone lbox-alignerr PyPI publish workflow - #2073

Merged
pawelkozik-labelbox merged 3 commits into
developfrom
pawelkozik/alnr-6808-alignerr-publish
Aug 3, 2026
Merged

[ALNR-6808] Add standalone lbox-alignerr PyPI publish workflow#2073
pawelkozik-labelbox merged 3 commits into
developfrom
pawelkozik/alnr-6808-alignerr-publish

Conversation

@pawelkozik-labelbox

@pawelkozik-labelbox pawelkozik-labelbox commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

https://labelbox.atlassian.net/browse/ALNR-6808

Context

  • lbox-alignerr 0.3.0 is on develop, but prod PyPI still only has 0.1.0
  • Publishing via the reusable lbox-publish.yml path fails PyPI Trusted Publishing (OIDC cannot use reusable workflows)
  • Core SDK Publish intentionally disabled build-lbox for that reason

In scope

  • Add a standalone LBox Alignerr Publish workflow (workflow_dispatch) that builds and publishes only lbox-alignerr
  • Require immutable tags shaped lbox-alignerr-vX.Y.Z and verify they match pyproject.toml
  • Run format/lint/unit/staging integration on Python 3.9–3.13 before publish
  • Publish with environment publish-lbox-alignerr (trusted publisher)

Out of scope

  • Changing main labelbox SDK Publish
  • Re-enabling reusable build-lbox
  • Creating the release tag / running the first publish (post-merge; see PR notes)

Post-merge release steps (0.3.0)

  1. On PyPI project lbox-alignerr, add Trusted Publisher:
    • Owner: Labelbox
    • Repo: labelbox-python
    • Workflow: lbox-alignerr-publish.yml
    • Environment: publish-lbox-alignerr
  2. Ensure GitHub Environment publish-lbox-alignerr exists (protection rules as needed)
  3. Tag and push:
    git tag lbox-alignerr-v0.3.0 33e301dd
    git push origin lbox-alignerr-v0.3.0
  4. Dispatch:
    gh workflow run "LBox Alignerr Publish" -f tag=lbox-alignerr-v0.3.0
  5. Verify: https://pypi.org/project/lbox-alignerr/ shows 0.3.0

Note

Low Risk
CI-only addition with gated publish; no runtime SDK changes, though misconfigured PyPI trusted publisher or environment could block or mis-target releases.

Overview
Adds a manual GitHub Actions workflow (lbox-alignerr-publish.yml) so lbox-alignerr can ship to PyPI without the reusable publish path that breaks Trusted Publishing (OIDC).

Operators dispatch with a release tag (lbox-alignerr-vX.Y.Z). A validate-tag job rejects bad tag shapes and requires the semver in the tag to match libs/lbox-alignerr/pyproject.toml. test runs format, lint, unit, and staging integration across Python 3.9–3.13 (staging concurrency group aligned with other LBox workflows). build produces artifacts from the tagged ref; pypi-publish uploads via pypa/gh-action-pypi-publish using the publish-lbox-alignerr environment and id-token: write.

Reviewed by Cursor Bugbot for commit 0b43c02. Bugbot is set up for automated code reviews on this repo. Configure here.

Top-level workflow_dispatch avoids PyPI trusted-publisher limits on
reusable workflows so lbox-alignerr can ship independently of labelbox.
Comment thread .github/workflows/lbox-alignerr-publish.yml Outdated
Comment thread .github/workflows/lbox-alignerr-publish.yml
rye build writes to repo-root dist/; upload from that path like
other publish workflows.
Use the same lbox-staging-* group as develop/publish so overlapping
integration tests do not contend on the shared staging org.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0b43c02. Configure here.

Comment thread .github/workflows/lbox-alignerr-publish.yml
@pawelkozik-labelbox
pawelkozik-labelbox merged commit 6d75412 into develop Aug 3, 2026
12 checks passed
@pawelkozik-labelbox
pawelkozik-labelbox deleted the pawelkozik/alnr-6808-alignerr-publish branch August 3, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants