Skip to content

Commit a3985e7

Browse files
Revert "Set the "build_jobs" on concretization/generate for CI (spack#47660)" (spack#48028)
This reverts commit 316dcc1.
1 parent ae28528 commit a3985e7

File tree

5 files changed

+7
-36
lines changed

5 files changed

+7
-36
lines changed

lib/spack/spack/cmd/ci.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import spack.ci as spack_ci
1818
import spack.cmd
1919
import spack.cmd.buildcache as buildcache
20-
import spack.cmd.common.arguments
2120
import spack.config as cfg
2221
import spack.environment as ev
2322
import spack.hash_types as ht
@@ -117,9 +116,6 @@ def setup_parser(subparser):
117116
)
118117
generate.set_defaults(func=ci_generate)
119118

120-
spack.cmd.common.arguments.add_concretizer_args(generate)
121-
spack.cmd.common.arguments.add_common_arguments(generate, ["jobs"])
122-
123119
# Rebuild the buildcache index associated with the mirror in the
124120
# active, gitlab-enabled environment.
125121
index = subparsers.add_parser(
@@ -149,7 +145,6 @@ def setup_parser(subparser):
149145
help="stop stand-alone tests after the first failure",
150146
)
151147
rebuild.set_defaults(func=ci_rebuild)
152-
spack.cmd.common.arguments.add_common_arguments(rebuild, ["jobs"])
153148

