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

docs: add trace observation point description #23028

Merged
merged 1 commit into from Jan 19, 2023

Conversation

mainred
Copy link

@mainred mainred commented Jan 11, 2023

Please ensure your pull request adheres to the following guidelines:

  • For first time contributors, read Submitting a pull request
  • All code is covered by unit and/or runtime tests where feasible.
  • All commits contain a well written commit description including a title,
    description and a Fixes: #XXX line if the commit addresses a particular
    GitHub issue.
  • If your commit description contains a Fixes: <commit-id> tag, then
    please add the commit author[s] as reviewer[s] to this issue.
  • All commits are signed off. See the section Developer’s Certificate of Origin
  • Provide a title or release-note blurb suitable for the release notes.
  • Thanks for contributing!

Fixes: #issue-number

docs: add trace observation point description

@mainred mainred requested a review from a team as a code owner January 11, 2023 05:43
@mainred mainred requested a review from gandro January 11, 2023 05:43
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jan 11, 2023
@github-actions github-actions bot added the kind/community-contribution This was a contribution made by a community member. label Jan 11, 2023
@mainred mainred changed the title docs: add trace observation point description WIP: docs: add trace observation point description Jan 11, 2023
@mainred mainred changed the title WIP: docs: add trace observation point description docs: add trace observation point description Jan 11, 2023
@rolinh rolinh added the release-note/misc This PR makes changes that have no direct user impact. label Jan 11, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jan 11, 2023
Copy link
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

Thanks a lot, this is going to be very helpful. I've left two minor comments

api/v1/flow/flow.proto Outdated Show resolved Hide resolved
api/v1/flow/flow.proto Outdated Show resolved Hide resolved
Copy link
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

Thanks!

@gandro
Copy link
Member

gandro commented Jan 12, 2023

/test

Copy link
Member

@pchaigno pchaigno left a comment

Choose a reason for hiding this comment

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

I found a couple typos below, but otherwise looks good to me. Thanks!

api/v1/flow/README.md Outdated Show resolved Hide resolved
api/v1/flow/README.md Outdated Show resolved Hide resolved
api/v1/flow/README.md Outdated Show resolved Hide resolved
@pchaigno
Copy link
Member

Please squash all commits into the first.

@mainred
Copy link
Author

mainred commented Jan 13, 2023

/test

@mainred
Copy link
Author

mainred commented Jan 13, 2023

Travis CI - Pull Request failed for some network failure

E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/universe/n/ncurses/libncurses5_6.2-0ubuntu2_arm64.deb  Unable to connect to ports.ubuntu.com:http: [IP: 185.125.190.36 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
apt-get.diagnostics
apt-get install failed
The command "sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install kernel-package gnupg libncurses5" failed and exited with 100 during .

@gandro
Copy link
Member

gandro commented Jan 16, 2023

Marking this ready-to-merge. This PR only updates protobuf schema comments, which are validated by performing a make build in Travis. Since Travis is green now, this is good to go.

@gandro gandro added ready-to-merge This PR has passed all tests and received consensus from code owners to merge. and removed ready-to-merge This PR has passed all tests and received consensus from code owners to merge. labels Jan 16, 2023
@gandro
Copy link
Member

gandro commented Jan 18, 2023

I've removed the ready-to-merge label based on (what I think is good) out-of-band feedback by @joestringer. He noticed that the language is a bit inconsistent - there are three different sets of wording being used for different locations, eg "originated", "coming into", "passed from". However, there are only two broad actions: Transmit (TO_) and Receive (FROM_) - thus the suggestion to make the wording a bit more consistent and reduce the set of verbs.

That's me paraphrasing him - I'll let @joestringer chime in as well if he wants.

@mainred Do you think you could improve the language a bit to make sure we're using more consistent verbs (i.e. only use transmit or receive)?

In terms of the used nouns, the usage seems already pretty consistent to me. The only asymmetry I've found is regarding the tunnel device, from-overlay mentions coming into the node from the tunnel device., while to-overlay only says transmitted through the tunnel device. without mentioning that they are also leaving the node.

@mainred mainred force-pushed the add-trace-obs-point-desc branch 2 times, most recently from c444cb6 to 318a9fa Compare January 18, 2023 13:43
@mainred
Copy link
Author

mainred commented Jan 18, 2023

@gandro Thanks for being thoughtful. I totally agree with you, as this is also customer-facing, using consistent phrases can bring less confusion to understanding different obs points. Updated the code to use "are received by" and "are transmitted from"

Copy link
Member

@joestringer joestringer left a comment

Choose a reason for hiding this comment

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

Thanks, this is a lot more consistent and IMHO easier to reason about.

There's one more subtle distinction that I'd like to make if we are going to define the semantics like this. See the comments below. This applies to all of the cases, TO_* -> transmit, FROM_* -> receive.

api/v1/flow/flow.proto Outdated Show resolved Hide resolved
api/v1/flow/flow.proto Outdated Show resolved Hide resolved
api/v1/flow/README.md Outdated Show resolved Hide resolved
api/v1/flow/README.md Outdated Show resolved Hide resolved
Signed-off-by: Qingchuan Hao <qingchuan.hao@microsoft.com>
Copy link
Member

@joestringer joestringer left a comment

Choose a reason for hiding this comment

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

LGTM thanks.

@joestringer joestringer merged commit 156a4d1 into cilium:master Jan 19, 2023
@mainred mainred deleted the add-trace-obs-point-desc branch January 29, 2023 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/community-contribution This was a contribution made by a community member. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants