Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scheduled upstream-dev CI is skipped #4801

Closed
keewis opened this issue Jan 12, 2021 · 5 comments · Fixed by #4806 or #4805
Closed

scheduled upstream-dev CI is skipped #4801

keewis opened this issue Jan 12, 2021 · 5 comments · Fixed by #4806 or #4805
Labels
CI Continuous Integration tools

Comments

@keewis
Copy link
Collaborator

keewis commented Jan 12, 2021

The scheduled CI is being skipped since about 6 days ago (which means this is probably due to the merge of #4729, see this run before the merge and this run after the merge).

This is really strange because workflow_dispatch events (for which the CI detection job is also skipped) still work perfectly fine.

Edit: it seems to be because of

&& (
(github.event_name == 'scheduled' || github.event_name == 'workflow_dispatch')
|| needs.detect-ci-trigger.outputs.triggered == 'true'
)

if I remove that the scheduled CI runs.

cc @andersy005

@mathause mathause added the CI Continuous Integration tools label Jan 13, 2021
@keewis
Copy link
Collaborator Author

keewis commented Jan 13, 2021

the trigger also seems to be broken: the action fails because HEAD^2 apparently is not always a valid ref for pull request events.

@andersy005
Copy link
Member

@keewis, I think the issue has to do with a typo in this condition:

(github.event_name == 'scheduled' || github.event_name == 'workflow_dispatch')

The right event name is schedule instead of scheduled: github.event_name == 'scheduled' --> github.event_name == 'schedule'

@keewis
Copy link
Collaborator Author

keewis commented Jan 13, 2021

Oh, thanks, that makes sense. I'll send in a PR.

@andersy005
Copy link
Member

the trigger also seems to be broken: the action fails because HEAD^2 apparently is not always a valid ref for pull request events.

Do you have any thoughts on how to address this?

@keewis
Copy link
Collaborator Author

keewis commented Jan 13, 2021

I'm currently experimenting in #4805, but maybe we have to be smarter about how many commits to fetch.

Edit: it seems that this only fails for merge commits. that's wrong, I don't know why it fails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration tools
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants