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

[TypeSpecValidation] bug fix: drive letter inconsistency for windows #27002

Merged
merged 4 commits into from
Dec 14, 2023

Conversation

ckairen
Copy link
Member

@ckairen ckairen commented Dec 8, 2023

closes #26557

@ckairen ckairen added the Central-EngSys This issue is owned by the Engineering System team. label Dec 8, 2023
@ckairen ckairen self-assigned this Dec 8, 2023
Copy link

openapi-pipeline-app bot commented Dec 8, 2023

Next Steps to Merge

✔️ All automated merging requirements have been met! Refer to step 4 in the PR workflow diagram (even if your PR is for data plane, not ARM).

Copy link

openapi-pipeline-app bot commented Dec 8, 2023

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️️✔️LintDiff succeeded [Detail] [Expand]
Validation passes for LintDiff.
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️️✔️ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
️️✔️PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
️️✔️Automated merging requirements met succeeded [Detail] [Expand]
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented Dec 8, 2023

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]
️️✔️SDK Breaking Change Tracking succeeded [Detail] [Expand]

Breaking Changes Tracking

Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented Dec 8, 2023

PR validation pipeline restarted successfully. If there is ApiView generated, it will be updated in this comment.

@mikeharder
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@ckairen ckairen marked this pull request as ready for review December 8, 2023 02:12
@mikeharder
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@mikeharder
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 4 pipeline(s).

.resolve(folder)
.split(path.sep)
.join("/")
.replace(/[a-zA-Z]:/g, "");
Copy link
Member

Choose a reason for hiding this comment

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

You are just removing the drive letter? This is unsound, since C:\ is not equivalent to D:\. I think a better option would be to keep the drive letter but normalize to upper-case (which is usually how drive letters are represented).

Copy link
Member

Choose a reason for hiding this comment

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

Do we even care about the drive letter? Should we just strip and make everything relative to the repo root?

Copy link
Member

Choose a reason for hiding this comment

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

This is a general-purpose helper function. Really, all we need to do is normalize the drive letter casing, and it should be good.

@mikeharder
Copy link
Member

/azp run TypeSpec Validation - CI

Copy link

No pipelines are associated with this pull request.

@mikeharder
Copy link
Member

/azp run TypeSpec Validation - CI

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mikeharder mikeharder merged commit 80aaac5 into Azure:main Dec 14, 2023
36 checks passed
@mikeharder mikeharder assigned mikeharder and unassigned ckairen Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Central-EngSys This issue is owned by the Engineering System team.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[TypeSpec Validation] Rule NpmPrefix fails on Windows with lower-case drive letter
3 participants