Skip to content

Conversation

@dgetu
Copy link
Member

@dgetu dgetu commented Dec 8, 2025

Packages impacted by this PR

Issues associated with this PR

#36589

Describe the problem that is addressed by this PR

Replaces format and lint steps with dev-tool check

Checklists

  • Added impacted package name to the issue description

***NO_CI***

@github-actions github-actions bot added Mgmt This issue is related to a management-plane library. Microsoft Playwright Testing Monitor Monitor, Monitor Ingestion, Monitor Query Online Experimentation OpenAI OpenTelemetryInstrumentation Purview labels Dec 8, 2025
@dgetu dgetu requested a review from ischrei December 8, 2025 16:45
@dgetu dgetu requested a review from olterner December 8, 2025 16:45
@dgetu dgetu requested a review from Ronnysi December 8, 2025 16:45
@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label Dec 8, 2025
@dgetu dgetu requested a review from Ohad-Fein December 8, 2025 16:45
@github-actions github-actions bot added Synapse Tables test-utils Label for the issues related to the @azure/test-utils package WebPubSub labels Dec 8, 2025
@dgetu dgetu requested a review from gulopesd December 8, 2025 16:45
@dgetu dgetu force-pushed the add-dev-tool-check-to-analyze-step branch from 9658e20 to 5c6ee6c Compare December 8, 2025 16:47
@jeremymeng
Copy link
Member

Look great and nice to see bugs were fixed! We need to update our code generator first.

It would be nice if we can undo the package.json formatting changes to make PR review easier.

},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/advisor/arm-advisor",
"homepage": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/advisor/arm-advisor/README.md",
Copy link
Member

Choose a reason for hiding this comment

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

We either need to standardize on the homepage format, or relax dev-tool to allow the format that Management packages use. Standardizing is probably better.

"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"build:samples": "tsc -p tsconfig.samples.json && dev-tool samples publish -f",
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"samples-dev/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"check:ci": "dev-tool check --tag ci",
Copy link
Member

Choose a reason for hiding this comment

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

We need a corresponding code generator PR to add the two check NPM scripts

Copy link
Member

Choose a reason for hiding this comment

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

Yes and pls don't forget to apply this in codegen repo. Thanks!

node eng/tools/ci-runner/index.js check-format $(ChangedServices) -packages "$(ArtifactPackageNames)"
displayName: "Check Format in Libraries"
node eng/tools/ci-runner/index.js check:ci $(ChangedServices) -packages "$(ArtifactPackageNames)"
displayName: "Check Libraries"
Copy link
Member

Choose a reason for hiding this comment

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

is there a condition in pipeline build that we can check for whether we should run check:release?

"engines": {
"node": ">=20.0.0"
},
"engines": { "node": ">=20.0.0" },
Copy link
Member

@jeremymeng jeremymeng Dec 8, 2025

Choose a reason for hiding this comment

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

Why was Mgmt package.json formatted? it's "format" script just echo.

import type { CommunicationIdentifier } from "@azure/communication-common";

import type {
Tone} from "../generated/src/models/index.js";
Copy link
Member

Choose a reason for hiding this comment

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

formatting here doesn't look right.

"vitest": "catalog:testing"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/communication/communication-messages-rest-rest/README.md",
"homepage": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/communication/communication-messages-rest/README.md",
Copy link
Member

Choose a reason for hiding this comment

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

Good fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Untriaged
Status: Untriaged

Development

Successfully merging this pull request may close these issues.

6 participants