Skip to content

Conversation

amarlearning
Copy link
Member

@amarlearning amarlearning commented Jun 28, 2023

Add test to verify update event handled by CRI-O

Does this PR introduce a user-facing change?

None

@openshift-ci openshift-ci bot added dco-signoff: no Indicates the PR's author has not DCO signed all their commits. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Jun 28, 2023
@openshift-ci openshift-ci bot requested review from dcbw and rajatchopra June 28, 2023 18:40
@openshift-ci openshift-ci bot added dco-signoff: yes Indicates the PR's author has DCO signed all their commits. and removed dco-signoff: no Indicates the PR's author has not DCO signed all their commits. labels Jun 28, 2023
@haircommander
Copy link
Member

/release-note-none

@openshift-ci openshift-ci bot added release-note-none Denotes a PR that doesn't merit a release note. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Jun 28, 2023
@coveralls
Copy link

coveralls commented Jun 28, 2023

Pull Request Test Coverage Report for Build 5412003644

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 66.387%

Totals Coverage Status
Change from base Build 5308798113: 0.0%
Covered Lines: 474
Relevant Lines: 714

💛 - Coveralls

@amarlearning amarlearning force-pushed the test-update-event branch 2 times, most recently from 8a37657 to 5cb0335 Compare June 29, 2023 06:00
@amarlearning amarlearning force-pushed the test-update-event branch 3 times, most recently from aeda135 to 2ca06ca Compare June 29, 2023 06:59
@amarlearning
Copy link
Member Author

amarlearning commented Jun 29, 2023

@haircommander the network config does get updated automatically when we update the config file.

@amarlearning
Copy link
Member Author

amarlearning commented Jul 9, 2023

@haircommander I have added the test to verify that when the network config file changes, the CRI-O network plugin automatically picks up the new config.

@haircommander
Copy link
Member

/approve

so has CRI-O always caught modify events or is it just now doing so? After we merge this, we can maybe add a bats test in CRI-O to check there as well e2e

@cri-o/ocicni-maintainers PTAL

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 12, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 13, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: amarlearning, haircommander, saschagrunert

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

The pull request process is described here

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

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

@saschagrunert
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 13, 2023
@openshift-merge-robot openshift-merge-robot merged commit 1f3bdb7 into cri-o:master Jul 13, 2023
@amarlearning
Copy link
Member Author

@haircommander I looked at the git history to cross-check on this and it seems like the modify event code has been there for some time.

I think it makes sense to now add a bats test in CRI-O to check there as well e2e.

@saschagrunert
Copy link
Member

saschagrunert commented Jul 13, 2023

I think it makes sense to now add a bats test in CRI-O to check there as well e2e.

@amarlearning are you going to take care of this? :)

@amarlearning
Copy link
Member Author

amarlearning commented Jul 13, 2023

inotify wirte events do tell us if a new file has been created or if there is an update in the existing file. Not sure if this was there before, they might have recently added the update events in the write method which eventually resolved the issue.

@saschagrunert I think we should cross-verify this part before we make an effort to write the bats test. Let me know what you think.

@amarlearning
Copy link
Member Author

I went through the release notes of both inotify and fsnotify to find when they added the IN_MODIFY event to the package and it seems they have added it long back. I guess we can write the bats test to catch this issue.

@saschagrunert yes, I will take care of this.

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. 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.

5 participants