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

Try fixing flaky "pick up config changes" tests #297

Merged
merged 1 commit into from Mar 9, 2022

Conversation

didrocks
Copy link
Member

@didrocks didrocks commented Mar 9, 2022

This test is still failing randomly in the archive or in autopkgtests on
armhf and arm64.
Change thus the approach to define phases:

  • First phase is initial configuration set
  • Second optional phase is a configuration change for some tests
  • Third phase is the "done" one.

This way, we control the amount of callbacks we are interested in and
picking, discaring the unwanted multiple inotify event for the same
write on disk.
It seems to make the flaky failure (which only impacts tests, as in a
real system, we are interested even in no-op changes) go away on arm64
after multiple attempts.

This test is still failing randomly in the archive or in autopkgtests on
armhf and arm64.
Change thus the approach to define phases:
- First phase is initial configuration set
- Second optional phase is a configuration change for some tests
- Third phase is the "done" one.

This way, we control the amount of callbacks we are interested in and
picking, discaring the unwanted multiple inotify event for the same
write on disk.
It seems to make the flaky failure (which only impacts tests, as in a
real system, we are interested even in no-op changes) go away on arm64
after multiple attempts.
@didrocks didrocks requested a review from jibel March 9, 2022 09:18
@codecov-commenter
Copy link

Codecov Report

Merging #297 (dccfe58) into main (ce25189) will increase coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #297      +/-   ##
==========================================
+ Coverage   84.68%   84.73%   +0.05%     
==========================================
  Files          56       56              
  Lines        3905     3905              
==========================================
+ Hits         3307     3309       +2     
+ Misses        375      374       -1     
+ Partials      223      222       -1     
Impacted Files Coverage Δ
cmd/adsysd/daemon/daemon.go 88.88% <0.00%> (+2.22%) ⬆️

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 ce25189...dccfe58. Read the comment docs.

Copy link
Collaborator

@jibel jibel left a comment

Choose a reason for hiding this comment

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

Sounds like the right fix. Thanks!

@jibel jibel merged commit eab2054 into main Mar 9, 2022
@jibel jibel deleted the try-fixing-armstar-flaky-test branch March 9, 2022 15:15
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.

None yet

3 participants