-
Notifications
You must be signed in to change notification settings - Fork 2.1k
boards/*: remove unused FEATURES_MCU_GROUP variable #11670
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
boards/*: remove unused FEATURES_MCU_GROUP variable #11670
Conversation
IIRC think @vincent-d uses Drone internally? |
This was also referenced in #10491 This could also go with a removal/cleanup of |
Thanks for the pointer, I didn't find it initially.
Agreed |
git grep returns some use of |
Only to call the It would need some refactoring and is not a simple removal as this one. |
bf1186c
to
063350d
Compare
Indeed, let's leave this to a follow-up PR. |
063350d
to
7d908f6
Compare
I don't ;) |
It is what I was thinking too, but was not clear while writing it. |
Removing this variable was also in my targets, so is good on my side. It just depends on the I will a follow up PR to prevent-the variable to be re-included by a non updated PR. |
The follow up for preventing the variable to re-appear #11671 It showed that If you want you can take the second commit alone and use it in this PR directly. |
That's what I'll do. Since @vincent-d is not using drone.io, I guess the file could be completely removed ? |
pathspec+=(":!${SCRIPT_PATH}") | ||
|
||
git -C "${RIOTBASE}" grep "${patterns[@]}" -- "${pathspec[@]}" \ | ||
| sed '1i Deprecated variables or patterns:' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this change in a fixup commit in #11671
| sed '1i Deprecated variables or patterns:' | |
| sed '1i \\nDeprecated variables or patterns:' |
It is required to behave correctly when multiple errors are shown.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cherry-picked the fixup commit
@@ -87,12 +87,31 @@ check_not_exporting_variables() { | |||
fi | |||
} | |||
|
|||
# Deprecated variables or patterns | |||
# Prevent deprecated varibles or patterns to re-appear after cleanup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/varibles/variables/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just fixed it
|
You can already squash the fixups and start a round on CI. For the commits order, I would rather remove the usage first explaining why it is removed and then remove the definitions. Otherwise I agree with removing them, and if CI works without it, its good for me. |
bd1173d
to
2440ac4
Compare
Thanks @cladmi. I squashed and reordered the commits like you suggested. Let's see what Murdock has to say. |
The first commit documentation is not adapted.
The whole ifdef is depending on And after re-ordering, the definition are currently still there. |
2440ac4
to
3c362a8
Compare
I changed it. |
@kaspar030 @smlng from the CI point of view you agree this can be removed ? |
to me this was inflexible anyway, and I think its not used anywhere anymore |
pathspec+=(":!${SCRIPT_PATH}") | ||
|
||
git -C "${RIOTBASE}" grep "${patterns[@]}" -- "${pathspec[@]}" \ | ||
| sed '1i \\nDeprecated variables or patterns:' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
main() { | ||
local errors='' | ||
|
||
errors+="$(check_not_parsing_features)" | ||
errors+="$(check_not_exporting_variables)" | ||
errors+="$(check_deprecated_vars_patterns)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function should now be added the list in all_checks
.
This is the last use of FEATURES_MCU_GROUP variable and thus it deprecates it.
Add a function to list deprecated variables or patterns and use it for * FEATURES_MCU_GROUP
3c362a8
to
7d65a71
Compare
@cladmi, rebased! |
has this been addressed? |
Is it supposed to be addressed here ? From previous @cladmi's comment, this is unclear to me. |
Well, the static-tests are still run for this PR, and IIRC that's the only thing where the buildgroups variable was used by murdock, so I think we're good! |
It currently is only used with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK, good to remove it for me.
No counter arguments from the CI maintainers.
Static test is still valid with last master, checked locally. |
Thanks! |
Contribution description
This variable is only used by
drone.yml
file and we don't use drone.io as CI anymore. Maybe the.drone.yml
could also be removed ?For the record, the
Makefile.include
of related boards were updated using the following command:Testing procedure
A green CI should be ok.
Issues/PRs references
fixes #10491
Waiting on #11672 as the way to handle the error message needs special handling with mac.