Skip to content

Workaround for CI gcc build error with long argument list - #16484

Merged
yanavlasov merged 2 commits into
envoyproxy:mainfrom
yanavlasov:gcc-ci-fix
May 14, 2021
Merged

yanavlasov merged 2 commits into
envoyproxy:mainfrom
yanavlasov:gcc-ci-fix

Conversation

@yanavlasov

@yanavlasov yanavlasov commented May 13, 2021 •

Copy link
Copy Markdown
Contributor

Issue: #16196
Signed-off-by: Yan Avlasov [email protected]

@yanavlasov

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

lizan
lizan previously approved these changes May 13, 2021

@antoniovicente antoniovicente left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the temporary workaround, it's good to unblock PRs in progress.

Comment thread ci/do_ci.sh
bazel_with_collection test "${BAZEL_BUILD_OPTIONS[@]}" -c fastbuild "${TEST_TARGETS[@]}"
# Disable //test/config_test:example_configs_test so it does not fail because of excluded extensions above
echo "Testing ${TEST_TARGETS[*]} -//test/config_test:example_configs_test"
bazel_with_collection test "${BAZEL_BUILD_OPTIONS[@]}" -c fastbuild -- "${TEST_TARGETS[@]}" -//test/config_test:example_configs_test

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think fastbuild is hit the hardest by command line limits because of the longer bazel output paths of "fastbuild" while "opt" and "dbg" are considerably shorter: 6 characters shorter for each of the thousands of include and library paths.

Changing the gcc CI to use opt or dbg may serve as a decent work around until we find a better alternative.

@yanavlasov
yanavlasov merged commit 8c59b6a into envoyproxy:main May 14, 2021
@yanavlasov
yanavlasov deleted the gcc-ci-fix branch December 21, 2022 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants