Skip to content

Commit 9697ad1

Browse files
saitcakmakfacebook-github-bot
authored andcommitted
Use 8-core-ubuntu for conda build (#2328)
Summary: Conda build step has been hanging & getting cancelled without explanation recently. The best explanation I could get so far was: ``` The hosted runner: GitHub Actions 338 lost communication with the server. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error. ``` Assigning it a larger runner to see if it helps -- I believe the default is ~~2 core 7GB ram~~ 4 core & 16GB ram. The workflow is naturally slow, so worst case this would help with that. Update: I did not observe any noticeable improvement in the runtime after switching to 8 core workers, though I also did not observe the same error ~~(on 1 attempt so far)~~. On 8 core -- success: https://github.com/pytorch/botorch/actions/runs/8916050507/job/24486781464 On 4 core (4-core-ubuntu) -- failed with a different error than usual: https://github.com/pytorch/botorch/actions/runs/8915839684/job/24486173601 On default (also 4 core) -- observed a mixture of failures (with `Error: The operation was canceled.`) and successes. This workflow fails at 1st attempt and passes on 2nd attempt: https://github.com/pytorch/botorch/actions/runs/8908325162/job/24463737848 Two more attempts with 8 core -- both successful: - https://github.com/pytorch/botorch/actions/runs/8916396425/job/24487705712 - https://github.com/pytorch/botorch/actions/runs/8916397253/job/24487708888 Pull Request resolved: #2328 Reviewed By: Balandat Differential Revision: D56862471 Pulled By: saitcakmak fbshipit-source-id: a31cb1a0564ed04da42e0ecd7dec7f91afce6997
1 parent 9634713 commit 9697ad1

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

.github/workflows/deploy_on_release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
name: Package and deploy to pypi.org
2020
runs-on: ubuntu-latest
2121
needs: tests-and-coverage-pip
22-
strategy:
23-
fail-fast: true
2422
steps:
2523
- uses: actions/checkout@v4
2624
- name: Fetch all history for all tags and branches
@@ -48,10 +46,8 @@ jobs:
4846

4947
package-deploy-conda:
5048
name: Package conda and deploy to anaconda.org
51-
runs-on: ubuntu-latest
49+
runs-on: 8-core-ubuntu
5250
needs: tests-and-coverage-pip
53-
strategy:
54-
fail-fast: true
5551
steps:
5652
- uses: actions/checkout@v4
5753
- uses: conda-incubator/setup-miniconda@v3

.github/workflows/nightly.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818
package-test-deploy-pypi:
1919
name: Package and test deployment to test.pypi.org
2020
runs-on: ubuntu-latest
21-
strategy:
22-
fail-fast: true
2321
steps:
2422
- uses: actions/checkout@v4
2523
- name: Fetch all history for all tags and branches
@@ -64,9 +62,7 @@ jobs:
6462

6563
package-conda:
6664
name: Test conda build
67-
runs-on: ubuntu-latest
68-
strategy:
69-
fail-fast: true
65+
runs-on: 8-core-ubuntu
7066
steps:
7167
- uses: actions/checkout@v4
7268
- uses: conda-incubator/setup-miniconda@v3

0 commit comments

Comments
 (0)