154149
# Facilitate reproduction of a failed CI build job
155150
reproduce = subparsers.add_parser(
@@ -445,9 +440,6 @@ def ci_rebuild(args):
445440
if not verify_binaries:
446441
install_args.append("--no-check-signature")
447442

448-
if args.jobs:
449-
install_args.append("-j{args.jobs}")
450-
451443
slash_hash = spack_ci.win_quote("/" + job_spec.dag_hash())
452444

453445
# Arguments when installing the root from sources

share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ default:
145145
--config-scope "${SPACK_CI_CONFIG_ROOT}"
146146
--config-scope "${SPACK_CI_CONFIG_ROOT}/${SPACK_TARGET_PLATFORM}"
147147
--config-scope "${SPACK_CI_CONFIG_ROOT}/${SPACK_TARGET_PLATFORM}/${SPACK_TARGET_ARCH}"
148-
ci generate --check-index-only -j ${SPACK_CONCRETIZE_JOBS}
148+
ci generate --check-index-only
149149
--artifacts-root "${CI_PROJECT_DIR}/jobs_scratch_dir"
150150
--output-file "${CI_PROJECT_DIR}/jobs_scratch_dir/cloud-ci-pipeline.yml"
151151
artifacts:
@@ -155,7 +155,6 @@ default:
155155
- "${CI_PROJECT_DIR}/tmp/_user_cache/cache/providers"
156156
- "${CI_PROJECT_DIR}/tmp/_user_cache/cache/tags"
157157
variables:
158-
SPACK_CONCRETIZE_JOBS: 4
159158
KUBERNETES_CPU_REQUEST: 4000m
160159
KUBERNETES_MEMORY_REQUEST: 16G
161160
# avoid moving targets like branches and tags
@@ -409,8 +408,6 @@ e4s-oneapi-build:
409408
extends: [".linux_power"]
410409
variables:
411410
SPACK_CI_STACK_NAME: e4s-power
412-
# Override concretization pool for metal runners
413-
SPACK_CONCRETIZE_JOBS: 16
414411

415412
e4s-power-generate:
416413
extends: [ ".e4s-power", ".generate-x86_64", ".e4s-power-generate-tags-and-image"]
@@ -864,10 +861,6 @@ aws-pcluster-build-neoverse_v1:
864861
# Cray definitions
865862
.generate-cray:
866863
extends: [ ".generate-common", ".base-job" ]
867-
variables:
868-
# Override concretization pool for metal runners
869-
SPACK_CONCRETIZE_JOBS: 16
870-
871864
before_script:
872865
- echo $PATH
873866
- module avail

share/spack/gitlab/cloud_pipelines/configs/ci.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ ci:
1515
- - touch ${SPACK_USER_CACHE_PATH}/cache/*/* # bump mtime of cache so it is not invalidated
1616
- - spack env activate --without-view ${SPACK_CONCRETE_ENV_DIR}
1717
- spack compiler list
18+
- if [ -n "$SPACK_BUILD_JOBS" ]; then spack config add "config:build_jobs:$SPACK_BUILD_JOBS"; fi
1819
- - mkdir -p ${SPACK_ARTIFACTS_ROOT}/user_data
1920
# AWS runners mount E4S public key (verification), UO runners mount public/private (signing/verification)
2021
- - k=$CI_GPG_KEY_ROOT/e4s.gpg; [[ -r $k ]] && spack gpg trust $k
@@ -23,7 +24,7 @@ ci:
2324
- k=$CI_GPG_KEY_ROOT/spack_public_key.gpg; [[ -r $k ]] && spack gpg trust $k
2425
script::
2526
- - spack config blame mirrors
26-
- spack --color=always --backtrace ci rebuild -j ${SPACK_BUILD_JOBS} --tests > >(tee ${SPACK_ARTIFACTS_ROOT}/user_data/pipeline_out.txt) 2> >(tee ${SPACK_ARTIFACTS_ROOT}/user_data/pipeline_err.txt >&2)
27+
- spack --color=always --backtrace ci rebuild --tests > >(tee ${SPACK_ARTIFACTS_ROOT}/user_data/pipeline_out.txt) 2> >(tee ${SPACK_ARTIFACTS_ROOT}/user_data/pipeline_err.txt >&2)
2728
after_script:
2829
- - cat /proc/loadavg || true
2930
- cat /proc/meminfo | grep 'MemTotal\|MemFree' || true
@@ -33,9 +34,6 @@ ci:
3334
${SPACK_ARTIFACTS_ROOT}/user_data/install_times.json || true
3435
variables:
3536
CI_JOB_SIZE: "default"
36-
SPACK_BUILD_JOBS: "4"
37-
KUBERNETES_CPU_REQUEST: "4000m"
38-
KUBERNETES_MEMORY_REQUEST: "16G"
3937
CI_GPG_KEY_ROOT: /mnt/key
4038
# SPACK_VERBOSE_SCRIPT: "1"
4139
id_tokens:

share/spack/spack-completion.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,15 +693,15 @@ _spack_ci() {
693693
}
694694

695695
_spack_ci_generate() {
696-
SPACK_COMPREPLY="-h --help --output-file --optimize --dependencies --prune-dag --no-prune-dag --check-index-only --artifacts-root -U --fresh --reuse --fresh-roots --reuse-deps --deprecated -j --jobs"
696+
SPACK_COMPREPLY="-h --help --output-file --optimize --dependencies --prune-dag --no-prune-dag --check-index-only --artifacts-root"
697697
}
698698

699699
_spack_ci_rebuild_index() {
700700
SPACK_COMPREPLY="-h --help"
701701
}
702702

703703
_spack_ci_rebuild() {
704-
SPACK_COMPREPLY="-h --help -t --tests --fail-fast -j --jobs"
704+
SPACK_COMPREPLY="-h --help -t --tests --fail-fast"
705705
}
706706

707707
_spack_ci_reproduce_build() {

share/spack/spack-completion.fish

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ complete -c spack -n '__fish_spack_using_command ci' -s h -l help -f -a help
955955
complete -c spack -n '__fish_spack_using_command ci' -s h -l help -d 'show this help message and exit'
956956

957957
# spack ci generate
958-
set -g __fish_spack_optspecs_spack_ci_generate h/help output-file= optimize dependencies prune-dag no-prune-dag check-index-only artifacts-root= U/fresh reuse fresh-roots deprecated j/jobs=
958+
set -g __fish_spack_optspecs_spack_ci_generate h/help output-file= optimize dependencies prune-dag no-prune-dag check-index-only artifacts-root=
959959
complete -c spack -n '__fish_spack_using_command ci generate' -s h -l help -f -a help
960960
complete -c spack -n '__fish_spack_using_command ci generate' -s h -l help -d 'show this help message and exit'
961961
complete -c spack -n '__fish_spack_using_command ci generate' -l output-file -r -f -a output_file
@@ -972,32 +972,20 @@ complete -c spack -n '__fish_spack_using_command ci generate' -l check-index-onl
972972
complete -c spack -n '__fish_spack_using_command ci generate' -l check-index-only -d 'only check spec state from buildcache indices'
973973
complete -c spack -n '__fish_spack_using_command ci generate' -l artifacts-root -r -f -a artifacts_root
974974
complete -c spack -n '__fish_spack_using_command ci generate' -l artifacts-root -r -d 'path to the root of the artifacts directory'
975-
complete -c spack -n '__fish_spack_using_command ci generate' -s U -l fresh -f -a concretizer_reuse
976-
complete -c spack -n '__fish_spack_using_command ci generate' -s U -l fresh -d 'do not reuse installed deps; build newest configuration'
977-
complete -c spack -n '__fish_spack_using_command ci generate' -l reuse -f -a concretizer_reuse
978-
complete -c spack -n '__fish_spack_using_command ci generate' -l reuse -d 'reuse installed packages/buildcaches when possible'
979-
complete -c spack -n '__fish_spack_using_command ci generate' -l fresh-roots -l reuse-deps -f -a concretizer_reuse
980-
complete -c spack -n '__fish_spack_using_command ci generate' -l fresh-roots -l reuse-deps -d 'concretize with fresh roots and reused dependencies'
981-
complete -c spack -n '__fish_spack_using_command ci generate' -l deprecated -f -a config_deprecated
982-
complete -c spack -n '__fish_spack_using_command ci generate' -l deprecated -d 'allow concretizer to select deprecated versions'
983-
complete -c spack -n '__fish_spack_using_command ci generate' -s j -l jobs -r -f -a jobs
984-
complete -c spack -n '__fish_spack_using_command ci generate' -s j -l jobs -r -d 'explicitly set number of parallel jobs'
985975

986976
# spack ci rebuild-index
987977
set -g __fish_spack_optspecs_spack_ci_rebuild_index h/help
988978
complete -c spack -n '__fish_spack_using_command ci rebuild-index' -s h -l help -f -a help
989979
complete -c spack -n '__fish_spack_using_command ci rebuild-index' -s h -l help -d 'show this help message and exit'
990980

991981
# spack ci rebuild
992-
set -g __fish_spack_optspecs_spack_ci_rebuild h/help t/tests fail-fast j/jobs=
982+
set -g __fish_spack_optspecs_spack_ci_rebuild h/help t/tests fail-fast
993983
complete -c spack -n '__fish_spack_using_command ci rebuild' -s h -l help -f -a help
994984
complete -c spack -n '__fish_spack_using_command ci rebuild' -s h -l help -d 'show this help message and exit'
995985
complete -c spack -n '__fish_spack_using_command ci rebuild' -s t -l tests -f -a tests
996986
complete -c spack -n '__fish_spack_using_command ci rebuild' -s t -l tests -d 'run stand-alone tests after the build'
997987
complete -c spack -n '__fish_spack_using_command ci rebuild' -l fail-fast -f -a fail_fast
998988
complete -c spack -n '__fish_spack_using_command ci rebuild' -l fail-fast -d 'stop stand-alone tests after the first failure'
999-
complete -c spack -n '__fish_spack_using_command ci rebuild' -s j -l jobs -r -f -a jobs
1000-
complete -c spack -n '__fish_spack_using_command ci rebuild' -s j -l jobs -r -d 'explicitly set number of parallel jobs'
1001989

1002990
# spack ci reproduce-build
1003991
set -g __fish_spack_optspecs_spack_ci_reproduce_build h/help runtime= working-dir= s/autostart gpg-file= gpg-url=

0 commit comments

Comments
 (0)