Release workflow: tags v0.10.0–v0.11.2 point to main, not to the commit that the release was built from
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 76/100
Direção de pesquisa
Leia .github/workflows/release.yml por volta da linha 70, onde o workflow executa gh release create. Verifique como o workflow identifica o commit usado para compilar os artefatos da release e, em seguida, garanta que a tag da release aponte para esse commit. A tarefa estará concluída quando o comando criar releases no commit compilado e a tag resultante corresponder ao SCM-Revision dos arquivos JAR; mover as tags existentes é uma decisão dos mantenedores.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Description
The release tags v0.10.0, v0.11.0, v0.11.1 and v0.11.2 do not point to the source of the released artifacts. Each tag points to the main commit at the time of the release, but the Release workflow ran on a release branch and built the jars from that branch. The SCM-Revision in the manifest of each published jar names the release-branch commit:
| Release | Tag points to | SCM-Revision of the client-v2 jar on Maven Central |
|---|---|---|
| v0.11.2 | a00a479b8 (main) |
c3b63dafc (branch v0.11.0) |
| v0.11.1 | dd7b8765b (main) |
3a7dff39d (branch v0.11.0) |
| v0.11.0 | 7f2cb5787 (main) |
c1834d085 (branch v0.11.0) |
| v0.10.0 | 6b9cb69f3 (main) |
57aacb139 (branch v0.10.0) |
| v0.9.9 (contrast) | 2ac7e110f |
2ac7e110f |
Effects:
git checkout v0.11.2and the "Source code" archives of the GitHub release givemainsource (VERSIONis0.12.0-rc1). It differs from the released 0.11.2 source in 170 files.git tag --contains <commit>gives wrong answers in both directions: a change that is only onmainshows as released, and a fix that is only on the release branch is in no tag.
Steps to reproduce
- In a clone of this repository:
git fetch origin --tags. - Download the released jar:
curl -sLO https://repo1.maven.org/maven2/com/clickhouse/client-v2/0.11.2/client-v2-0.11.2.jar. - Run the commands of the log below.
Error Log or Exception StackTrace
$ git rev-parse --short=10 'v0.11.2^{commit}'
a00a479b8b
$ git show v0.11.2:VERSION
0.12.0-rc1
$ unzip -p client-v2-0.11.2.jar META-INF/MANIFEST.MF | grep SCM-Revision
SCM-Revision: c3b63dafc2a81c233ff6899109b97911ec9b98ab
$ git show c3b63dafc2a8:VERSION
0.11.2
$ git tag --contains 69c9b36c7 # merge of #3266 (Client.setNetworkTimeout), not in the 0.11.1 or 0.11.2 jars
v0.11.1
v0.11.2
$ git tag --contains cd6b74cc6 # "Fixed transaction compatibility of V1 ...", in the 0.11.1 and 0.11.2 jars
$ gh api repos/ClickHouse/clickhouse-java/releases/tags/v0.11.2 --jq .target_commitish
main
Expected Behaviour
Each tag vX.Y.Z points to the commit that the Release workflow built for X.Y.Z (the SCM-Revision of its jars), as v0.9.9 does.
Root cause: .github/workflows/release.yml:70 (the same line is on the release branches) runs gh release create "v${version}" with no --target. When the tag does not exist, gh creates it "from the latest state of the default branch" (gh release create --help), not at the commit that the workflow checked out.
The fix is one option on that call. To move the four existing tags, or not, is a maintainer decision.
Polyglot AI can open a fix PR if a maintainer assigns this issue to @polyglotAI-bot.
Code Example
// No Java code: the commands are in the log above.
Configuration
Client Configuration
// Not applicable (release process).
Environment
- Cloud
- Client version: releases 0.10.0, 0.11.0, 0.11.1, 0.11.2 (checked at
main8480ca001) - Language version: not applicable
- OS: not applicable
ClickHouse Server
- ClickHouse Server version: not applicable (no server is involved)
- ClickHouse Server non-default settings, if any: none
CREATE TABLEstatements for tables involved: none- Sample data for all these tables: none
Classification: impact: none · area: Docs & project (release process)
Found by automated analysis (Polyglot AI) while working on #3241. Verified against the published artifacts on Maven Central.
- Linguagem predominante
- Java
- Estrelas
- 1.6k
- Forks
- 657
- Merge médio
- 2d 6h
- PRs com merge (30d)
- 36
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de ClickHouse/clickhouse-java
-
api-diagnostics bug jdbc
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
ClickHouse/clickhouse-java#3464 ·
Mantenedores costumam responder em até 1 dia
-
bug jdbc performance queries sql-parser
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
ClickHouse/clickhouse-java#3451 ·
Mantenedores costumam responder em até 1 dia
-
bug jdbc legacy queries
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
ClickHouse/clickhouse-java#3444 ·
Mantenedores costumam responder em até 1 dia
-
api-diagnostics bug client jdbc
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
ClickHouse/clickhouse-java#3439 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug client jdbc legacy queries
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
ClickHouse/clickhouse-java#3438 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de ClickHouse/clickhouse-java
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 60/100
quelea-projection/Quelea#749 ·
Mantenedores costumam responder em até 1 dia
-
free_port can hand one port to two callers, so the fixed-port http tests fail in parallel runsAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 92/100
erkamyaman/rust-anything#963 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 Meio dia Facilidade para iniciantes 76/100
-
Deferred
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Sanne/incus-spawn#2768 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
morluto/rea#15041 · 1 comentário ·
Mantenedores costumam responder em até 1 dia