Skip to content

[5.7][Parseable Output] Compute file extensions using full extension strings #58868

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

Merged
merged 1 commit into from
May 12, 2022

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented May 12, 2022

Cherry-pick of #58865

Generation of valid JSON output for parseable output depends on being able to determine file types of inputs and outputs of compilation tasks. FileTypes.def defines multiple file kinds with multiple . extensions, such as .abi.json or .features.json, but existing code attempted to compute file outputs only using the trailing suffix of the path after the last .. This led to some files not being recognized, which led to us not being able to generate valid JSON.

We have this problem broadly in other places in the compiler but I wanted to have a narrow fix for this release first.

Resolves rdar://92961252

@artemcm artemcm requested a review from a team as a code owner May 12, 2022 18:13
@artemcm artemcm changed the title [Parseable Output] Compute file extensions using full extension strings [5.7][Parseable Output] Compute file extensions using full extension strings May 12, 2022
@artemcm artemcm added the r5.7 label May 12, 2022
@artemcm
Copy link
Contributor Author

artemcm commented May 12, 2022

@swift-ci please test

Generation of valid JSON output for parseable output depends on being able to determine file types of inputs and outputs of compilation tasks. FileTypes.def defines multiple file kinds with multiple '.' extensions, such as '.abi.json' or '.features.json', but existing code attempted to compute file outputs only using the trailing suffix of the path after the last '.'. This led to some files not being recognized, which led to us not being able to generate valid JSON.

Resolves rdar://92961252
@artemcm artemcm force-pushed the 57ParseableFixFileTypes branch from 584d0a3 to 1177051 Compare May 12, 2022 18:34
@artemcm
Copy link
Contributor Author

artemcm commented May 12, 2022

@swift-ci please test

@artemcm artemcm merged commit db4493a into swiftlang:release/5.7 May 12, 2022
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.7 labels Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants