Skip to content

Conversation

@rsemenov
Copy link
Contributor

@rsemenov rsemenov commented Jun 30, 2021

Stack from ghstack:

  • Added a new template for bazel GH Actions workflow
  • Simplified the workflow based on @malfet's suggestion by combining build and test jobs into one as we only run a small subset of tests for bazel
  • Tested the run to make sure it succeeds
  • Build step takes 4 minutes, test step takes 7 minutes

The downside of this approach is that I duplicated some of the jobs in a new template file. Alternative solution would be to use something like this https://jinja.palletsprojects.com/en/3.0.x/templates/#template-inheritance, however, that is better to be done in a separate PR as linux and windows workflows would need to be changed. Another solution is to use a bunch of if else statements in a linux workflow template to accommodate bazel build as part of it, but this seems not as clean as template inheritance with jinja.

Here is a link to the latest bazel run with this change https://github.com/pytorch/pytorch/actions/runs/1004656584

Differential Revision: D29562260

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Jun 30, 2021

💊 CI failures summary and remediations

As of commit 17c08e8 (more details on the Dr. CI page and at hud.pytorch.org/pr/61039):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


Preview docs built from this PR

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@codecov
Copy link

codecov bot commented Jun 30, 2021

Codecov Report

Merging #61039 (953a17c) into gh/rsemenov/1/base (8780f8f) will increase coverage by 0.01%.
The diff coverage is n/a.

❗ Current head 953a17c differs from pull request most recent head 036fe38. Consider uploading reports for the commit 036fe38 to get more accurate results

@@                  Coverage Diff                   @@
##           gh/rsemenov/1/base   #61039      +/-   ##
======================================================
+ Coverage               76.25%   76.26%   +0.01%     
======================================================
  Files                    2062     2062              
  Lines                  205602   205602              
======================================================
+ Hits                   156784   156805      +21     
+ Misses                  48818    48797      -21     

@rsemenov rsemenov requested review from malfet and seemethere July 6, 2021 13:49
- Added a new template for bazel GH Actions workflow
- Simplified the workflow based on @malfet's suggestion by combining build and test jobs into one as we only run a small subset of tests for bazel
- Tested the run to make sure it succeeds
- Build step takes 4 minutes, test step takes 7 minutes

The downside of this approach is that I duplicated some of the jobs in a new template file.  Alternative solution would be to use something like this https://jinja.palletsprojects.com/en/3.0.x/templates/#template-inheritance, however, that is better to be done in a separate PR as linux and windows workflows would need to be changed. Another solution is to use a bunch of if else statements in a linux workflow template to accommodate bazel build as part of it, but this seems not as clean as template inheritance with jinja.  


[ghstack-poisoned]
@rsemenov rsemenov marked this pull request as ready for review July 6, 2021 14:58
rsemenov added 2 commits July 6, 2021 08:13
- Added a new template for bazel GH Actions workflow
- Simplified the workflow based on @malfet's suggestion by combining build and test jobs into one as we only run a small subset of tests for bazel
- Tested the run to make sure it succeeds
- Build step takes 4 minutes, test step takes 7 minutes

The downside of this approach is that I duplicated some of the jobs in a new template file.  Alternative solution would be to use something like this https://jinja.palletsprojects.com/en/3.0.x/templates/#template-inheritance, however, that is better to be done in a separate PR as linux and windows workflows would need to be changed. Another solution is to use a bunch of if else statements in a linux workflow template to accommodate bazel build as part of it, but this seems not as clean as template inheritance with jinja.  

Here is a link to the latest bazel run with this change https://github.com/pytorch/pytorch/actions/runs/1004656584

[ghstack-poisoned]
- Added a new template for bazel GH Actions workflow
- Simplified the workflow based on @malfet's suggestion by combining build and test jobs into one as we only run a small subset of tests for bazel
- Tested the run to make sure it succeeds
- Build step takes 4 minutes, test step takes 7 minutes

The downside of this approach is that I duplicated some of the jobs in a new template file.  Alternative solution would be to use something like this https://jinja.palletsprojects.com/en/3.0.x/templates/#template-inheritance, however, that is better to be done in a separate PR as linux and windows workflows would need to be changed. Another solution is to use a bunch of if else statements in a linux workflow template to accommodate bazel build as part of it, but this seems not as clean as template inheritance with jinja.  

Here is a link to the latest bazel run with this change https://github.com/pytorch/pytorch/actions/runs/1004656584

[ghstack-poisoned]
- Added a new template for bazel GH Actions workflow
- Simplified the workflow based on @malfet's suggestion by combining build and test jobs into one as we only run a small subset of tests for bazel
- Tested the run to make sure it succeeds
- Build step takes 4 minutes, test step takes 7 minutes

The downside of this approach is that I duplicated some of the jobs in a new template file.  Alternative solution would be to use something like this https://jinja.palletsprojects.com/en/3.0.x/templates/#template-inheritance, however, that is better to be done in a separate PR as linux and windows workflows would need to be changed. Another solution is to use a bunch of if else statements in a linux workflow template to accommodate bazel build as part of it, but this seems not as clean as template inheritance with jinja.  

Here is a link to the latest bazel run with this change https://github.com/pytorch/pytorch/actions/runs/1004656584

[ghstack-poisoned]
- Added a new template for bazel GH Actions workflow
- Simplified the workflow based on @malfet's suggestion by combining build and test jobs into one as we only run a small subset of tests for bazel
- Tested the run to make sure it succeeds
- Build step takes 4 minutes, test step takes 7 minutes

The downside of this approach is that I duplicated some of the jobs in a new template file.  Alternative solution would be to use something like this https://jinja.palletsprojects.com/en/3.0.x/templates/#template-inheritance, however, that is better to be done in a separate PR as linux and windows workflows would need to be changed. Another solution is to use a bunch of if else statements in a linux workflow template to accommodate bazel build as part of it, but this seems not as clean as template inheritance with jinja.  

Here is a link to the latest bazel run with this change https://github.com/pytorch/pytorch/actions/runs/1004656584

[ghstack-poisoned]
@rsemenov
Copy link
Contributor Author

rsemenov commented Jul 6, 2021

@rsemenov has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@rsemenov merged this pull request in 5da507b.

@facebook-github-bot facebook-github-bot deleted the gh/rsemenov/1/head branch July 10, 2021 14:16
jasperzhong pushed a commit to jasperzhong/swift that referenced this pull request Nov 25, 2021
ghstack-source-id: f5b9f0d
Pull Request resolved: pytorch/pytorch#61039
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants