Skip to content

Provide object-level packages[].platforms[].toolsDependencies[] package index data to rules #199

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
Jun 23, 2021
Merged

Provide object-level packages[].platforms[].toolsDependencies[] package index data to rules #199

merged 2 commits into from
Jun 23, 2021

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Jun 23, 2021

Data checking rules for package indexes need to iterate over its object-level components. To facilitate this, slices of
such objects accompanied by the necessary metadata are generated as package index project data.

This was already done for packages, platforms, boards, and tools, but not for tools dependencies.

per1234 added 2 commits June 22, 2021 23:59
The package indexes for used for projectdata test data had the same packages[].platforms[].toolsDependencies data for
every platform. Although there was nothing specifically wrong with this, it seems like diversity in the test data makes
the tests more meaningful by differentiating the expected tools dependencies data for each platform.
…ge index data to rules

Data checking rules for package indexes need to iterate over its object-level components. To facilitate this, slices of
such objects accompanied by the necessary metadata are generated as package index project data.

This was already done for packages, platforms, boards, and tools, but not for tools dependencies.
@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Jun 23, 2021
@per1234 per1234 requested review from silvanocerza and umbynos June 23, 2021 07:03
@codecov-commenter
Copy link

Codecov Report

Merging #199 (d2fc80e) into main (9cd738f) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #199      +/-   ##
==========================================
+ Coverage   85.15%   85.16%   +0.01%     
==========================================
  Files          43       43              
  Lines        3388     3391       +3     
==========================================
+ Hits         2885     2888       +3     
  Misses        392      392              
  Partials      111      111              
Flag Coverage Δ
unit 85.16% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
internal/project/projectdata/packageindex.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9cd738f...d2fc80e. Read the comment docs.

@per1234 per1234 merged commit 9bdca8b into arduino:main Jun 23, 2021
@per1234 per1234 deleted the toolsdependencies-data branch June 23, 2021 07:35
@per1234 per1234 self-assigned this Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants