Skip to content

Conversation

@asklymenko
Copy link

@asklymenko asklymenko commented Dec 18, 2025

Change summary

The pull_request_target workflows are now evaluated against the base repository’s default branch for branch protections and environment rules, not the pull request’s target branch.

It is required to change the structure to have only 1 common file for all branches. This workflow should call a branch-specific workflow to run tests. In these changes I use a local workflow of a branch (the branch is not specified in the workflow path). According to the GitHub documentation it should call a workflow of the same branch, if a local workflow specified. Let's try this approach to fix current problem.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

How to test / Smoketest result

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

It is required to change this workflow to be called by another workflow - trigger-package-smoketest.yml.
Use one file for all branches to trigger the package-smoketest.yml workflow.
Specify the workflow location in "./package-smoketest.yml" format to show that it is a local workflow.
Removed conditional smoketest jobs for specific branches and simplified to a single smoketest job. No need to specify a branch when local workflow is called.
@github-actions
Copy link

github-actions bot commented Dec 18, 2025

👍
No issues in PR Title / Commit Title

@asklymenko
Copy link
Author

@kumvijaya Could you please review this approach?

@kumvijaya kumvijaya added bp/circinus Create automatic backport for circinus bp/sagitta Create automatic backport for sagitta LTS version labels Dec 18, 2025
Copy link
Contributor

@kumvijaya kumvijaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can approve as this needs quick-fix.
But reusable workflow to be kept in .github repo (not on same repo)

@asklymenko
Copy link
Author

@kumvijaya
Thank you. If it is better to keep reusable workflows in .github repo I will move it to that repo later.

Change this workflow to trigger the reusable workflow from "vyos/.github" repo.
Delete .github/workflows/package-smoketest.yml. It was moved to another repository. It will be used as a reusable workflow from that repo.
Change the workflow to run the branch-specific reusable workflow.
Copy link
Member

@c-po c-po left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The package smoketest workflow is ONLY required in vyos-1x repo - is it really necessary to make it an overcomplicated re-usable workflow?

@kumvijaya
Copy link
Contributor

The package smoketest workflow is ONLY required in vyos-1x repo - is it really necessary to make it an overcomplicated re-usable workflow?

Agree. If it is used only in this repo, can avoid creating reusable workflow.

@asklymenko
Copy link
Author

@c-po @kumvijaya I think we should have the same logic for other branches, in this case it is ok to move that file to other repo. To have the same location for all repos.

@c-po
Copy link
Member

c-po commented Dec 22, 2025

@c-po @kumvijaya I think we should have the same logic for other branches, in this case it is ok to move that file to other repo. To have the same location for all repos.

I strongly disagree as the logic becomes overly complex for no reason.

@asklymenko
Copy link
Author

I am closing this PR, this issue will be resolved by another PR.

@asklymenko asklymenko closed this Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bp/circinus Create automatic backport for circinus bp/sagitta Create automatic backport for sagitta LTS version current

Development

Successfully merging this pull request may close these issues.

3 participants