-
Notifications
You must be signed in to change notification settings - Fork 53
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-58716] Support checking out plugins with Incremental versions #181
Conversation
Looks like this wasn't just a small matter of programming after all! When testing out this fix over at jenkinsci/bom#53, I got this error:
Evaluating this further, the problem is that the tag
I reproduced the error calling Based on this evaluation, I think the change in this PR is makes the situation no worse for non-incremental builds and is necessary but not sufficient for fixing JENKINS-58716 for incremental builds. Therefore I think we should go ahead with this PR. Once this PR has been merged, I think the next step would be to fix the incrementals subsystem to generate a POM with a correct |
I sketched out a possible solution to the second half of this problem in JENKINS-58716 (comment). |
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.
Looks like this wasn't just a small matter of programming after all!
The "small matter of programming" idiom exists specially for these cases
plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/PomData.java
Outdated
Show resolved
Hide resolved
Last I remember, this was still a WiP pending integration with |
No, I don't view this as a WiP. This PR is necessary but not sufficient to fix JENKINS-58716. However, I believe it is ready to merge as-is today. From my previous comment:
Since writing that, I found another use case where this PR would have an immediate benefit as-is. When trying to add Swarm to the BOM's managed, set I got this error:
The cause of this issue is that Swarm uses tags of the form |
Merge conflict after #185 |
I resolved the merge conflict. I also added links to two test runs that demonstrate the code is correctly able to parse SCM tags from the POM and check out the correct tag. The point is that |
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.
LGTM
Have you been able to confirm yet that it works for that purpose—that if given a POM which contains a commit hash rather than a tag as the |
Yes, I did confirm that, as I wrote in my previous comment:
|
Perhaps you could take a look at my latest revision again. I made two small improvements:
|
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.
Would be nice to avoid code duplication, but the rest LGTM
Agreed. I only just started working with this codebase, but I already see many possible areas for improvement, this being one of them. Maybe as I get time I'll attempt some further cleanup, once I get more familiarity with the codebase and can gain more confidence that I won't be breaking things. |
Yes, just small steps. I have been doing some refactorings since I started
maintaining PCT few years ago, but it is a pretty big codebase. Many issues
to fix going forward, just not a top priority. I fix something when I
change the code around, but that;s it. Should become better in next
releases once we remove Internal Maven and GAE from the codebase
…On Thu, Sep 12, 2019 at 4:32 PM Basil Crow ***@***.***> wrote:
Would be nice to avoid code duplication, but the rest LGTM
Agreed. I only just started working with this codebase, but I already see
many possible areas for improvement, this being one of them. Maybe as I get
time I'll attempt some further cleanup, once I get more familiarity with
the codebase and can gain more confidence that I won't be breaking things.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#181?email_source=notifications&email_token=AAW4RIEM6HPITFX7F4JV5S3QJJHI7A5CNFSM4IIWSDW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6SDBFA#issuecomment-530854036>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAW4RIAGG3NJBFVWFUIFQ3TQJJHI7ANCNFSM4IIWSDWQ>
.
|
Test failure doesn't appear related to this change:
Closing and re-opening to trigger a new build. |
I think we should be good to move forward with this. Let me know if there's any other changes you want me to make. |
After some consideration I will merge it as an enhancement, not as a bugfix. PCT has never really worked with Incrementals, but with this patch we are getting closer to it. |
@basil would you like to have a new release of PCT? Or are you fine with taking it from the branch? |
Thanks for checking. I think I'm fine without a release for now. There are a few other fixes I want to make in PCT so I think it makes sense to bunch them together before shipping a release. |
See JENKINS-58716. Observed in jenkinsci/bom#53. The problem and solution are described well in the bug. The rest is just a small matter of programming.