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
Add new flag "download_combined_frontend_spec_file" to frontend test execution file #15635
Conversation
@DubeySandeep PTAL |
@gp201 Is it possible to get it reviewed from the frontend or testing team? (I've less experience around the changes in this PR, I'm fine with merging it once someone from the fronted/test team approves the PR) |
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.
@gp201 I took a quick pass and left few comments, PTAL!
scripts/run_frontend_tests.py
Outdated
@@ -140,6 +145,11 @@ def main(args: Optional[Sequence[str]] = None) -> None: | |||
# The value of `process.stdout` should not be None since we passed | |||
# the `stdout=subprocess.PIPE` argument to `Popen`. | |||
assert task.stdout is not None | |||
# Prevents the wget command from running multiple times. | |||
combined_test_spec_downloaded = 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.
combined_test_spec_downloaded = False | |
combined_test_spec_downloaded = False |
combined_test_spec_downloaded = False | |
combined_spec_file_started_downloading = 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.
Done
scripts/run_frontend_tests.py
Outdated
if download_task: | ||
# Wait for the wget command to download the combined-tests.spec.js | ||
# file to complete. | ||
download_task.wait() |
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.
Is there any issue with calling wait just after running the wget command?
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.
No, moved the line.
scripts/run_frontend_tests.py
Outdated
action='store_true' | ||
) | ||
_PARSER.add_argument( | ||
'--download_combined_frontend_file', |
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.
is it the spec file or the frontend file? (I see spec_file in variable names below)
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.
The spec file. Changed the argument.
@DubeySandeep PTAL |
Unassigning @DubeySandeep since they have already approved the PR. |
Hi @gp201, this PR is ready to be merged. Please address any remaining comments prior to merging, and feel free to merge this PR once the CI checks pass and you're happy with it. Thanks! |
Overview
download_combined_frontend_file
is added to allow developers to download thecombined-tests.spec.js
to allow easier debugging.Essential Checklist
Proof that changes are correct
Proof of changes on desktop with slow/throttled network
Proof of changes on mobile phone
Proof of changes in Arabic language
PR Pointers