Skip to content

Removed useless file-readable check while enumerating source code files #2418

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
Nov 14, 2023

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Nov 13, 2023

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

Removes the following file filter:

// filterReadableFiles is a ReadDirFilter that accepts only readable files
func filterReadableFiles(file *paths.Path) bool {

from the FindFilesInFolder function. The filter has been inherited from the legacy builder, but the reason for it is unclear. On the other hand, it triggers the ESET antivirus software, slowing down the compile.

What is the current behavior?

What is the new behavior?

Does this PR introduce a breaking change, and is titled accordingly?

Other information

@cmaglie cmaglie self-assigned this Nov 13, 2023
@cmaglie cmaglie added type: imperfection Perceived defect in any part of project topic: build-process Related to the sketch build process labels Nov 13, 2023
Copy link
Contributor

@alessio-perugini alessio-perugini left a comment

Choose a reason for hiding this comment

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

😲

Copy link

codecov bot commented Nov 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3d88eff) 67.25% compared to head (490068f) 67.16%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2418      +/-   ##
==========================================
- Coverage   67.25%   67.16%   -0.10%     
==========================================
  Files         210      210              
  Lines       20543    20534       -9     
==========================================
- Hits        13817    13791      -26     
- Misses       5591     5603      +12     
- Partials     1135     1140       +5     
Flag Coverage Δ
unit 67.16% <ø> (-0.10%) ⬇️

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

Files Coverage Δ
arduino/builder/internal/utils/utils.go 71.12% <ø> (+0.26%) ⬆️

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cmaglie cmaglie added this to the Arduino CLI v0.35.0 milestone Nov 14, 2023
@cmaglie cmaglie merged commit 862a4cb into arduino:master Nov 14, 2023
@cmaglie cmaglie deleted the remove_useless_file_filter branch November 14, 2023 09:53
cmaglie added a commit that referenced this pull request Nov 14, 2023
…g source code files (#2418)

* Removed useless file filter

* Removed unused variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: build-process Related to the sketch build process type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants