-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Improve version-specific manifest selection #6801
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
Conversation
|
Needs a test for the new behavior. |
|
@swift-ci please smoke test |
| return regularManifest | ||
| } else { | ||
| // If that's incompatible, use the closest version-specific manifest we got. | ||
| return versionSpecificManifest |
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.
This is the key change, previously we would have always returned the regular manifest here, even if it was incompatible.
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.
Makes sense to me. And we wound't even be in this part of the code unless we knew we had a versionSpecificManifest, right, since the guard above would have returned the regular manifest previously?
This logic makes sense to me.
|
@swift-ci please smoke test |
|
@swift-ci please smoke test windows |
Currently, we only pick a non-exact match for version-specific manifests if its tools-version is *higher* than the regular one. That seems like an edge case only and we should *also* pick it if the regular manifest is incompatible. This both matches intuition as well as our current documentation on the topic. It should also be backwards-compatible with the current behavior since the new behavior only comes into play if we would have previously failed to load a manifest at all. Co-authored-by: Anders Bertelrud <[email protected]>
01b9271 to
088b7d5
Compare
|
Added a test now. |
|
@swift-ci please smoke test |
|
@swift-ci please smoke test windows |
1 similar comment
|
@swift-ci please smoke test windows |
|
¯\_(ツ)_/¯ |
|
@swift-ci test windows |
for Windows it's just |
|
Hitting the good old hang on Windows: |
|
@swift-ci test windows |
Currently, we only pick a non-exact match for version-specific manifests if its tools-version is *higher* than the regular one. That seems like an edge case only and we should *also* pick it if the regular manifest is incompatible. This both matches intuition as well as our current documentation on the topic. It should also be backwards-compatible with the current behavior since the new behavior only comes into play if we would have previously failed to load a manifest at all. Co-authored-by: Anders Bertelrud <[email protected]>
Currently, we only pick a non-exact match for version-specific manifests if its tools-version is *higher* than the regular one. That seems like an edge case only and we should *also* pick it if the regular manifest is incompatible. This both matches intuition as well as our current documentation on the topic. It should also be backwards-compatible with the current behavior since the new behavior only comes into play if we would have previously failed to load a manifest at all. Co-authored-by: Anders Bertelrud <[email protected]>
Currently, we only pick a non-exact match for version-specific manifests if its tools-version is *higher* than the regular one. That seems like an edge case only and we should *also* pick it if the regular manifest is incompatible. This both matches intuition as well as our current documentation on the topic. It should also be backwards-compatible with the current behavior since the new behavior only comes into play if we would have previously failed to load a manifest at all. Co-authored-by: Anders Bertelrud <[email protected]>
Currently, we only pick a non-exact match for version-specific manifests if its tools-version is *higher* than the regular one. That seems like an edge case only and we should *also* pick it if the regular manifest is incompatible. This both matches intuition as well as our current documentation on the topic. It should also be backwards-compatible with the current behavior since the new behavior only comes into play if we would have previously failed to load a manifest at all. Co-authored-by: Anders Bertelrud <[email protected]>
Currently, we only pick a non-exact match for version-specific manifests if its tools-version is higher than the regular one. That seems like an edge case only and we should also pick it if the regular manifest is incompatible. This both matches intuition as well as our current documentation on the topic. It should also be backwards-compatible with the current behavior since the new behavior only comes into play if we would have previously failed to load a manifest at all.