-
Notifications
You must be signed in to change notification settings - Fork 69
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
fix: flakey custom unix test #615
fix: flakey custom unix test #615
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #615 +/- ##
==========================================
+ Coverage 32.51% 35.13% +2.62%
==========================================
Files 17 18 +1
Lines 1621 1386 -235
==========================================
- Hits 527 487 -40
+ Misses 1062 867 -195
Partials 32 32 ☔ View full report in Codecov by Sentry. |
@@ -2,7 +2,7 @@ | |||
|
|||
# dockerd requires containerd snapshotter support to be enabled otherwise required features for buildkit are disabled. | |||
docker build -t dind -<<EOF | |||
FROM docker:24.0-dind | |||
FROM docker:26.1.1-dind |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to pin to a patch version here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed!
@@ -13,6 +13,10 @@ sock_dir="$(mktemp -d)" | |||
|
|||
docker_custom_unix_id="$(docker run -d --privileged --mount=type=bind,source="${sock_dir}",target=/run --mount=type=volume,source="${DOCKER_DIND_VOLUME}",target=/var/lib/docker dind --group "$(id -g)")" | |||
|
|||
until [ "$(docker inspect -f '{{.State.Status}}' $docker_custom_unix_id)" == "running" ]; do | |||
sleep 0.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a timeout logic here?
5b6f6d2
to
35965b2
Compare
Signed-off-by: ashnamehrotra <ashnamehrotra@gmail.com>
Signed-off-by: ashnamehrotra <ashnamehrotra@gmail.com>
Signed-off-by: ashnamehrotra <ashnamehrotra@gmail.com>
Signed-off-by: ashnamehrotra <ashnamehrotra@gmail.com>
Signed-off-by: ashnamehrotra <ashnamehrotra@gmail.com>
Signed-off-by: ashnamehrotra <ashnamehrotra@gmail.com>
Signed-off-by: ashnamehrotra <ashnamehrotra@gmail.com>
Signed-off-by: ashnamehrotra <ashnamehrotra@gmail.com>
f8dbbd4
to
e237d8f
Compare
Describe the changes in this pull request using active verbs such as Add, Remove, Replace ...
Upgrade dind image to docker:26.1.1-dind and add wait for dind container to status Running.
Closes #609