Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up[JENKINS-49588] add readResolve method for 'usages' in Fingerprint.java #3305
Conversation
always initialized properly when deserializing a fingerprint
|
@oleg-nenashev - i have a couple of questions about this, i will follow up with you via email or chat. |
|
@reviewbybees it's on your plate |
|
@mikecirioli I think a test (probably using Also, added the WIP label. Please remember to remove (or ask for) it when you consider it ready for review. |
that a fingerprint file without a <usages ...> can still be deserialized
|
please remove the |
I'd really like to see more investigation related to this. Either we ship 2.107.1 without this fix, or with it, and neither seems particularly appealing. |
|
@daniel-beck I agree, although I am not sure how to go about finding a way to reproduce it. I searched jira for any possibly related issues but found some issues with fingerprints being truncated due to "&" characters in text strings. If you have ideas for ways to recreate the root cause I am happy to investigate. |
|
LGTM, cannot see how this could hurt, though agreed it would be better to understand where this comes from, if possible. |
|
@batmat @mikecirioli do you plan to merge it? |
|
How about we add a WARNING in the That could be useful to know if this a common issue, and in the future (if not everybody upgraded to this in the meantime, granted) this would be sent back through telemetry for Essentials. |
|
I'll merge later today if nobody objects. |
|
Still lacking any understanding why this happens. Have we really made no progress there in the last five weeks? |
|
another person reported seeing this in JENKINS-49588, are we still planning to merge? |
|
Based on recent feedback in JENKINS-49588 it looks to me like we're lacking appropriate diagnostics for malformed fingerprint files. Is there a reasonable way to do that? |
|
@mikecirioli could you please respond to the question above? |
|
@daniel-beck @oleg-nenashev - this has dropped off my radar as of late. As far as I am aware we do not have a better understanding of why this is happening. |
|
Can we re-consider merging this PR? Even if we don't understand what is causing this issue, i am still seeing comments from people who are experiencing it. This PR should at least soothe some of that pain. I can add the warning that @batmat suggested if that will help us get some additional datapoints. |
|
I consider this pull request a harmless example of the protective code. It is not clear whether it addresses the reported issue, but it is definitely harmless as is. Since there is no movement expected here, I propose to merge it instead of closing |
|
@batmat @daniel-beck do you agree? |
|
Yes, agree. At least it will help us triage the open JIRA: if the issue keeps coming after this merged, then this will already be an additional data point. |
|
OK. I will merge it into the next weekly if there is no negative feedback |
mikecirioli commentedFeb 20, 2018
•
edited
add readResolve method to ensure that <usages ../> is always initialized properly when deserializing a fingerprint
See JENKINS-49588.
Proposed changelog entries
Internal:AddedreadResolvemethod to Fingerprint.java to ensure theusagesfield is always initializedSubmitter checklist
* Use the
Internal:prefix if the change has no user-visible impact (API, test frameworks, etc.)Desired reviewers
@reviewbybees @batmat @oleg-nenashev