Skip to content

[release/1.3 backport] Fix flaky btrfs test#3928

Merged
estesp merged 1 commit intocontainerd:release/1.3from
zhsj:bpo-3720
Jan 5, 2020
Merged

[release/1.3 backport] Fix flaky btrfs test#3928
estesp merged 1 commit intocontainerd:release/1.3from
zhsj:bpo-3720

Conversation

@zhsj
Copy link
Copy Markdown
Contributor

@zhsj zhsj commented Jan 4, 2020

backport #3720

Actually I didn't meet the origin problem. But I failed to build btrfs_test.go on i386.
Because using unix.BTRFS_SUPER_MAGIC without type cast, causes btrfs_test.go:79:17: constant 2435016766 overflows int32.

I checked master, the use of unix.BTRFS_SUPER_MAGIC was removed in #3720. So I think backporting is better than fixing the overflow.

Add logging and move the creation of the snapshotter inside
the attempt loop to catch cases where the mountinfo may
not be updated yet. When all attempts are reached there
is no reason to create the snapshotter as the unmount has
already occurred.

Signed-off-by: Derek McGowan <[email protected]>
(cherry pick from commit 7720325)
Signed-off-by: Shengjing Zhu <[email protected]>
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jan 4, 2020

Build succeeded.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Jan 4, 2020

Codecov Report

Merging #3928 into release/1.3 will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff              @@
##           release/1.3    #3928   +/-   ##
============================================
  Coverage        42.07%   42.07%           
============================================
  Files              129      129           
  Lines            14322    14322           
============================================
  Hits              6026     6026           
  Misses            7395     7395           
  Partials           901      901
Flag Coverage Δ
#linux 45.59% <0%> (ø) ⬆️
#windows 37.01% <ø> (ø) ⬆️
Impacted Files Coverage Δ
snapshots/btrfs/btrfs.go 57.39% <0%> (ø) ⬆️

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 e435601...e49256e. Read the comment docs.

Copy link
Copy Markdown
Member

@fuweid fuweid left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@estesp estesp merged commit b71555a into containerd:release/1.3 Jan 5, 2020
@zhsj zhsj deleted the bpo-3720 branch January 5, 2020 06:06
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.

5 participants