Skip to content

Fix integration test intermittent failure due to download/file in use #1905

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
Oct 4, 2022

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Oct 4, 2022

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)

What kind of change does this PR introduce?

A workaround to fix the integration test.

What is the current behavior?

go-lang tests in each package are run in parallel (instead the tests inside each package are run sequentially). This is not good for tests in integrationtest because these share the download directory to save bandwidth.

What is the new behavior?

The tests are run sequentially using the -p 1 flag

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

No

Other information

Maybe a better long term solution could be to move all integration tests in the same "package" under internal/intergationtest. @MatteoPologruto @umbynos

This is required since the integration tests shares the download folder.
Still not ideal, it would be better if the cli could handle concurrent
access to the download folder (from multiple cli processes...), but at
least allows to run the tests without random failures.
@codecov
Copy link

codecov bot commented Oct 4, 2022

Codecov Report

Base: 36.74% // Head: 36.72% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (f585f06) compared to base (3d5a87e).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1905      +/-   ##
==========================================
- Coverage   36.74%   36.72%   -0.02%     
==========================================
  Files         231      231              
  Lines       19724    19724              
==========================================
- Hits         7247     7244       -3     
- Misses      11646    11648       +2     
- Partials      831      832       +1     
Flag Coverage Δ
unit 36.72% <ø> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
arduino/cores/packagemanager/package_manager.go 65.82% <0.00%> (-0.76%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@cmaglie cmaglie requested review from per1234 and umbynos October 4, 2022 13:10
@cmaglie cmaglie self-assigned this Oct 4, 2022
@cmaglie cmaglie merged commit 02e8c77 into arduino:master Oct 4, 2022
@cmaglie cmaglie deleted the fix_integration_test branch October 4, 2022 13:34
@per1234 per1234 added topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project labels Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants