fix: runs-on is also mandatory for reusable workflows and may be needing container #194
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind
Chore
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
3 participants
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo/act!194
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "earl-warren/act:wip-workflow-call"
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?
If not the schema validation will fail because it will be try to validate as if not calling a reusable workflow.
fix: runs-on is also mandatory for reusable workflows [skip cascade]to fix: runs-on is also mandatory for reusable workflows364e2167ce50c850d757cascading-pr updated at forgejo/runner#732
cascading-pr updated at forgejo/runner#732
@ -93,0 +104,4 @@jobs:build_frontend_dev:name: Build Silo Frontend DEVruns-on: ubuntu-latestI'm confused. Why do we need a
runs-onhere? 🤔(I know we don't support reusable workflows yet)I think you're right. It is redundant with the runs-on that is mandatory in the workflow being reused. My bad.
Actually... this is necessary because a workflow that uses a workflow call will need a runs-on to be picked up by the runner. Otherwise it will not. The workflow that is re-used also needs a runs-on although it may not be necessary in some cases:
workflow_calleventThe two cases cannot be distinguished syntactically and have to both be valid.
fix: runs-on is also mandatory for reusable workflowsto fix: runs-on is also mandatory for reusable workflows and may be needing containerforgejo/end-to-end#839 was manually run ahead of time to verify it passes.
fix: runs-on is also mandatory for reusable workflows and may be needing containerto fix: runs-on is also mandatory for reusable workflows and may be needing container [skip cascade]50c850d757736fbff925Waiting on forgejo/end-to-end#839 to be merged to confirm the end-to-end test passes.
736fbff92508f21a5bf3fix: runs-on is also mandatory for reusable workflows and may be needing container [skip cascade]to fix: runs-on is also mandatory for reusable workflows and may be needing container08f21a5bf354ca9dbb47@ -1474,1 +1474,4 @@},"runs-on": {"type": "runs-on","required": truewouldn't this break existing workflows if it's required? 🤔
I still don't understand why it's needed, but will approve. can be fixed later
It is required as of a few runner versions ago. The default value when it is not specified is undocumented and lead to various breakage. It was decided to not support a default value (based on what?). This is therefore not a breaking change but rather a clearer error message than the often difficult/obscure consequences of what happens when a
runs-onis not specified.In GitHub there is a limited number of runs-on and their semantic is tightly controlled by the server. Forgejo Actions grants a lot more flexibility and the interpretation is left to the runner ultimately. In that context figuring out a sane semantic for when
runs-onis not specified would require thinking. I'm not saying it is not possible, but it definitely is not trivial.Does that make sense?
cascading-pr updated at forgejo/runner#738
cascading-pr updated at forgejo/runner#738