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

Improve clean up of .ci-temp directory #7892

Closed
nrmancuso opened this issue Mar 18, 2020 · 11 comments
Closed

Improve clean up of .ci-temp directory #7892

nrmancuso opened this issue Mar 18, 2020 · 11 comments

Comments

@nrmancuso
Copy link
Member

nrmancuso commented Mar 18, 2020

based on discussion at #7870 (comment) and #7778 (comment)

We need to improve clean up in the .ci-temp directory after ci scripts run, and should also specify if a directory wasn't able to be removed.
Also, we should use a bash function to make for a cleaner script, and make clear our intention to remove all files, including protected ones.

@rnveach
Copy link
Member

rnveach commented Mar 18, 2020

@nmancus1 Please start when you are ready.

nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Mar 26, 2020
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Mar 26, 2020
pbludov pushed a commit to pbludov/checkstyle that referenced this issue Mar 28, 2020
pbludov pushed a commit to pbludov/checkstyle that referenced this issue Mar 28, 2020
pbludov pushed a commit to pbludov/checkstyle that referenced this issue Mar 28, 2020
pbludov pushed a commit to pbludov/checkstyle that referenced this issue Mar 28, 2020
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Mar 28, 2020
pbludov pushed a commit to pbludov/checkstyle that referenced this issue Mar 28, 2020
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Mar 28, 2020
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Mar 28, 2020
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Apr 2, 2020
@romani
Copy link
Member

romani commented Apr 4, 2020

Please send update to verify that folder is empty.
We also need to check git status - no changes.

So we will not come back to this issue again.

@nrmancuso
Copy link
Member Author

nrmancuso commented Apr 4, 2020

Please send update to verify that folder is empty.

I can run all others locally and verify that the folder is empty, but I cannot get sonarqube to complete with the token I've generated, unless I'm doing something wrong:

Caused by: org.sonar.api.utils.MessageException: You're not authorized to run analysis. Please contact the project administrator.

We also need to check git status - no changes.

So, add a test for Maven to run locally, right?

Abhishek-kumar09 pushed a commit to Abhishek-kumar09/checkstyle that referenced this issue Apr 5, 2020
@romani
Copy link
Member

romani commented Apr 5, 2020

Please ignore sonarqube, send PR with validation enforcement, we will see what is left not fixed

nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Apr 6, 2020
RayRCaringal pushed a commit to RayRCaringal/checkstyle that referenced this issue Apr 7, 2020
RayRCaringal pushed a commit to RayRCaringal/checkstyle that referenced this issue Apr 7, 2020
ImmortalRabbit pushed a commit to ImmortalRabbit/checkstyle that referenced this issue Apr 9, 2020
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Apr 11, 2020
coraljain pushed a commit to coraljain/checkstyle that referenced this issue Apr 12, 2020
@rnveach
Copy link
Member

rnveach commented Apr 24, 2020

@nmancus1

Can you elaborate on your comment at #8040 (comment) and outline the best way to implement this for Travis?

When wercker runs, it is using the same workspace between items in the same PR CI job. A file you save for one part (regression on ABC project), will still be there in another item (regression on XYZ project). So you are able to tell at the end if any of the previous jobs did or did not clean up after themselves.

Travis is completely different. It allows 4 items to run in parallel in the same PR CI job. Each parallel run is using its own version of the workspace. File saved for one part (running all tests), will not be there for any other item (running checkstyle).

So you will not be able to create a single cleanup item after everything is finished. You will need to have the cleanup run after every single item.

nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Apr 24, 2020
@nrmancuso
Copy link
Member Author

@rnveach Ok. That makes sense. So, since both Travis and Shippable run jobs in parallel, should I have each job clean up after itself AND validate that .ci-temp/ is empty after it's done? If so, I will just make a bash function in the script that every job calls as the last step, to validate that .ci-temp/ is empty.

nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue Apr 24, 2020
@rnveach
Copy link
Member

rnveach commented Apr 25, 2020

should I have each job clean up after itself AND validate

Yes, this is the only way if they even create the .ci-temp directory.

@rnveach rnveach added this to the 8.32 milestone Apr 25, 2020
pbludov pushed a commit that referenced this issue Apr 25, 2020
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue May 5, 2020
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue May 5, 2020
… CI runs# Please enter the commit message for your changes. Lines starting
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue May 5, 2020
… CI runs# Please enter the commit message for your changes. Lines starting
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue May 5, 2020
… CI runs# Please enter the commit message for your changes. Lines starting
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue May 5, 2020
… CI runs# Please enter the commit message for your changes. Lines starting
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue May 5, 2020
… CI runs# Please enter the commit message for your changes. Lines starting
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue May 5, 2020
… CI runs# Please enter the commit message for your changes. Lines starting
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue May 18, 2020
… CI runs# Please enter the commit message for your changes. Lines starting
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue May 19, 2020
… CI runs# Please enter the commit message for your changes. Lines starting
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue May 19, 2020
… CI runs# Please enter the commit message for your changes. Lines starting
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue May 19, 2020
… CI runs# Please enter the commit message for your changes. Lines starting
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue May 19, 2020
… CI runs# Please enter the commit message for your changes. Lines starting
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue May 19, 2020
… CI runs# Please enter the commit message for your changes. Lines starting
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue May 24, 2020
… CI runs# Please enter the commit message for your changes. Lines starting
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue May 24, 2020
… CI runs# Please enter the commit message for your changes. Lines starting
nrmancuso added a commit to nrmancuso/checkstyle that referenced this issue May 25, 2020
… CI runs# Please enter the commit message for your changes. Lines starting
romani pushed a commit that referenced this issue May 28, 2020
…Please enter the commit message for your changes. Lines starting
@romani romani modified the milestones: 8.32, 8.33 May 28, 2020
@romani
Copy link
Member

romani commented May 28, 2020

fix is merged

@romani romani closed this as completed May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants