elegant-family-19982
03/23/2025, 8:53 PMload_backends_integration_test.py
is so slow? I am running all tests in the suite from main
and it’s still going after >2700 seconds (set max timeout 10000 seconds):
⠒ 2702.05s Run Pytest for src/python/pants/init/load_backends_integration_test.py:tests
Looking at the code my guess is that it’s the very last test, which is parameterized and loads each discovered backend one at a time, but my local machine is notably underpowered so wanted to check if this is expected.wide-midnight-78598
03/23/2025, 9:01 PMhappy-kitchen-89482
03/23/2025, 9:23 PMhappy-kitchen-89482
03/23/2025, 9:23 PMelegant-family-19982
03/23/2025, 9:27 PMwide-midnight-78598
03/23/2025, 10:52 PMtest ::
skips tests where certain dependencies are missing (e.g. docker or go or terraform), but CI can’t skip any. I think this backends test would fall into that categoryelegant-family-19982
03/23/2025, 11:07 PMelegant-family-19982
03/23/2025, 11:07 PM✕ .github/workflows/tests/auto_cherry_picker_smoke_test.py failed after 3 attempts in 2.26s.
✕ src/python/pants/backend/docker/goals/run_image_integration_test.py:tests failed after 3 attempts in 43.41s.
✕ src/python/pants/backend/docker/util_rules/docker_build_context_test.py:tests failed after 3 attempts in 128.18s.
✕ src/python/pants/backend/go/util_rules/cgo_test.py:tests failed after 3 attempts in 105.63s.
✕ src/python/pants/backend/helm/resolve/fetch_test.py:tests failed after 3 attempts in 9.68s.
✕ src/python/pants/backend/python/goals/package_pex_binary_integration_test.py:tests failed after 3 attempts in 103.72s.
✕ src/python/pants/backend/rust/lint/rustfmt/rules_integration_test.py:tests failed after 3 attempts in 7.80s.
✕ src/python/pants/core/util_rules/archive_test.py:tests failed after 3 attempts in 23.44s.
elegant-family-19982
03/23/2025, 11:10 PME ValueError: cgo binary link failed:
E stdout:
E
E stderr:
E /usr/bin/ld: gopath/pkg/mod/github.com/confluentinc/confluent-kafka-go@v1.9.2/kafka/librdkafka_vendor/librdkafka_glibc_linux.a(rdkafka_error.o): Relocations in generic ELF (EM: 62)
E /usr/bin/ld: gopath/pkg/mod/github.com/confluentinc/confluent-kafka-go@v1.9.2/kafka/librdkafka_vendor/librdkafka_glibc_linux.a(rdkafka_error.o): Relocations in generic ELF (EM: 62)
E /usr/bin/ld: gopath/pkg/mod/github.com/confluentinc/confluent-kafka-go@v1.9.2/kafka/librdkafka_vendor/librdkafka_glibc_linux.a: error adding symbols: file in wrong format
broad-processor-92400
03/23/2025, 11:21 PMpants test ::
, and instead do a combination of:
• pants test path/to/dir::
(if there's a whole directory with potentially relevant tests)
• pants test path/to/file_test.py
(if there's a specific file of interest)
• get things "probably working" via the above, and then push to a draft PR and let it catch any unexpectedly-relevant test failureshappy-kitchen-89482
03/23/2025, 11:25 PMbroad-processor-92400
03/23/2025, 11:27 PMpants test ::
locally the "first" time, to seed the cache is quite burden-ful (and one would have to pay it again, any time one pulled sufficiently-large changes from main
).)broad-processor-92400
03/23/2025, 11:28 PMelegant-family-19982
03/23/2025, 11:30 PMpants test ::
is something you want to do regularly and I’ve made good use of the sub-setting as part of this exercise, just that if you do, it would be nice if it did not throw up red herrings.elegant-family-19982
03/23/2025, 11:32 PMwide-midnight-78598
03/23/2025, 11:38 PMpants test ::
the overwhelming majority of the time, but with the call by name entering core territory soon, I’ll be running those kinda tests more than I would like - would be nice if the ones I ran had a hope and a prayer of actually working locally 😆