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

[wicketd] Fall back to old behavior if SP is too old to support reading RoT CMPA/CFPA #4326

Merged
merged 3 commits into from
Oct 24, 2023

Conversation

jgallagher
Copy link
Contributor

We hit this on rack3 but did not hit it on dogfood due to more frequent updates to dogfood's SP/RoT. Prior to this PR, wicketd expected to be able to ask an SP for its RoT's CMPA/CFPA pages, but if a rack is jumping from the 1.0.2 release to current master, its SPs are too old to understand that message. With this change, we will fall back to wicketd's previous behavior of requiring exactly 1 RoT archive if we fail to fetch the CMPA from the target component.

"err" => %DisplayErrorChain::new(&err),
);
}
Err(err) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a comment here that this covers communication errors, etc?

Ok(()) => {
})?)
}
// TODO is there a better way to check the _specific_ error response
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is fine; it's no worse than before!

break;
artifact_to_apply = Some(available_artifacts[0].clone());
None
} else {
Copy link
Contributor

Choose a reason for hiding this comment

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

Add some logging here, since it's a weird corner case

@jgallagher jgallagher enabled auto-merge (squash) October 24, 2023 15:34
@jgallagher jgallagher merged commit 4bd19c8 into main Oct 24, 2023
19 of 20 checks passed
@jgallagher jgallagher deleted the wicket-rot-fix branch October 24, 2023 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants