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

github: port CLA check to Github Actions #8429

Merged
merged 4 commits into from Apr 7, 2020

Conversation

jhenstridge
Copy link
Contributor

@jhenstridge jhenstridge commented Apr 6, 2020

Port the CLA check from Travis over to Github Actions.

I've removed the use of the TRAVIS_COMMIT_RANGE environment variable in the Python script: it turns out we can determine the new commits based on the synthetic merge commit we're asked to test (first parent is the destination branch head, second parent is the proposed branch head).

This PR doesn't make the new job a prerequisite for the spread jobs, since that would prevent those jobs from running when it is skipped (or at least once the workflow is enabled for push events).

I've left the Travis CLA check job enabled for now, to allow comparison of the output.

@jhenstridge jhenstridge force-pushed the github-workflow-cla-check branch 6 times, most recently from e06ec25 to 2058414 Compare April 6, 2020 05:22
@jhenstridge jhenstridge marked this pull request as ready for review April 6, 2020 05:53
Copy link
Collaborator

@bboozzoo bboozzoo left a comment

Choose a reason for hiding this comment

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

LGTM. Nitpick about merge check.

tests/lib/cla_check.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

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

Nice

Copy link
Collaborator

@zyga zyga left a comment

Choose a reason for hiding this comment

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

Nice work! :)

@zyga
Copy link
Collaborator

zyga commented Apr 6, 2020

@jhenstridge should the CLA check be a separate workflow that runs separately of the remaining tests? This would allow us to restart CLA checks separately.

This was suggested by @zyga, since it allows the job to be restarted
independent of the other workflow.
@mvo5 mvo5 merged commit b0016f3 into snapcore:master Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants