Forgejo action does not work with short name #557
Labels
No labels
Backlog Status
Needs Review
Backlog Status
Ready
Chore
points
01
points
02
points
03
points
05
points
08
points
13
Priority
High
Priority
Low
Priority
Medium
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forge/forge#557
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Summary
Local forgejo action names like
ci/testing-farm@mainshould in principle be equivalent tohttps://forge.fedoraproject.org/ci/testing-farm@main, but that's not the case it seems (probably due to setup).Details
Here is an example run as
ci/testing-farm@mainand failing to resolve, while this one withhttps://forge.fedoraproject.org/ci/testing-farm@mainmanages to resolve(it is trying to get them from forgejo instead of forge.fedoraproject.org)
fedora-kiwi-descriptionsto forge.fedoraproject.org #13221ok, except in your example, if we change DEFAULT_ACTIONS_URL away from the the default of
data.forgejo.orgtheactions/checkoutaction shortname wont resolve anymore.one workaround here would be to create an org
actionson forge.fp.o and mirror the standard actions on https://data.forgejo.org/actions/then we could change
DEFAULT_ACTIONS_URLto https://forge.fedoraproject.orgthat org would need to be maintained by someone though, if more actions are added.
I expect this is a common issue in upstream. My thinking is to allow
DEFAULT_ACTIONS_URLto be a list behaving as fallback. There would be potential name collisions in both cases.At least mirroring should not be that problematic, since that is done in upstream just as well https://code.forgejo.org/actions
AUIU, the current setup we have would behave the same way as you are experiencing on codeberg -- ci/testing-farm@main would not resolve to codeberg.org/ci/testing-farm@main -- it would resolve to data.forgejo.org, and fail just as it does on forge.
That said, the mirroring should work -- its just who will maintain it.
The other option is to just use full URIs when referring to non-default actions (i.e.) in the actions provided by forgejo itself.
I think we should do the mirror, for now I will be maintaining the org. Will create SOP's for it and eventually find more maintainers.
@humaton the new org has been created, and i have mirrored all the repos on code.forgejo.org/actions to the new org:
https://forge.fedoraproject.org/actions
final step is to update the config changing DEFAULT_ACTIONS_URL to
forge.fedoraproject.organd then test -- will do this later today when more people are around to tell me if it breaks any actions.