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

Fix for parallel racing functional test #80

Merged
merged 5 commits into from
Dec 2, 2021

Conversation

2samueld
Copy link

@2samueld 2samueld commented Dec 1, 2021

Description

This PR creates a temporary directory within the current workspace to mount the bundles in docker environment.

Closes #57

Jenkinsfile Outdated
sh "rm -rf ${env.WORKSPACE}_${currentCiGroup}"
sh "mkdir ${env.WORKSPACE}_${currentCiGroup}"
sh "rm -rf ${env.WORKSPACE}/.optimize/${currentCiGroup}"
sh "mkdir ${env.WORKSPACE}/.optimize/${currentCiGroup}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

You might want to use -p. Otherwise it could fail if running for the first time, when .optimize directory does not exist

Copy link
Owner

@Tengda-He Tengda-He Dec 1, 2021

Choose a reason for hiding this comment

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

mkdir -p, making sure this is tested in bfs7.7.1_test branch

Copy link
Author

Choose a reason for hiding this comment

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

-p option has been added to ensure directory path.

Test job has been run: https://jenkins.bfs.sichend.people.aws.dev/blue/organizations/jenkins/Kibana/detail/bfs7.7.1_test/18/pipeline/

Copy link
Collaborator

Choose a reason for hiding this comment

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

rm -rf /var/lib/jenkins/workspace/Kibana_bfs7.7.1_test_ciGroup9

This is not right in the test run.

Copy link
Author

@2samueld 2samueld Dec 2, 2021

Choose a reason for hiding this comment

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

Hi, @sichend. I sent the wrong link. To verify, a new job was created. It points to the right directory path /var/lib/jenkins/workspace/.optimize/ Below is the build link: https://jenkins.bfs.sichend.people.aws.dev/blue/organizations/jenkins/Kibana/detail/bfs7.7.1_test/19/pipeline/60/

@2samueld 2samueld requested a review from sichend December 2, 2021 16:56
Copy link
Collaborator

@sichend sichend left a comment

Choose a reason for hiding this comment

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

Good to go. However make sure to fix these two things

  1. Update the PR title from "Fix optimization" to something more meaningful. PR title is going to be the commit message after merge. Commit message should be concise and descriptive. For example: "Fix disk racing condition for parallel functional test"
  2. Make sure to use squash merge

Thanks for insisting on a high standard.

@Tengda-He Tengda-He merged commit 0dacb7a into Tengda-He:bfs7.7.1 Dec 2, 2021
@2samueld 2samueld changed the title Fix optimization Fix for parallel racing functional test Dec 2, 2021
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