Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions eng/tools/spec-gen-sdk-runner/src/commands.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import fs from "node:fs";
import path from "node:path";
import { runSpecGenSdkCommand, resetGitRepo } from "./utils.js";
Expand Down Expand Up @@ -135,16 +135,11 @@

if (executionReport.stagedArtifactsFolder) {
stagedArtifactsFolder = executionReport.stagedArtifactsFolder;
}

if (executionReport.stagedArtifactsFolder && executionReport.sdkApiViewArtifactFolder) {
const apiViewArtifactRelPath = path.relative(executionReport.stagedArtifactsFolder, executionReport.sdkApiViewArtifactFolder);
for (const pkg of executionReport.packages) {
if (pkg.apiViewArtifact) {
const fileName = path.basename(pkg.apiViewArtifact);
apiViewRequestData.push({
packageName: pkg.packageName,
filePath: path.join(apiViewArtifactRelPath, fileName),
filePath: path.relative(stagedArtifactsFolder, pkg.apiViewArtifact),
});
}
}
Expand Down
1 change: 1 addition & 0 deletions eng/tools/spec-gen-sdk-runner/test/src/commands.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { describe, test, expect, vi, beforeEach, type Mock } from "vitest";
import * as utils from "../../src/utils.js";
import {
Expand Down Expand Up @@ -196,6 +196,7 @@
];
const mockExecutionReport = {
executionResult: "succeeded",
packages: [],
vsoLogPath: "path/to/log",
};

Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "azure-rest-api-specs",
"devDependencies": {
"@azure-tools/spec-gen-sdk": "~0.6.1",
"@azure-tools/spec-gen-sdk": "~0.7.0",
"@azure-tools/specs-shared": "file:.github/shared",
"@azure-tools/typespec-apiview": "0.7.2",
"@azure-tools/typespec-autorest": "0.56.0",
Expand Down
Loading