Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete cluster after test timeout. #6437

Merged
merged 3 commits into from
Aug 13, 2018
Merged

Conversation

jeschkies
Copy link
Contributor

Summary:
So far Jenkins kills the system test job after two hours. This also
kills our cleanup call. This patch introduces a bash timeout that still
leaves time for a cluster cleanup.

JIRA issues: MARATHON-8364

Summary:
So far Jenkins kills the system test job after two hours. This also
kills our cleanup call. This patch introduces a bash timeout that still
leaves time for a cluster cleanup.

JIRA issues: MARATHON-8364
Copy link
Collaborator

@mesosphere-ci mesosphere-ci left a comment

Choose a reason for hiding this comment

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

I'm building your change at jenkins-marathon-pipelines-PR-6437-1.

Copy link
Collaborator

@mesosphere-ci mesosphere-ci left a comment

Choose a reason for hiding this comment

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

✔ Build of #6437 completed successfully.

See details at jenkins-marathon-pipelines-PR-6437-1.

You can create a DC/OS with your patched Marathon by creating a new pull
request with the following changes in buildinfo.json:

"url": "https://s3.amazonaws.com/downloads.mesosphere.io/marathon/builds/1.7.53-c69de5faf/marathon-1.7.53-c69de5faf.tgz",
"sha1": "31a5bf25971ca939fe9de3bfa424d6e12ef7324f"

You can run system integration test changes of this PR against Marathon
master by triggering this Jenkins job with the Pull_Request_id 6437.
The job then reports back to this PR.

\\ ٩( ᐛ )و //

@jeschkies
Copy link
Contributor Author

Validate in build https://jenkins.mesosphere.com/service/jenkins/job/system-integration-tests/job/marathon-si-pr/237/.

  1. The cluster is launched.
  2. The test is killed after the timeout and exits with 137.
  3. The cluster is deleted.

Copy link
Contributor

@zen-dog zen-dog left a comment

Choose a reason for hiding this comment

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

Fix the duration and it's good to go

@@ -22,5 +22,10 @@ if ! command -v amm >/dev/null 2>&1; then
echo "Ammonite successfully installed"
fi

# Ensure timeout is available.
if [ "$PLATFORM" == 'Darwin' ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

One has to have brew install coreutils but ok.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll add that.

@@ -76,7 +76,7 @@ case $CLUSTER_LAUNCH_CODE in
0)
"$ROOT_PATH/ci/dataDogClient.sc" "marathon.build.si.$VARIANT.cluster_launch.success" 1
cp -f "$DOT_SHAKEDOWN" "$HOME/.shakedown"
make test
timeout --preserve-status -s KILL 1s make test
Copy link
Contributor

Choose a reason for hiding this comment

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

so we're killing after 1s? 🤣 I don't think we're that fast yet

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are getting there...

Copy link
Collaborator

@mesosphere-ci mesosphere-ci left a comment

Choose a reason for hiding this comment

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

I'm building your change at jenkins-marathon-pipelines-PR-6437-2.

Copy link
Collaborator

@mesosphere-ci mesosphere-ci left a comment

Choose a reason for hiding this comment

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

I'm building your change at jenkins-marathon-pipelines-PR-6437-3.

Copy link
Collaborator

@mesosphere-ci mesosphere-ci left a comment

Choose a reason for hiding this comment

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

✔ Build of #6437 completed successfully.

See details at jenkins-marathon-pipelines-PR-6437-2.

You can create a DC/OS with your patched Marathon by creating a new pull
request with the following changes in buildinfo.json:

"url": "https://s3.amazonaws.com/downloads.mesosphere.io/marathon/builds/1.7.54-544df5d5f/marathon-1.7.54-544df5d5f.tgz",
"sha1": "4a54cd98c72de4ace23a7f1a08a20a8c927bfb4a"

You can run system integration test changes of this PR against Marathon
master by triggering this Jenkins job with the Pull_Request_id 6437.
The job then reports back to this PR.

\\ ٩( ᐛ )و //

Copy link
Collaborator

@mesosphere-ci mesosphere-ci left a comment

Choose a reason for hiding this comment

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

✔ Build of #6437 completed successfully.

See details at jenkins-marathon-pipelines-PR-6437-3.

You can create a DC/OS with your patched Marathon by creating a new pull
request with the following changes in buildinfo.json:

"url": "https://s3.amazonaws.com/downloads.mesosphere.io/marathon/builds/1.7.55-a3974c5e9/marathon-1.7.55-a3974c5e9.tgz",
"sha1": "d4d0245b41119bf986595516edcf452c3f4f165f"

You can run system integration test changes of this PR against Marathon
master by triggering this Jenkins job with the Pull_Request_id 6437.
The job then reports back to this PR.

\\ ٩( ᐛ )و //

@jeschkies jeschkies merged commit 847d9b1 into master Aug 13, 2018
@jeschkies jeschkies deleted the karsten/cleanup-after-timeout branch August 13, 2018 08:18
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.

4 participants