Skip to content

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

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

Workaround for CI gcc build error with long argument list#16484
yanavlasov merged 2 commits intoenvoyproxy:mainfrom
yanavlasov:gcc-ci-fix

Conversation

@yanavlasov
Copy link
Copy Markdown
Contributor

@yanavlasov yanavlasov commented May 13, 2021

Issue: #16196
Signed-off-by: Yan Avlasov yavlasov@google.com

@yanavlasov
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Yan Avlasov <yavlasov@google.com>
lizan
lizan previously approved these changes May 13, 2021
Signed-off-by: Yan Avlasov <yavlasov@google.com>
Copy link
Copy Markdown
Contributor

@antoniovicente antoniovicente left a comment

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.

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