Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kolyshkin
Copy link
Collaborator

@kolyshkin kolyshkin commented Nov 13, 2020

What type of PR is this?

/kind ci

What this PR does / why we need it:

A few minor fixes and improvements to test/devices.bats. Please see individual commits for details.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

This saves some time (a few seconds per test at least) as we avoid
running setup_test (and cleanup_test has nothing to clean up), and
removes some code duplication.

Signed-off-by: Kir Kolyshkin <[email protected]>
@openshift-ci-robot openshift-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Nov 13, 2020
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 13, 2020
@haircommander
Copy link
Member

/approve
LGTM

@codecov
Copy link

codecov bot commented Nov 13, 2020

Codecov Report

Merging #4369 (b3000eb) into master (48ee902) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #4369   +/-   ##
=======================================
  Coverage   39.29%   39.29%           
=======================================
  Files         112      112           
  Lines        8835     8835           
=======================================
  Hits         3472     3472           
  Misses       4977     4977           
  Partials      386      386           

...and add a status check to one case where we use run, to make it
more obvious that `run` is really needed here.

Signed-off-by: Kir Kolyshkin <[email protected]>
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haircommander, kolyshkin, mrunalp

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [haircommander,kolyshkin,mrunalp]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kolyshkin
Copy link
Collaborator Author

/retest

@kolyshkin
Copy link
Collaborator Author

OK, we need to fix the test to use a device other than /dev/loop-control, as it is not supposed to be read from or written to (it's used with ioctls).

not ok 80 additional devices permissions
# (in test file ./devices.bats, line 79)
#   `[[ "$output" == *"Invalid argument"* ]]' failed
# time="2020-11-14T04:11:21Z" level=info msg="Starting CRI-O, version: 1.20.0-dev, git: 245ed8e754e9e084519dc9545d071cf06a1509c7(dirty)"
# level=info msg="Using default capabilities: CAP_CHOWN, CAP_DAC_OVERRIDE, CAP_FSETID, CAP_FOWNER, CAP_SETGID, CAP_SETUID, CAP_SETPCAP, CAP_NET_BIND_SERVICE, CAP_KILL"
# 2bcf6fb7938c51d616187edc92d1fd7d2f22b602d743cf4b0e18ac759fc6a609
# /dev/loop-control

So adding WIP for now.

@kolyshkin kolyshkin changed the title test/devices.bats: nits [WIP] test/devices.bats: nits Nov 16, 2020
@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 16, 2020
Using /dev/loop-control is problematic since it is not supposed
to be read from or written to.

Use /dev/kmsg, and actually enable the write test.

Signed-off-by: Kir Kolyshkin <[email protected]>
@kolyshkin
Copy link
Collaborator Author

/dev/kmsg seems like a good fit. Updated.

@kolyshkin
Copy link
Collaborator Author

Seems like some tests failed to restart after a force push

/retest

@kolyshkin
Copy link
Collaborator Author

/retest

(e2e-aws is still supposed to fail)

@kolyshkin kolyshkin changed the title [WIP] test/devices.bats: nits test/devices.bats: nits Nov 16, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 16, 2020
@kolyshkin
Copy link
Collaborator Author

/kind ci

@openshift-ci-robot openshift-ci-robot added the kind/ci Categorizes issue or PR as related to CI label Nov 16, 2020
@kolyshkin
Copy link
Collaborator Author

This one is ready

@kolyshkin
Copy link
Collaborator Author

/test e2e-aws

@kolyshkin
Copy link
Collaborator Author

/test e2e-aws

@haircommander
Copy link
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 18, 2020
@haircommander
Copy link
Member

/retest

@kolyshkin
Copy link
Collaborator Author

OK it seems that openshift/release#13708 was a mistake :(

Opened a revert PR: openshift/release#13736

@kolyshkin
Copy link
Collaborator Author

/retest

1 similar comment
@kolyshkin
Copy link
Collaborator Author

/retest

@kolyshkin
Copy link
Collaborator Author

Same failure in e2e-agnistic and images:

the build machine-os-content failed after 2m14s with reason DockerBuildFailed: Dockerfile build strategy has failed.

Error: Failed to synchronize cache for repo 'updates'
subprocess exited with status 1
subprocess exited with status 1
STEP 5: FROM image-registry.openshift-image->registry.svc:5...3fc231a7ed11a3cf5a3be7574f867b84455890a6389e15fc14c84621283
error: build error: error building at STEP "RUN set -x && ...-ci-dev overlay RPMs" --branch=cri-o-ci-dev": exit status 1

/test images
/test e2e-agnostic

@kolyshkin
Copy link
Collaborator Author

/retest

(two jobs never reported status back, and e2e-agnostic got many failures)

@kolyshkin
Copy link
Collaborator Author

/test e2e-agnostic

4 similar comments
@kolyshkin
Copy link
Collaborator Author

/test e2e-agnostic

@kolyshkin
Copy link
Collaborator Author

/test e2e-agnostic

@kolyshkin
Copy link
Collaborator Author

/test e2e-agnostic

@kolyshkin
Copy link
Collaborator Author

/test e2e-agnostic

@kolyshkin
Copy link
Collaborator Author

/retest

@kolyshkin
Copy link
Collaborator Author

/test e2e-agnostic

@kolyshkin
Copy link
Collaborator Author

/test critest_fedora

@openshift-merge-robot openshift-merge-robot merged commit 6989674 into cri-o:master Dec 8, 2020
@haircommander
Copy link
Member

/cherry-pick release-1.20

@openshift-cherrypick-robot

@haircommander: new pull request created: #4418

Details

In response to this:

/cherry-pick release-1.20

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. kind/ci Categorizes issue or PR as related to CI kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants