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

fix: --pid=host tests #8

Merged
merged 2 commits into from
Nov 30, 2022
Merged

Conversation

AnqiPang
Copy link
Contributor

Issue #, if available:

Description of changes:
Fix the GitHub issue that --pid=host test sometimes fails.
Add a spec for --test=container:.
Testing done:
Tests passed locally.

  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Signed-off-by: Anqi Pang <[email protected]>
@AnqiPang AnqiPang force-pushed the anqipang/fix-pid-test branch from f53e2aa to cb5b13e Compare November 29, 2022 00:39
Copy link
Contributor

@davidhsingyuchen davidhsingyuchen left a comment

Choose a reason for hiding this comment

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

  • It seems that top is replaced with inspect. Could you elaborate more re. why that solves the issue?
  • nit: Next time maybe we can add the test case (i.e., --pid=container:<container>) in a follow-up PR to keep each PR focused (i.e., this PR only fixes the bug, nothing more).

tests/run.go Outdated Show resolved Hide resolved
tests/run.go Outdated Show resolved Hide resolved
@@ -205,11 +205,16 @@ func Run(o *option.Option) {
})

ginkgo.It("should share PID namespace with host with --pid=host", func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe that's (partly) addressed by #8 (comment)?

Copy link
Contributor

@davidhsingyuchen davidhsingyuchen left a comment

Choose a reason for hiding this comment

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

Just a reminder to cut a release and update finch accordingly, thanks!

@AnqiPang AnqiPang merged commit 77342d8 into runfinch:main Nov 30, 2022
AnqiPang pushed a commit that referenced this pull request Nov 30, 2022
🤖 I have created a release *beep* *boop*
---


##
[0.1.1](v0.1.0...v0.1.1)
(2022-11-30)


### Bug Fixes

* --pid=host tests
([#8](#8))
([77342d8](77342d8))


### Build System or External Dependencies

* **deps:** bump github.com/onsi/ginkgo/v2 from 2.5.0 to 2.5.1
([#3](#3))
([abf1f07](abf1f07))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants