-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[Python] Allow users to pass service name for profiler #26220
Conversation
R: @tvalentyn |
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control |
Codecov Report
@@ Coverage Diff @@
## master #26220 +/- ##
==========================================
+ Coverage 81.07% 81.08% +0.01%
==========================================
Files 469 469
Lines 67165 67199 +34
==========================================
+ Hits 54453 54488 +35
+ Misses 12712 12711 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 20 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
thanks, looking better! |
Thanks, @riteshghorse . We can merge once tests pass, feel free to ping me. Please also re-do the manual sanity check as described in the PR description just to make sure. |
Run Python_Runners PreCommit |
Run Python_Integration PreCommit |
I'm seeing a strange behavior with Dataflow UI. The profiler is generated for this Job. But the Job Info panel on job page doesn't show a job profiler tab as it should. (It shows the tab when I pass |
Let's hold merging this until we get response from UI team |
Changes are live in the UI. Updated the description with new job and profiler example. Merging this change. |
* handle service name for profiler * add debug messages * remove logs * move import statement and logs * rm unnecessary check * add helper to GCloudOption * rm lint * added new helper and unit test * separate functions * updated unit tests * refactored plus check for envvar * updated changes.md
This PR adds an experimental pipeline option for users to pass a service name for profiler. By default, cloud profiler uses
JOB_NAME
as the service name.Users can specify this as
--dataflow_service_options=enable_google_cloud_profiler=new_profiler
Sample Streaming Wordcount Job: https://pantheon.corp.google.com/dataflow/jobs/us-central1/2023-05-03_07_19_52-5911424696235359677;graphView=0?pageState=(%22dfTime%22:(%22s%22:%222023-05-03T14:19:52.473Z%22,%22e%22:%222023-05-03T14:31:38.548Z%22))&project=google.com:clouddfe
Profiler with the set name:
Fixes #26280
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
addresses #123
), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, commentfixes #<ISSUE NUMBER>
instead.CHANGES.md
with noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI.