Skip to content

Clean up CI ASAN & .bazelrc#8828

Merged
simon-mo merged 4 commits intoray-project:masterfrom
mehrdadn:ci-cleanup
Jun 16, 2020
Merged

Clean up CI ASAN & .bazelrc#8828
simon-mo merged 4 commits intoray-project:masterfrom
mehrdadn:ci-cleanup

Conversation

@mehrdadn
Copy link
Copy Markdown
Contributor

@mehrdadn mehrdadn commented Jun 8, 2020

Why are these changes needed?

ASAN and other Bazel configurations are currently scattered (in some cases, redundantly) across shell scripts and becoming difficult to reason about and maintain; they should all be in .bazelrc as much as possible.

Checks

  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/latest/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failure rates at https://ray-travis-tracker.herokuapp.com/.
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested (please justify below)

@AmplabJenkins
Copy link
Copy Markdown

Can one of the admins verify this patch?

@mehrdadn mehrdadn force-pushed the ci-cleanup branch 2 times, most recently from aca82e8 to 985cadd Compare June 8, 2020 09:27
@mehrdadn mehrdadn marked this pull request as ready for review June 8, 2020 17:17
@simon-mo simon-mo requested review from edoakes and pcmoritz June 8, 2020 20:35
@edoakes
Copy link
Copy Markdown
Collaborator

edoakes commented Jun 8, 2020

@mehrdadn this seems like a collection of unrelated fixes. Any reason these can't be separate PRs? That would be preferable.

@mehrdadn
Copy link
Copy Markdown
Contributor Author

mehrdadn commented Jun 8, 2020

@edoakes I've separated them, thanks!

@mehrdadn mehrdadn changed the title Upgrade Bazel, clean up CI & .bazelrc, and resolve some build issues Clean up CI & .bazelrc Jun 9, 2020
@mehrdadn mehrdadn changed the title Clean up CI & .bazelrc Clean up CI ASAN & .bazelrc Jun 9, 2020
@ray-project ray-project deleted a comment from AmplabJenkins Jun 9, 2020
@ray-project ray-project deleted a comment from AmplabJenkins Jun 9, 2020
@ray-project ray-project deleted a comment from AmplabJenkins Jun 9, 2020
@ray-project ray-project deleted a comment from AmplabJenkins Jun 9, 2020
@AmplabJenkins
Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/26909/
Test PASSed.

@AmplabJenkins
Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/27161/
Test PASSed.

Copy link
Copy Markdown
Contributor

@simon-mo simon-mo left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +106 to +115
translated_path=~/bazel_cache_credential.json
if [ "${OSTYPE}" = msys ]; then # On Windows, we need path translation
translated_path="$(cygpath -m -- "${translated_path}")"
fi
cat <<EOF >> "${HOME}/.bazelrc"
cat <<EOF >> ~/.bazelrc
build --google_credentials="${translated_path}"
EOF
else
echo "Using remote build cache in read-only mode." 1>&2
cat <<EOF >> "${HOME}/.bazelrc"
cat <<EOF >> ~/.bazelrc
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.

what's difference between ${HOME} and ~?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nothing of significance here; I just made that change because it's easier to read and gets rid of unnecessary quotes. But in theory, HOME is an environment variable that can be easily modified to point to anything, whereas ~ is guaranteed to expand to the home directory.

@AmplabJenkins
Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/27164/
Test PASSed.

@simon-mo simon-mo merged commit 4afa2b3 into ray-project:master Jun 16, 2020
@mehrdadn mehrdadn deleted the ci-cleanup branch June 16, 2020 00:28
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.

5 participants