dlang / dlang-bot

dlang-bot for automated bugzilla, github, and trello references
https://bot.dlang.io/
MIT License
22 stars 14 forks source link

Tag alpha / beta release as pre-release #202

Open Geod24 opened 5 years ago

Geod24 commented 5 years ago

Currently when a release is made, it's tagged as "Latest release", e.g. https://github.com/dlang/dub/releases/tag/v1.12.0-beta.1

This cause all tools using the latest release to start using the beta immediately.

wilzbach commented 5 years ago

That's not done by dlang-bot per se. See https://github.com/dlang/dub/blob/master/.travis.yml and https://github.com/travis-ci/dpl/issues/234 and https://github.com/dlang/dub/issues/1367#issuecomment-366568829

This cause all tools using the latest release to start using the beta immediately.

No, they query this: https://dlang.github.io/dub/LATEST (from the gh-pages branch)

On the contrary, the LATEST number hasn't been change for a while: https://github.com/dlang/dub/blob/gh-pages/LATEST (the automatic deployment seems to be defect)

Anyway I created a PR to set the prerelease status for the GitHub Releases: https://github.com/dlang/dub/pull/1578 Though this won't help your problem.

Geod24 commented 5 years ago

Okay, not all tools 🙂 But it does affect Buildkite for sure, doesn't it ? That's what triggered this issue.

wilzbach commented 5 years ago

Uhm Buildkite always uses the get latest stable release script:

https://github.com/dlang/ci/blob/master/buildkite/build_project.sh

In short:

git ls-remote --tags https://github.com/dlang/dub | sed -n 's|.*refs/tags/\(v\?[0-9]*\.[0-9]*\.[0-9]*$\)|\1|p' | sort --version-sort | tail -n5
v1.8.0
v1.8.1
v1.9.0
v1.10.0
v1.11.0 <- should be selected
wilzbach commented 5 years ago

image

wilzbach commented 5 years ago

The real failure is:

[INFO] Running /var/lib/buildkite-agent/builds/buildkite-agent-05-1/dlang/dmd/build/dlang-dub/test/interactive-remove.sh...
Package dub not found for registry at https://code.dlang.org/ (fallback ["registry at http://code.dlang.org/", "registry at https://code-mirror.dlang.io/", "registry at https://code-mirror2.dlang.io/", "registry at https://dub-registry.herokuapp.com/"]): No package candidate found for dub 0.9.20
No package dub was found matching the dependency 0.9.20
Fetching dub 0.9.21...
[ERROR] /var/lib/buildkite-agent/builds/buildkite-agent-05-1/dlang/dmd/build/dlang-dub/test/interactive-remove.sh:10 command failed
wilzbach commented 5 years ago

The tag is missing:

image

I don't know who deleted them, but someone did.

image

wilzbach commented 5 years ago

CC @s-ludwig @MartinNowak

wilzbach commented 5 years ago

Okay in the web UI the tags aren't there:

https://github.com/dlang/dub/tags?after=v0.9.22-beta.2

But ls-remote still shows them, e.g.

git ls-remote --tags https://github.com/dlang/dub

Maybe it's a GitHub issue? (I contacted the support)

wilzbach commented 5 years ago

Workaround: https://github.com/dlang/ci/pull/318 and https://github.com/dlang/dub/pull/1579