-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[BEAM-13786] [Playground] [Bugfix] Update CI/CD to verify only single-file examples #16701
[BEAM-13786] [Playground] [Bugfix] Update CI/CD to verify only single-file examples #16701
Conversation
playground/infrastructure/ci_cd.py
Outdated
single_file_examples = [example for example in examples | ||
if example.tag.multifile is False] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move this part to the ci_helper.verify_examples
function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
single_file_examples = [ | ||
example for example in examples if example.tag.multifile is False | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about use filter function ro filtering?
single_file_examples = [ | |
example for example in examples if example.tag.multifile is False | |
] | |
single_file_examples = filter(lambda example: example.multifile, examples) |
Just remember, that filter returns a filter object, that can be iterated, but is not available for slices
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
single_file_examples = [example for example in examples | ||
if example.tag.multifile is False] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same, can we use the filter for filtering? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
logging.info("Start of executing Playground examples ...") | ||
asyncio.run(self._get_outputs(examples)) | ||
logging.info("Finish of executing Playground examples") | ||
single_file_examples = list(filter( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need cast from filter results to list if you plan to iterate through.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see it required to be cast to list :) LGTM then
R: @pabloem |
lgtm thanks! |
[BEAM-13786]
Update CI/CD to verify only single-file examples
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username
).[BEAM-XXX] Fixes bug in ApproximateQuantiles
, where you replaceBEAM-XXX
with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.CHANGES.md
with noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
ValidatesRunner
compliance status (on master branch)Examples testing status on various runners
Post-Commit SDK/Transform Integration Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI.