-
Notifications
You must be signed in to change notification settings - Fork 91
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
[JENKINS-41844] Make hasDuplicateHistory efficient #79
base: master
Are you sure you want to change the base?
Conversation
…ge and maxDaysToKeepEntries
@Jochen-A-Fuerbacher hellom are you sure the failure tests are related to this PR? I think there might be environment related - Those tests corretly run on my local environment. |
Hello @fbelzunc, sorry for taking so long to answer. I took a look into the test failures. The tests also fail on my environment. Reason is, that you create a symlink in the history dir and three of the tests check the file count in the history dir. So they fail because there's one more file, now: the symlink. Please fix the three tests. Thanks. |
…obConfigHistory/FileHistoryDao.java
…ymlinks [JENKINS-41844] Major symblink implementation
Hello @fbelzunc, please comment here, if you are finish with your changes. Thanks. |
@Jochen-A-Fuerbacher Not for the moment, I am using symlinks and I will need to go away from this approach. I will ping you once I am done. Thanks for the follow-up! |
@Jochen-A-Fuerbacher I think I am done, however, I think this is an important change in the plugin and I am a bit worried about cases I might not be contemplating. Basically, I am
One of the reasons why I am worried is because in Windows environments, it seems the symlinks do not work - see https://issues.jenkins-ci.org/browse/JENKINS-37862 I short, I would like to know if in your opinion this PR is using - or not the right approach. I know this is a BIG issue on big organizations, so that is the reason why I am trying to address the issues. What do you think? |
@fbelzunc There's a bug in your PR: If you have the purger enabled (global Jenkins configuration -> Job Config History -> Advanced -> The rest of your PR looks good. As I am not a Windows user, I cannot simply verify the impact of your PR on Windows environments. |
@fbelzunc did you already have the time to look at this again? |
I will try to get back to this next week. |
… into JENKINS-41844 # Conflicts: # src/main/java/hudson/plugins/jobConfigHistory/JobConfigHistory.java
@Jochen-A-Fuerbacher I am deleting now the symblink in case it is needed, but I am not updating it. Why? Because...
|
I will re-review everything tomorrow, but I still don't understand why this change does not have an impact on the |
@fbelzunc , @Jochen-A-Fuerbacher , hello! |
@fbelzunc Are you working on this, yet? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heyo,
it would help if you can rebase this PR if you request my review.
This is the easiest part to fix JENKINS-41844
With the default values on this PR it seems
hasDuplicateHistory
continue working properly even on slow filesystemsMore PRs will come to fix JENKINS-41844