[
https://issues.apache.org/jira/browse/BEAM-13544?focusedWorklogId=707312&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-707312
]
ASF GitHub Bot logged work on BEAM-13544:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 12/Jan/22 07:45
Start Date: 12/Jan/22 07:45
Worklog Time Spent: 10m
Work Description: daria-malkova commented on a change in pull request
#16486:
URL: https://github.com/apache/beam/pull/16486#discussion_r782779320
##########
File path: playground/infrastructure/ci_cd.py
##########
@@ -77,11 +78,19 @@ def _check_envs():
def _run_ci_cd(step: config.Config.CI_CD_LITERAL, sdk: Sdk):
supported_categories = get_supported_categories(categories_file)
+ logging.info("Start of searching Playground examples ...")
examples = find_examples(root_dir, supported_categories, sdk)
+ logging.info("Finish of searching Playground examples")
+ logging.info("Count of found Playground examples: %s", len(examples))
Review comment:
Count -> Number will be better
##########
File path: playground/infrastructure/cd_helper.py
##########
@@ -44,8 +46,13 @@ def store_examples(self, examples: List[Example]):
"""
Store beam examples and their output in the Google Cloud.
"""
+ logger.info("Start of executing Playground examples ...")
asyncio.run(self._get_outputs(examples))
+ logger.info("Start of executing Playground examples ...")
Review comment:
It is the same as above on line 49, is it correct?
##########
File path: playground/infrastructure/ci_helper.py
##########
@@ -77,13 +79,15 @@ async def _verify_examples_status(self, examples:
List[Example]):
elif example.status == STATUS_RUN_TIMEOUT:
logging.error("Example: %s failed because of timeout",
example.filepath)
elif example.status == STATUS_COMPILE_ERROR:
- err = await client.get_compile_output(example.filepath)
+ err = await client.get_compile_output(example.pipeline_id)
logging.error(
"Example: %s has compilation error: %s", example.filepath, err)
elif example.status == STATUS_RUN_ERROR:
- err = await client.get_run_error(example.filepath)
- logging.error(
- "Example: %s has execution error: %s", example.filepath, err)
+ err = await client.get_run_error(example.pipeline_id)
+ logging.error("Example: %s has execution error: %s", example.filepath,
err)
verify_failed = True
+
+ logging.info("Count of verified Playground examples: %s / %s",
count_of_verified, len(examples))
+ logging.info("Count of Playground examples with some error: %s / %s",
len(examples) - count_of_verified, len(examples))
Review comment:
The same, Count -> Number
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 707312)
Time Spent: 0.5h (was: 20m)
> [Playground] Add logs to examples CI/CD to see the progress
> -----------------------------------------------------------
>
> Key: BEAM-13544
> URL: https://issues.apache.org/jira/browse/BEAM-13544
> Project: Beam
> Issue Type: Improvement
> Components: beam-playground
> Reporter: Artur Khanin
> Assignee: Aydar Zaynutdinov
> Priority: P2
> Labels: beam-playground-backend, beam-playground-sprint-7
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> As a Beam Playground {*}Contributor{*}, I want to see and clearly understand
> how many tagged examples are found and how many of them are processed during
> the check of a new PR.
> {*}Acceptance criteria{*}:
> * During the examples validation step need to print logs about how much
> files found and processed
--
This message was sent by Atlassian Jira
(v8.20.1#820001)