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

test: fix flaky unit tests #222

Merged
1 commit merged into from
Jun 9, 2021
Merged

test: fix flaky unit tests #222

1 commit merged into from
Jun 9, 2021

Conversation

ghost
Copy link

@ghost ghost commented Jun 9, 2021

tests/data tests are flaky due to -n 10 in pytest.ini, they are trying to get contents from globalConfig.json which may be not in stable state.

Examples:

`tests/data` tests are flaky due to `-n 10` in `pytest.ini`, they are trying to get contents from `globalConfig.json` which may be not in stable state.

Examples:

* https://github.com/splunk/addonfactory-ucc-generator/runs/2783628522
* https://github.com/splunk/addonfactory-ucc-generator/runs/2775867028
@ghost ghost requested a review from harshpatel-crest June 9, 2021 13:07
@github-actions
Copy link

github-actions bot commented Jun 9, 2021

Expected release notes (by @arys-splunk)

features:
update ucc ui version (df8687e)
Include notice file in distribution (#220) (fdfdf2b)
ucc as a library (#218) (7f06c29)

others (will not be included in Semantic-Release notes):
fix flaky unit tests (880dd11)

  • I hereby acknowledge these release notes are 🥙 AWESOME 🥙

@codecov-commenter
Copy link

codecov-commenter commented Jun 9, 2021

Codecov Report

Merging #222 (880dd11) into main (df8687e) will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #222      +/-   ##
==========================================
+ Coverage   55.94%   55.98%   +0.03%     
==========================================
  Files          37       37              
  Lines        2506     2506              
==========================================
+ Hits         1402     1403       +1     
+ Misses       1104     1103       -1     
Impacted Files Coverage Δ
...ework/modular_alert_builder/build_core/__init__.py 88.88% <0.00%> (+1.11%) ⬆️

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 e5b2cdb...880dd11. Read the comment docs.

@ghost ghost merged commit 9858189 into main Jun 9, 2021
@ghost ghost deleted the test/fix-flaky-unit-tests branch June 9, 2021 13:16
@ryanfaircloth
Copy link
Contributor

🎉 This PR is included in version 5.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants