Skip to content

Commit

Permalink
Fix Dashboard release pipeline (#2002)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarangan12 authored Dec 19, 2024
1 parent 9899b39 commit 127dc33
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
6 changes: 6 additions & 0 deletions eng/pipelines/deploy-azure-spec-dashboard-storage-account.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ extends:
TYPESPEC_SKIP_DOCUSAURUS_BUILD: true # Disable docusaurus build

steps:
- checkout: self
submodules: true

- template: /eng/pipelines/templates/install.yml
parameters:
nodeVersion: "20.x"

- template: /eng/pipelines/templates/build.yml

- task: AzureCLI@2
Expand Down
14 changes: 8 additions & 6 deletions packages/azure-spec-dashboard/src/apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,23 @@ import {
const storageAccountName = "typespec";

export type GeneratorNames =
| "@typespec/http-client-python"
| "@azure-tools/typespec-python"
| "@azure-tools/typespec-go"
| "@azure-tools/typespec-csharp"
| "@typespec/http-client-csharp"
| "@azure-tools/typespec-ts-rlc"
| "@azure-tools/typespec-ts-modular"
| "@azure-tools/typespec-java"
| "@typespec/http-client-java"
| "@azure-tools/typespec-cpp"
| "@azure-tools/typespec-rust"
| "test";
const query = new URLSearchParams(window.location.search);
const generatorNames: GeneratorNames[] = [
"@typespec/http-client-python",
"@azure-tools/typespec-python",
"@azure-tools/typespec-go",
"@azure-tools/typespec-csharp",
"@typespec/http-client-csharp",
"@azure-tools/typespec-ts-rlc",
"@azure-tools/typespec-ts-modular",
"@azure-tools/typespec-java",
"@typespec/http-client-java",
"@azure-tools/typespec-cpp",
"@azure-tools/typespec-rust",
...(query.has("showtest") ? (["test"] as const) : []),
Expand Down Expand Up @@ -105,6 +99,14 @@ export async function getCoverageSummaries(): Promise<CoverageSummary[]> {
(generatorReports["standard"] as any)[key] = undefined;
continue;
}
if (
!(generatorReports["azure"] as any)[key][1] ||
!(generatorReports["azure"] as any)[key][0]
) {
(generatorReports["azure"] as any)[key] = undefined;
(generatorReports["standard"] as any)[key] = undefined;
continue;
}
(generatorReports["standard"] as any)[key] = {
...getCoverageForMode(generatorReports, key, "standard"),
generatorMetadata: (generatorReports["azure"] as any)[key]["generatorMetadata"],
Expand Down

0 comments on commit 127dc33

Please sign in to comment.