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 watch_file_pattern condition in RunInference #28948

Merged
merged 4 commits into from
Oct 13, 2023

Conversation

AnandInguva
Copy link
Contributor

@AnandInguva AnandInguva commented Oct 11, 2023

watch_file_pattern arg, even if mentioned in the RunInference had no affect. This PR fixes it.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: 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, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

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)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@AnandInguva
Copy link
Contributor Author

R: @damccorm

We missed this bug. I was running a pipeline with auto model refresh and found this now.

@github-actions
Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

Merging #28948 (cee70f6) into master (104c10b) will decrease coverage by 33.76%.
Report is 14 commits behind head on master.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master   #28948       +/-   ##
===========================================
- Coverage   72.15%   38.39%   -33.76%     
===========================================
  Files         686      686               
  Lines      101590   101608       +18     
===========================================
- Hits        73301    39012    -34289     
- Misses      26713    61018    +34305     
- Partials     1576     1578        +2     
Flag Coverage Δ
python 30.01% <ø> (-52.58%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
sdks/python/apache_beam/ml/inference/base.py 0.00% <ø> (-93.52%) ⬇️

... and 313 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

CHANGES.md Show resolved Hide resolved
@@ -1131,7 +1131,7 @@ def expand(
self._inference_args,
beam.pvalue.AsSingleton(
self._model_metadata_pcoll,
) if self._enable_side_input_loading else None).with_resource_hints(
) if self._model_metadata_pcoll else None).with_resource_hints(
Copy link
Contributor

Choose a reason for hiding this comment

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

_enable_side_input_loading is used elsewhere; can we update those references as well? Might make sense to remove it as a class variable and just make it a local variable that we can use in expand

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@damccorm damccorm left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM once tests pass

@AnandInguva
Copy link
Contributor Author

Run Python_Coverage PreCommit

@AnandInguva AnandInguva merged commit dad13cf into apache:master Oct 13, 2023
77 of 78 checks passed
damondouglas pushed a commit to damondouglas/beam that referenced this pull request Oct 16, 2023
* Fix bug for watch_file_pattern

* Add fix to CHANGES.md

* Remove _enable_side_input_loading flag

* Add tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants