Skip to content

reordered the actions, so clang-format and doxygen are run first #134

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

Merged
merged 2 commits into from
May 2, 2022

Conversation

eringerli
Copy link
Contributor

@eringerli eringerli commented Apr 30, 2022

This change reorders the actions so the least expensive and most failing actions are run first. On a typical run, doxygen and clang-format take each about 2s, the complete building on all the supported platforms 10 minutes. In my experience, the most fails I get are from formatting and documentation errors, not from compilation problems. This gives the users a much faster feedback on needed changes in their commits and PRs and shaves off a lot of execution time.

If you also consider accepting PR #135, this gives the user feedback on formatting and documentation in under 30s, compared to before after 13 minutes.
Screenshot_20220430_185038

@eringerli eringerli force-pushed the actions-reorder branch 3 times, most recently from 0f591f8 to 2c9772c Compare May 1, 2022 06:39
@eringerli
Copy link
Contributor Author

eringerli commented May 1, 2022

According to this: actions/runner-images#675 (comment), all calls to apt-get install should be in one place. This change does it. It should be resolving the flakyness, so apt-spy2 can be removed in PR #135

@eringerli
Copy link
Contributor Author

I set prettier names for the individual steps

eringerli added 2 commits May 1, 2022 20:22
This change reorders the actions so the least expensive and most failing
actions are run first. On a typical run, doxygen and clang-format take
each about 2s (plus 7s install), the complete building on all the supported platforms
10 minutes. In my experience, the most fails I get are from formatting
and documentation errors, not from compilation problems. This gives the
users a much faster feedback on needed changes in their commits and PRs
and shaves off a lot of execution time.
@eringerli
Copy link
Contributor Author

eringerli commented May 1, 2022

I moved the changes in actions_install.sh to PR #136, so this patchset can be easily applied to your repositories.

Here is a small snippet to batch patch, commit and push to github for many repos:

for repo in repo1 repo2; do
  pushd "$repo"
    curl https://patch-diff.githubusercontent.com/raw/adafruit/ci-arduino/pull/134.patch | patch -p2 -u -F 10 --merge .github/workflows/githubci.yml
    git add .github/workflows/githubci.yml
    git commit -m "updated github workflow"
    git push origin
  popd
done

@ladyada ladyada merged commit 6aba38f into adafruit:master May 2, 2022
@ladyada
Copy link
Member

ladyada commented May 2, 2022

thanks!

eringerli added a commit to eringerli/Adafruit_RA8875 that referenced this pull request Jun 5, 2022
eringerli added a commit to eringerli/Adafruit_RA8875 that referenced this pull request Jun 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants