mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-13 19:37:47 -05:00
Strange action errors in mirrored projects?! #13585
Closed
opened 2025-11-02 10:47:00 -06:00 by GiteaMirror
·
38 comments
No Branch/Tag Specified
main
release/v1.25
release/v1.24
release/v1.23
release/v1.22
release/v1.21
release/v1.20
release/v1.19
release/v1.18
release/v1.17
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.25.3
v1.25.2
v1.25.1
v1.25.0
v1.24.7
v1.25.0-rc0
v1.26.0-dev
v1.24.6
v1.24.5
v1.24.4
v1.24.3
v1.24.2
v1.24.1
v1.24.0
v1.23.8
v1.24.0-rc0
v1.25.0-dev
v1.23.7
v1.23.6
v1.23.5
v1.23.4
v1.23.3
v1.23.2
v1.23.1
v1.23.0
v1.23.0-rc0
v1.24.0-dev
v1.22.6
v1.22.5
v1.22.4
v1.22.3
v1.22.2
v1.22.1
v1.22.0
v1.23.0-dev
v1.22.0-rc1
v1.21.11
v1.22.0-rc0
v1.21.10
v1.21.9
v1.21.8
v1.21.7
v1.21.6
v1.21.5
v1.21.4
v1.21.3
v1.21.2
v1.20.6
v1.21.1
v1.21.0
v1.21.0-rc2
v1.21.0-rc1
v1.20.5
v1.22.0-dev
v1.21.0-rc0
v1.20.4
v1.20.3
v1.20.2
v1.20.1
v1.20.0
v1.19.4
v1.21.0-dev
v1.20.0-rc2
v1.20.0-rc1
v1.20.0-rc0
v1.19.3
v1.19.2
v1.19.1
v1.19.0
v1.19.0-rc1
v1.20.0-dev
v1.19.0-rc0
v1.18.5
v1.18.4
v1.18.3
v1.18.2
v1.18.1
v1.18.0
v1.17.4
v1.18.0-rc1
v1.19.0-dev
v1.18.0-rc0
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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rc1
v1.3.2
v1.3.1
v1.3.0
v1.3.0-rc2
v1.3.0-rc1
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.2.0-rc3
v1.2.0-rc2
v1.1.4
v1.2.0-rc1
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.2
v1.0.1
v1.0.0
v0.9.99
Labels
Clear labels
$20
$250
$50
$500
backport/done
💎 Bounty
docs-update-needed
good first issue
hacktoberfest
issue/bounty
issue/confirmed
issue/critical
issue/duplicate
issue/needs-feedback
issue/not-a-bug
issue/regression
issue/stale
issue/workaround
lgtm/need 2
modifies/api
modifies/translation
outdated/backport/v1.18
outdated/theme/markdown
outdated/theme/timetracker
performance/bigrepo
performance/cpu
performance/memory
performance/speed
pr/breaking
proposal/accepted
proposal/rejected
pr/wip
pull-request
reviewed/wontfix
💰 Rewarded
skip-changelog
status/blocked
topic/accessibility
topic/api
topic/authentication
topic/build
topic/code-linting
topic/commit-signing
topic/content-rendering
topic/deployment
topic/distribution
topic/federation
topic/gitea-actions
topic/issues
topic/lfs
topic/mobile
topic/moderation
topic/packages
topic/pr
topic/projects
topic/repo
topic/repo-migration
topic/security
topic/theme
topic/ui
topic/ui-interaction
topic/ux
topic/webhooks
topic/wiki
type/bug
type/deprecation
type/docs
type/enhancement
type/feature
type/miscellaneous
type/proposal
type/question
type/refactoring
type/summary
type/testing
type/upstream
Mirrored from GitHub Pull Request
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/gitea#13585
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @somera on GitHub (Oct 10, 2024).
Description
After update to 1.22.3 I see many of errors
in many mirrored projects?!
And than I saw this
or
or
or
What was activated with 1.22.3 release? What happens here?
Gitea Version
1.22.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.47.0
Operating System
Ubuntu 22.04.3 LTS x86_64
How are you running Gitea?
gitea-1.22.3-linux-amd64
Database
PostgreSQL
@somera commented on GitHub (Oct 10, 2024):
I see that
are activated. But not for all mirror.
And I didn't activate it.
I have currently 319 mirrors with
How can I check in the DB which mirrors has activated actions? I don't know the structure and I didn't find other corresponding columns.
@somera commented on GitHub (Oct 10, 2024):
How can I fix it?
I can't go over the whole list and do it manualy.
When I deacticate the Actions in one specific project than I see the error
and when I click on the x I get 404 error.
@somera commented on GitHub (Oct 10, 2024):
@lunny ?
@lunny commented on GitHub (Oct 10, 2024):
I will take a look today
@somera commented on GitHub (Oct 12, 2024):
@lunny I see more and more mirrors with ...
@lunny commented on GitHub (Oct 13, 2024):
I have no idea, maybe it's related to #32120 . @yp05327 @Zettat123
@Zettat123 commented on GitHub (Oct 14, 2024):
Do you mean that the "Actions" unit of some repositories are automatically enabled after upgrading to v1.22.3? If so, I think this issue is not related to #32120. Did you upgrade from v1.22.2 to v1.22.3?
@somera commented on GitHub (Oct 14, 2024):
Yes. After upgrade from 1.22.2 to 1.22.3 I see
And Actions are for the Mirrors activated. It makes no sense.
@somera commented on GitHub (Oct 14, 2024):
Example
I didn't activate the Actions for all the affected projects.
And the red x is now after upgrade to 1.22.3.
When I add new mirror, Actions are activated -> is this right? Was this activated in 1.22.2 too?
@somera commented on GitHub (Oct 14, 2024):
I compared 1.22.2 (older mirror status) and 1.22.3 instances for same mirrors.
1.22.2 -> actions tab is not activated, no red x visible
1.22.3 -> actions tab is activated, red x visible for "failed" actions in some projects
@somera commented on GitHub (Oct 14, 2024):
Strange.
I imported an existing mirror in 1.22.2 in other orga on the same gite instance. And the new mirror has activated actions tab. In the old mirror the actions tab is not activated. When I update the old mirror the actions stay disabled.
What happens here?
@Zettat123 commented on GitHub (Oct 15, 2024):
Yes. New repositories (including mirrors) created in versions after v1.22 will have "Actions" enabled by default. See #27482. However, I don't think repositories created before v1.22 will automatically enable "Actions" after upgrading. I'll do some testing to confirm.
I've done my testing and can now confirm that mirror repositories created before v1.22 will not have "Actions" enabled after Gitea upgraded to v1.22. So I think repositories with "Actions" enabled should be created after v1.22.0
There is a proposal to disable "Actions" for mirror repositories by default. I support this idea.
@yp05327 commented on GitHub (Oct 15, 2024):
When does these jobs start being triggered?
I can see some of them, but I'm sorry I don't know the language in your screenshot.

Does this mean
last month?And when did you upgrade the instance?
If the jobs are triggered before the update, it make sense. And I think this means before the update, the action unit is already enabled. But you said, they are disabled before the update, and enabled after the update, which is strange. And I have no idea about it yet.
But if they are all triggered after the update, it means during the update, action units was forcibly enabled. Then it should be a bug or something was wrong from Gitea side.
@Zettat123 commented on GitHub (Oct 15, 2024):
This is where I suspect a bug exists. But I can't find any evidence that Gitea forcibly enabled the "Actions" unit.
@yp05327 commented on GitHub (Oct 15, 2024):
@Zettat123
Yes. I think it is the point, as there are several possible cases, so I asked, and then we can know what happened.
@somera commented on GitHub (Oct 15, 2024):
It's German. And it mean last month.
I'm wondering too, that I see this actions.
~2 days aftrer 1.22.3 was released.
But i didn't enable any actions. I checked a lot of mirrors and most of them has no activated actions.
@somera commented on GitHub (Oct 15, 2024):
This https://github.com/auth0/go-auth0 is an mirror.
2 months ago

And 1.22.3 was upgraded on 09.10.2024
And here othe mirror with activated action but wihout any errors
Other mirror ...
I don't know how many are affected.
@yp05327 commented on GitHub (Oct 15, 2024):
This is because the trigger of these 2 workflows are creating PR to main branch and workflow_dispatch (manually excute)
ps: for @Zettat123, the workflow files:
https://github.com/stanford-oval/storm/tree/main/.github/workflows
@yp05327 commented on GitHub (Oct 15, 2024):
So IMO, actually, there's no bug and the only thing you need is #30350
@Zettat123 commented on GitHub (Oct 15, 2024):
I see. Actually, the "Actions" unit was enabled for all repositories, but only some of them had actions runs due to workflow triggers.
@somera commented on GitHub (Oct 15, 2024):
Will the patch make it like it was before or does something still need to be fixed in the database?
@yp05327 commented on GitHub (Oct 15, 2024):
In another way, it is not difficult to implement a new options when migrating the repo.
But how to handle these existing mirrors, adding a migration or a maintenance operation or doctor command?
@Zettat123 commented on GitHub (Oct 15, 2024):
To batch disable the "Actions" unit of existing mirrors, users can use the API PATCH
/repos/{owner}/{repo} to update repos.
@somera commented on GitHub (Oct 15, 2024):
Doctor commands sounds good. I have ~20000 mirrors.
How can I check in the DB how many mirrors are at the moment affeced?
And when I disable Actions for some mirrors in the UI the red x and orange o stay.
@somera commented on GitHub (Oct 15, 2024):
And today I see first system messages
I missing here info to the project.
and a lot exceptions
@somera commented on GitHub (Oct 15, 2024):
Same #30244
@somera commented on GitHub (Oct 15, 2024):
Can I use this
to disable action temporary?
And this
to cleanup all the action jobs?
@yp05327 commented on GitHub (Oct 16, 2024):
It is a global setting for all repos, if you do not need to use actions in this instance, you can disable it globally.
Clean up only remove action job log, related data and artififacts, it will not delete those action jobs.
@somera commented on GitHub (Oct 17, 2024):
Thx,
hm.
Are you working on a solution to this problem?
The failed action jobs are flooding my system messages view.
@yp05327 commented on GitHub (Oct 17, 2024):
For existing mirrors, no good solution from me.
As it is related to
repo_unittable in DB.If there's a record with unit type 10 (action), and it is not globally disabled, then it means action unit is enabled.
We can not simply remove these records in migration, as users may need it.
So we can only do it by ourselves (cli or sql) or add a new maintenance operations, but it is not a usually used feature I think, so maybe there's no worth to implement it.
↑ It is for the action jobs
And the commit status (
xin dashboard repo list) is recorded in another table, and if you don't want to see them, maybe you also need to clean it.So, as a summary, I have no good idea now for completely solving it for these existing mirrors.
@somera commented on GitHub (Oct 17, 2024):
Understand. Means I have fix it for ~20.000 mirrors by myself. Or I do
this with an script for all the mirrors?
I this case I should send only has_actions = false as an json? Right?
This will disable the action. And how can I than fix this
?
@Zettat123 commented on GitHub (Oct 18, 2024):
Yes. You only need to set the fields that need to be changed.
9116665e9c/routers/api/v1/repo/repo.go (L1018-L1027)@somera commented on GitHub (Oct 18, 2024):
@Zettat123 I did this for ~3500 mirrors. Looks good.
And what should be removed in th database to remove this
?
This is visible after I set has_actions = false. And click on the x or o show 404.
@lunny commented on GitHub (Oct 20, 2024):
I think these commit status can be removed manually from the database with
@somera commented on GitHub (Oct 21, 2024):
I have now a script which I run after I added some new mirrors.
But for the next release there will be a fix in gitea? Means, when I import new mirror "Actions" will be deactivated by default?
Thx. I try this next weekend with an Gitea-DB backup.
@somera commented on GitHub (Oct 24, 2024):
@lunny is there a fix in the next release that for new mirrors "Actions" will be not activated?
@lunny commented on GitHub (Oct 25, 2024):
Yes, I think there should be a PR to fix that but there is no ETA
@somera commented on GitHub (Jan 11, 2025):
@lunny looks good for me after update to 1.23.1. Thx.