Skip to content

Commit

Permalink
Kill use of MODE=debug for PR wheel builds. (pantsbuild#18020)
Browse files Browse the repository at this point in the history
This had slowed the step down to the point of either timing out pantsd
starts at 60s or else timing out the whole shard at 90 minutes.
  • Loading branch information
jsirois authored Jan 17, 2023
1 parent 44ccb3f commit cc18760
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,7 @@ jobs:
- env:
PANTS_CONFIG_FILES: +['pants.ci.toml','pants.ci.aarch64.toml']
name: Build wheels
run: '[[ "${GITHUB_EVENT_NAME}" == "pull_request" ]] && export MODE=debug
USE_PY39=true ./build-support/bin/release.sh build-local-pex
run: 'USE_PY39=true ./build-support/bin/release.sh build-local-pex
./build-support/bin/release.sh build-wheels
Expand Down Expand Up @@ -446,9 +444,7 @@ jobs:
go-version: 1.17.1
- env: {}
name: Build wheels
run: '[[ "${GITHUB_EVENT_NAME}" == "pull_request" ]] && export MODE=debug
USE_PY39=true ./build-support/bin/release.sh build-local-pex
run: 'USE_PY39=true ./build-support/bin/release.sh build-local-pex
./build-support/bin/release.sh build-wheels
Expand Down Expand Up @@ -517,9 +513,7 @@ jobs:
- env:
ARCHFLAGS: -arch x86_64
name: Build wheels
run: '[[ "${GITHUB_EVENT_NAME}" == "pull_request" ]] && export MODE=debug
USE_PY39=true ./build-support/bin/release.sh build-local-pex
run: 'USE_PY39=true ./build-support/bin/release.sh build-local-pex
./build-support/bin/release.sh build-wheels
Expand Down Expand Up @@ -588,9 +582,7 @@ jobs:
- env:
ARCHFLAGS: -arch arm64
name: Build wheels
run: '[[ "${GITHUB_EVENT_NAME}" == "pull_request" ]] && export MODE=debug
USE_PY39=true ./build-support/bin/release.sh build-local-pex
run: 'USE_PY39=true ./build-support/bin/release.sh build-local-pex
USE_PY39=true ./build-support/bin/release.sh build-wheels'
Expand Down
3 changes: 0 additions & 3 deletions build-support/bin/generate_github_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,14 +462,11 @@ def bootstrap_pants(self) -> Sequence[Step]:

def build_wheels(self, python_versions: list[str]) -> list[Step]:
cmd = dedent(
# We use MODE=debug on PR builds to speed things up, given that those are
# only smoke tests of our release process.
# Note that the build-local-pex run is just for smoke-testing that pex
# builds work, and it must come *before* the build-wheels runs, since
# it cleans out `dist/deploy`, which the build-wheels runs populate for
# later attention by deploy_to_s3.py.
"""\
[[ "${GITHUB_EVENT_NAME}" == "pull_request" ]] && export MODE=debug
USE_PY39=true ./build-support/bin/release.sh build-local-pex
"""
)
Expand Down

0 comments on commit cc18760

Please sign in to comment.