-
Notifications
You must be signed in to change notification settings - Fork 177
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
[LintDiff] Deploy pending azure-openapi-validator
changes from staging to prod
#6071
Comments
A plan how to deploy staging LintDiff changes to prodThe goalWe want to deploy the LintDiff ruleset currently running as part of the What needs to be doneThe ruleset package.json needs to be updated from However, we cannot do this outright, as doing so would immediately update the ruleset used in prod check and leave no easy way of reverting this change. This is because the prod check uses v2.0.0 of @microsoft.azure/openapi-validator (recent example) which has following dependency: Lack of easy reversal means we need to fix that first. Thus, we first need to update the azure-openapi-validator package.json to depend exactly on ruleset Next we shall publish ruleset The ruleset The above considerations can be summarized in following table breaking down the plan by stages:
The plan step by stepStage 1: 1.1. Submit a PR to azure-openapi-validator affixing the ruleset dependency to be Stage 2: 2.1. Submit a PR to azure-openapi-validator bumping the ruleset version to Note there is no easy way to verify that the Stage 3: 3.1. Submit a PR to azure-openapi-validator bumping its version to Plan amendment, added 5/9/2023:Due to issues with rules-to-be-deployed as explained here: We couldn't deploy the pending ruleset changes as-is. We had to disable some rules that return false positive. We also made few improvements along the way. All of these changes have been captured by these PRs:
As a result, we have additional stage, stage 4, of the plan: Stage 4: 4.1. Submit & merge a set of PRs to azure-openapi-validator as listed above. This includes bumping its version Stage 5:
|
@konrad-jamrozik sounds like a reasonable plan. |
We need to delay deploying the rules in staging to prod due to users reporting multiple false positives:
Here are the rules identified to produce false positives. They need to be disabled before we deploy anything to production:
Main issue to track: |
azure-openapi-validator
(LintDiff) changes from staging to prodazure-openapi-validator
changes from staging to prod
As required by this support request:
The LintDiff PR CI check running on https://github.com/Azure/azure-rest-api-specs hasn't got its changes deployed from staging to prod since months.
Investigation shows doing it in a safe, correct way is nontrivial. This task is about accomplishing this.
Related task o document this process for further deployments:
azure-openapi-validator
aka LintDiff #6070Note there is a private Teams chat between Brett DeFoy, myself and few other folks to help with figuring out some specific pending changes to get deployed on request by Brett, per:
The text was updated successfully, but these errors were encountered: