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

Reduce travis load by replacing an exclusive grep with an inclusive grep #10964

Merged
merged 2 commits into from
Nov 30, 2020

Conversation

skullydazed
Copy link
Member

Description

Currently a lot of things trigger full builds that shouldn't. This changes our core code identification strategy from "all directories we haven't excluded" to "all directories we have explicitly included."

Types of Changes

  • Core
  • Enhancement/optimization

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • I have read the CONTRIBUTING document.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@github-actions github-actions bot added cli qmk cli command core python labels Nov 17, 2020
@skullydazed skullydazed requested a review from a team November 17, 2020 18:38
Copy link
Member

@Erovia Erovia left a comment

Choose a reason for hiding this comment

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

LGTM

@Erovia Erovia requested a review from a team November 17, 2020 19:15
@@ -12,6 +12,7 @@ TRAVIS_COMMIT_RANGE="${TRAVIS_COMMIT_RANGE:-HEAD~1..HEAD}"
# Extra variables
LOCAL_BRANCH=$(git rev-parse --abbrev-ref HEAD)
QMK_CHANGES=$(git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE})
NUM_CORE_CHANGES=$(echo "$QMK_CHANGES" | grep -Ec -e '^Makefile' -e '^[^/]*.mk' -e '^drivers/' -e '^lib/atsam' -e '^lib/lib8tion/' -e '^platforms' -e '^quantum' -e '^tests' -e '^tmk_core')
Copy link
Member

Choose a reason for hiding this comment

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

If I have understood the grep correctly, are the submodules excluded here for a reason?

I can see a valid cases both ways:

  • we want to build everything when a submodule changes to check for compatibility
  • users unknowingly push old/wrong submodules

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm happy to go either way here. I don't have a reason to have excluded them other than initially pulling in things that are actually in qmk_firmware.

For #2 we might be better off having a lint check anyway.

@skullydazed skullydazed merged commit 8724a70 into master Nov 30, 2020
@skullydazed skullydazed deleted the improve_ci_load branch November 30, 2020 19:19
xgnxs pushed a commit to xgnxs/qmk_firmware that referenced this pull request Jan 9, 2021
…rep (qmk#10964)

* add -n to avoid compiling

* switch to an include rather than exclude strategy
BorisTestov pushed a commit to BorisTestov/qmk_firmware that referenced this pull request May 23, 2024
…rep (qmk#10964)

* add -n to avoid compiling

* switch to an include rather than exclude strategy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli qmk cli command core python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants