No Branch/Tag Specified
forgejo-ci
forgejo-branding
forgejo
forgejo-f3
forgejo-i18n
forgejo-privacy
forgejo-dependency
forgejo-development
v1.19/forgejo
main
release/v1.19
soft-fork/2023-05-23/forgejo-branding
soft-fork/2023-05-23/forgejo
soft-fork/2023-05-23/forgejo-development
soft-fork/2023-05-23/forgejo-i18n
soft-fork/2023-05-23/forgejo-privacy
soft-fork/2023-05-23/forgejo-f3
soft-fork/2023-05-23/forgejo-ci
soft-fork/2023-05-23/v1.19/forgejo
soft-fork/2023-05-23/main
soft-fork/2023-05-23/release/v1.19
soft-fork/2023-05-23/forgejo-dependency
rebase-v1.19/forgejo-dependency
rebase-forgejo-dependency
forgejo-federation
release/v1.18
soft-fork/2023-05-23/release/v1.18
kaki87-patch-2
libreplanet-federation-demo
forgejo-federation-old
kaki87-patch-1
soft-fork/2023-05-23/v1.18/forgejo
v1.18/forgejo
rebase-forgejo-a11y
forgejo-a11y
soft-fork/2023-05-23/forgejo-a11y
doc-release-process
release/v1.17
v1.17/forgejo
release/v1.16
release/v1.15
release/v1.14
release/v1.13
release/v1.12
release/v1.11
release/v1.10
release/v1.9
release/v1.8
v1.20.0-dev
v1.19.0-dev
v1.17.3
v1.17.2
v1.17.1
v1.17.0
v1.17.0-rc2
v1.16.9
v1.17.0-rc1
v1.18.0-dev
v1.16.8
v1.16.7
v1.16.6
v1.16.5
v1.16.4
v1.16.3
v1.16.2
v1.16.1
v1.16.0
v1.15.11
v1.17.0-dev
v1.16.0-rc1
v1.15.10
v1.15.9
v1.15.8
v1.15.7
v1.15.6
v1.15.5
v1.15.4
v1.15.3
v1.15.2
v1.15.1
v1.14.7
v1.15.0
v1.15.0-rc3
v1.14.6
v1.15.0-rc2
v1.14.5
v1.16.0-dev
v1.15.0-rc1
v1.14.4
v1.14.3
v1.14.2
v1.14.1
v1.14.0
v1.13.7
v1.14.0-rc2
v1.13.6
v1.13.5
v1.14.0-rc1
v1.15.0-dev
v1.13.4
v1.13.3
v1.13.2
v1.13.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3
v1.19.1-0
v1.19.2-0
v1.19.3-0
v1.2.0-rc3
v1.4.2
v1.9.1
Labels
Clear labels
Scheduled for backport
Something is not working
https://github.com/alecthomas/chroma/
https://github.com/go-chi/chi/
https://f3.forgefriends.org/
https://github.com/go-gitea/gitea
https://github.com/markbates/goth/
https://helm.sh/
https://github.com/mermaid-js/mermaid/
https://github.com/minio/minio-go/
https://pdfobject.com/
https://code.forgejo.org/forgejo/runner
https://woodpecker-ci.org/
https://gitea.com/xorm/xorm
This issue or pull request already exists
New feature
Accessibility
Actions
Branding (logo, name, tagline etc.)
Woodpecker CI configuration
Documentation is now at https://codeberg.org/forgejo/website/src/branch/main/src/pages/docs
Federation
Internationalization (i18n) and Localization (l10n)
Privacy first
Rebasing Forgejo on top of Gitea
Release management
Performance and scaling
Security (please disclose responsibly)
User interface
The issue was resolved in the repository of the dependency
An issue should be created in the respository of the dependency
An open issue exists in the upstream repository of the dependency
Specific to the FreeBSD Operating System
Specific to the GNU/Linux Operating System
Specific to the MacOS Operating System
Specific to the Windows Operating System
Apply labels
backport/v1.19
Scheduled for backport
bug
Something is not working
depdendency
Chroma
https://github.com/alecthomas/chroma/
dependency
Chi
https://github.com/go-chi/chi/
dependency
F3
https://f3.forgefriends.org/
dependency
Gitea
https://github.com/go-gitea/gitea
dependency
Goth
https://github.com/markbates/goth/
dependency
Helm
https://helm.sh/
dependency
Mermaid
https://github.com/mermaid-js/mermaid/
dependency
minio-go
https://github.com/minio/minio-go/
dependency
PDFobject
https://pdfobject.com/
dependency
Runner
https://code.forgejo.org/forgejo/runner
dependency
Woodpecker CI
https://woodpecker-ci.org/
dependency
XORM
https://gitea.com/xorm/xorm
Discussion
duplicate
This issue or pull request already exists
enhancement/feature
New feature
forgejo/accessibility
Accessibility
forgejo/actions
Actions
forgejo/branding
Branding (logo, name, tagline etc.)
forgejo/ci
Woodpecker CI configuration
forgejo/documentation
Documentation is now at https://codeberg.org/forgejo/website/src/branch/main/src/pages/docs
forgejo/federation
Federation
forgejo/internationalization
Internationalization (i18n) and Localization (l10n)
forgejo/privacy
Privacy first
forgejo/rebase
Rebasing Forgejo on top of Gitea
forgejo/release
Release management
forgejo/scaling
Performance and scaling
forgejo/security
Security (please disclose responsibly)
forgejo/ui
User interface
issue
closed
The issue was resolved in the repository of the dependency
issue
do-not-exist-yet
An issue should be created in the respository of the dependency
issue
open
An open issue exists in the upstream repository of the dependency
OS
FreeBSD
Specific to the FreeBSD Operating System
OS
Gnu&Linux
Specific to the GNU/Linux Operating System
OS
MacOS
Specific to the MacOS Operating System
OS
Windows
Specific to the Windows Operating System
No Label
backport/v1.19
bug
depdendency
Chroma
dependency
Chi
dependency
F3
dependency
Gitea
dependency
Goth
dependency
Helm
dependency
Mermaid
dependency
minio-go
dependency
PDFobject
dependency
Runner
dependency
Woodpecker CI
dependency
XORM
Discussion
duplicate
enhancement/feature
forgejo/accessibility
forgejo/actions
forgejo/branding
forgejo/ci
forgejo/documentation
forgejo/federation
forgejo/internationalization
forgejo/privacy
forgejo/rebase
forgejo/release
forgejo/scaling
forgejo/security
forgejo/ui
issue
closed
issue
do-not-exist-yet
issue
open
OS
FreeBSD
OS
Gnu&Linux
OS
MacOS
OS
Windows
Milestone
Set milestone
Clear milestone
No items
No Milestone
Assignees
Assign users
Clear assignees
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.
No due date set.
Dependencies
No dependencies set.
Reference: forgejo/forgejo#344
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
No
Yes
The tag is no set to the right commit (
8e8037a64d
), it should be at4e5be58493
which is where it was copied from.The content of the files are correct: they are identical to those found in https://codeberg.org/forgejo-integration/forgejo/releases/tag/v1.18.3-1
The following releases show the same inconsistencies:
The SHA they must be set to are found in the integration repository:
The recommended action to fix past releases is to force push the tag with the SHA found in the integration organization.
The solution seems to be force pushing the tag to have the value it should have.
I tried to force push a tag on an existing release on the forgejo-integration repository and check if that fixes it
https://codeberg.org/forgejo-integration/forgejo/releases/tag/v200.0.0-3 currently is at
695f6f9ce0
.And now the tag v200.0.0-3 is at
a055570b60
and the files from the release can be downloaded. The same could be done for the release 1.18.3-1.The question is... how did that happen?
[RELEASE] inconsitent tag for 1.18.3-1to [CI] inconsitent tagging of releases 4 months agohttps://codeberg.org/forgejo/forgejo/src/commit/forgejo/releases/binaries-pull-push.sh is the script that copies the binary files from integration to forgejo
And when it does here the tag is implicitly set as a side effect of creating the release. I have no clue where and how it picks the commit to set the tag with. But it does pick one.
So the solution to this bug it to set the tag prior to uploading. It will not trigger any CI job because the experimental & the forgejo main repositories are not set to run on tags.
I'm pretty sure it's just using the current HEAD of the so-called "default" branch as defined in the branches settings. We should create the tag at the HEAD that we know was used to build the binaries before uploading the release.
Working theory at this point: if the API is required to create a release given a tag that does not exist, it will create one with the tip of the default branch. Creating the tag before uploading the release should fix the problem.
Does the tag actually get pushed to Codeberg before the release is created? It looks like the tags in forgejo-integration are correct, for the record.
No, the tag is not pushed, it is a bug in the release scripts.
I force pushed https://codeberg.org/forgejo/forgejo/releases/tag/v1.18.1-0 which is now at
dd1486af80
as it should have been. I also updated the description of the issue with a detailed and hopefully exhaustive description of the problem and the recommended action. There also is a PR expecting review to fix the root cause.Before I proceed with force pushing the remaining tags, I'll wait for review.
@crystal @Gusted ?
There has been no observable negative side effect of force pushing the tag for v1.18.1-0 so I force pushed the others. The current situation is wrong anyway so I felt it was best to not wait for too long:
dd1486af80
1df08aab97
480a024491
7fa34500c9
4e5be58493
I'm inclined to think this issue is information enough in case someone ran into the same problem before it was fixed. Or if someone wonders why the SHA of the tags moved.
If you think this should be more prominently advertised, please speak up.
Just to thank @crystal for discovering this bug
It has come to my attention (thanks to tomgus1 in the Forgejo Matrix Space, which everyone should join btw), that this issue caused Arch Linux to distribute defective Forgejo packages for a few weeks, which are now preventing users who took the upgrade to the latest (fixed) package from starting the service because they're technically downgrading. I suppose the next step is to get in touch with the Arch team so they can publicize the problem and propose solutions for their users.
Re-opening to work on how to properly communicate this problem and potential impact.
https://floss.social/@forgejo/109854218136296565
Compiled by @crystal
Associated blog post at forgejo/website#95
I merged the blog post as I thought it would be good to get it out before a large number of users start experiencing issues.
And with that the issue can now be closed. It is linked from the blog post which makes it easy to find.