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

6.x #611

Merged
merged 26 commits into from
Sep 3, 2024
Merged

6.x #611

merged 26 commits into from
Sep 3, 2024

Conversation

priv-kweihmann
Copy link
Owner

Pull request checklist

Bugfix

  • A testcase was added to test the behavior

New feature

  • A testcase was added to test the behavior
  • wiki-creator.py was run and a new wiki document was filled with information
  • New functions are documented with docstrings
  • No debug code is left
  • README.md was updated to reflect the changes (check even if n.a.)

and adapt to the latest changes

Signed-off-by: Konrad Weihmann <[email protected]>
to the run groups in the way bitbake
does it as well.
The order of conf files is the following

- layer.conf
- machine configs
- distro configs

Closes #607

Signed-off-by: Konrad Weihmann <[email protected]>
to the rules where conf files are not supported

Signed-off-by: Konrad Weihmann <[email protected]>
that checks for the correct inherit order
of cross, native and nativesdk

Closes #601

Signed-off-by: Konrad Weihmann <[email protected]>
to check on discouraged variables in
distro configurations

Relates to #607

Signed-off-by: Konrad Weihmann <[email protected]>
to check that only layer.conf specific variables
are set in a layer.conf

Relates to #607

Signed-off-by: Konrad Weihmann <[email protected]>
to check for discouraged variables in a machine conf

Relates to #607

Signed-off-by: Konrad Weihmann <[email protected]>
Signed-off-by: Konrad Weihmann <[email protected]>
to enable even more throughout checks,
build permutations of

- inline branch expansion
- (opt) layer.conf files
- (opt) machine.conf files
- (opt) distro.conf files
- each calculated file group

to enable a better coverage.
The use permutation is appended to the findings's
message automatically.

Relates to #607

Signed-off-by: Konrad Weihmann <[email protected]>
to mark rules that are shipped but not activated by default.
Those will appear in the result of --print-rulefile but
are not picked for the actual run.

Relates to #610

Signed-off-by: Konrad Weihmann <[email protected]>
that, if configured, will raise a finding if the selected
Upstream-Status classification was found in any patch file

Closes #610

Signed-off-by: Konrad Weihmann <[email protected]>
plus fix deduplication hashing issue

Signed-off-by: Konrad Weihmann <[email protected]>
after the state has been populated.
Reference the current state, as a deep copied object
references not the previously setup instance.
Also do not overwrite state.inline_suppressions,
as now different run_groups could contain different
sets of files, so we need to keep that index globally

Signed-off-by: Konrad Weihmann <[email protected]>
which disables the permutation of inline expressions
and the entire config file permutation handling.
This default will keep the previous behavior, while
allowing a more throughout check of the sources
when using compute intensive 'all' mode.

Also fix an issue with the 'rule is applicable' check

Signed-off-by: Konrad Weihmann <[email protected]>
previously that was accidentally overwritten

Signed-off-by: Konrad Weihmann <[email protected]>
to have them checked even when they are the
only files passed by CLI

Signed-off-by: Konrad Weihmann <[email protected]>
to use all CPUs.
Also update setup.cfg

Signed-off-by: Konrad Weihmann <[email protected]>
Signed-off-by: Konrad Weihmann <[email protected]>
Signed-off-by: Konrad Weihmann <[email protected]>
to warning. Previous 'warn' was handled as inactive

Signed-off-by: Konrad Weihmann <[email protected]>
for machine and distro confs.
They are only computed in mode==all anyway

Signed-off-by: Konrad Weihmann <[email protected]>
and typing hint of group_files

Signed-off-by: Konrad Weihmann <[email protected]>
even if the parent not is disabled

Signed-off-by: Konrad Weihmann <[email protected]>
as only python 3.9 and up support the
frozenset class usage

Signed-off-by: Konrad Weihmann <[email protected]>
@priv-kweihmann priv-kweihmann merged commit bbcd501 into master Sep 3, 2024
5 checks passed
@priv-kweihmann priv-kweihmann deleted the feat/conf-support branch September 3, 2024 07:22
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.

1 participant