Skip to content

CASSANDRA-19832: Build a public CI for Apache Cassandra Java Driver#1960

Closed
SiyaoIsHiding wants to merge 13 commits intoapache:3.xfrom
SiyaoIsHiding:asf-ci-3.x
Closed

CASSANDRA-19832: Build a public CI for Apache Cassandra Java Driver#1960
SiyaoIsHiding wants to merge 13 commits intoapache:3.xfrom
SiyaoIsHiding:asf-ci-3.x

Conversation

@SiyaoIsHiding
Copy link
Copy Markdown
Contributor

No description provided.

@SiyaoIsHiding SiyaoIsHiding changed the title Just Testing CI for 3.x CASSANDRA-19832: Build a public CI for Apache Cassandra Java Driver Sep 18, 2024
Comment on lines +58 to +60
# we need to make SSH less strict to prevent various dtests from failing when they attempt to
# git clone a given commit/tag/etc
echo 'Host *\n UserKnownHostsFile /dev/null\n StrictHostKeyChecking no' > ${BUILD_HOME}/.ssh/config
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is this needed ?

Jenkinsfile-asf Outdated
Comment on lines +65 to +67
def container_id = sh(script: "docker run -td -e TEST_JAVA_VERSION=${TEST_JAVA_VERSION} -e SERVER_VERSION=${SERVER_VERSION} -v \$(pwd):/home/docker/cassandra-java-driver apache.jfrog.io/cassan-docker/apache/cassandra-java-driver-testing-ubuntu2204 'sleep 2h'", returnStdout: true).trim()
sh "docker exec --user root $container_id bash -c \"sudo bash /home/docker/cassandra-java-driver/ci/create-user.sh docker \$(id -u) \$(id -g) /home/docker/cassandra-java-driver\""
sh "docker exec --user docker $container_id './cassandra-java-driver/ci/run-tests.sh'"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

it is also possible to put the three commands into just one sh "…" (no opinions on what is best)

how are you stopping the docker container (which by default runs for two hours…?

e.g. see here https://github.com/apache/cassandra/blob/cassandra-5.0.0/.build/docker/_docker_run.sh#L140-L141

Copy link
Copy Markdown
Member

@michaelsembwever michaelsembwever left a comment

Choose a reason for hiding this comment

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

comment about stopping docker container.
and it's worth checking what happens to folder/file permissions when running these docker command locally.

otherwise LGTM 👍

@michaelsembwever
Copy link
Copy Markdown
Member

Committed with 692a922 and 2c753aa

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.

2 participants