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

SLING-12329 - Backwards compatibility for legacy repoinit statement reordering #54

Merged
merged 4 commits into from
May 28, 2024

Conversation

jsedding
Copy link
Contributor

No description provided.

});
} catch (RepoInitException originalFailure) {
// support legacy statement reordering for backwards compatibility
try {
Copy link
Contributor

Choose a reason for hiding this comment

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

can you please extract this complete section into a dedicated method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do.

}
}

log.warn("DEPRECATION - The repoinit script being executed relies on a bug causing repoinit " +
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have a Jira ID or something we can reference when it comes to fixing? This warning is hardly actionable for anyone not familiar with repoinit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if SLING-12107 helps. That is the ticket where the "new" ordering was introduced.

We also don't have enough context to explain what the issue is. However, it may be worthwhile including the originalFailure exception, or at least its message, in the log message.

…eordering

- state that repoinit was successful in legacy mode
@jsedding jsedding merged commit 01b4df0 into master May 28, 2024
1 check was pending
@jsedding jsedding deleted the fix/SLING-12329-legacy-reordering-fallback branch May 28, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants