Skip to content

bug 2055645: support direct git tags in landoscript#1491

Open
bhearsum wants to merge 1 commit into
mozilla-releng:masterfrom
bhearsum:bug-2055645-support-direct-git
Open

bug 2055645: support direct git tags in landoscript#1491
bhearsum wants to merge 1 commit into
mozilla-releng:masterfrom
bhearsum:bug-2055645-support-direct-git

Conversation

@bhearsum

Copy link
Copy Markdown
Contributor

Landoscript supports requesting tags to be added to repositories. The underlying tag action supports hg and git repositories, but git support is only wired in when used by the merge day action). The toplevel tag action support hardcodes hg.

In the immediate term, this means we can't make early-tagging and version-bump tasks work on Try (because there's no hg-to-git mapping we can look up there). In the medium term, this will be needed when we start firing release promotion from git events, and won't have an hg revision to feed to these tasks.

I'm not super happy with controlling hg vs. git based on the presence of hg_repo_url...but seeing as hg support as a finite lifespan, it's probably fine.

Landoscript supports requesting tags to be added to repositories. The [underlying tag action](https://github.com/mozilla-releng/scriptworker-scripts/blob/1cb7c72fcc9e5523c9c917fc8fa3a0ca620d4b2d/landoscript/src/landoscript/actions/tag.py) supports hg and git repositories, but git support is [only wired in when used by the merge day action](https://github.com/mozilla-releng/scriptworker-scripts/blob/1cb7c72fcc9e5523c9c917fc8fa3a0ca620d4b2d/landoscript/src/landoscript/actions/merge_day.py#L100)). The toplevel tag action support [hardcodes hg](https://github.com/mozilla-releng/scriptworker-scripts/blob/1cb7c72fcc9e5523c9c917fc8fa3a0ca620d4b2d/landoscript/src/landoscript/script.py#L93).

In the immediate term, this means we can't make early-tagging and version-bump tasks work on Try (because there's no hg-to-git mapping we can look up there). In the medium term, this will be needed when we start firing release promotion from git events, and won't have an hg revision to feed to these tasks.

I'm not _super_ happy with controlling hg vs. git based on the presence of hg_repo_url...but seeing as hg support as a finite lifespan, it's probably fine.
@bhearsum

Copy link
Copy Markdown
Contributor Author

This was tested on Try for both version bump and early tagging tasks, which added the appropriate tags on this commit.

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.

1 participant