-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[tools] console log issue from filter log #33075
base: main
Are you sure you want to change the base?
Conversation
Next Steps to MergeNext steps that must be taken to merge this PR:
|
PR validation pipeline started successfully. If there is ApiView generated, it will be updated in this comment. |
const fullLogFileName = path.join(logFolder, `${fileNamePrefix}-full.log`); | ||
const filteredLogFileName = path.join(logFolder, `${fileNamePrefix}-filtered.log`); | ||
const htmlLogFileName = path.join(logFolder, `${fileNamePrefix}-${commandInput.sdkRepoName.substring("azure-sdk-for-".length)}-gen-result.html`); | ||
return { fullLogFileName, filteredLogFileName, htmlLogFileName }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the unused code, such as other logfiles?
* @param commandInput | ||
* @param specConfigPath | ||
*/ | ||
function logIssuesToADO(commandInput: SpecGenSdkCmdInput, specConfigPath: string): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function logIssuesToADO(commandInput: SpecGenSdkCmdInput, specConfigPath: string): void { | |
function logIssuesToPipeline(commandInput: SpecGenSdkCmdInput, specConfigPath: string): void { |
* @param {string | undefined} readmePath The readmePath to extract the prefix from. | ||
* @returns {string} The formatted prefix. | ||
*/ | ||
function extractPathFromSpecConfig(tspConfigPath: string | undefined, readmePath: string | undefined): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems we still need this logic to find the log file name in case of batch run. Can you add a comment saying "this function is copied from 'spec-gen-sdk'" and add the source code link?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For functions generateSdkForSpecPr
and generateSdkForSingleSpec
,
Both tspConfigPath
and readmePath
can be non-empty at the same time, can you update the log group message:
logMessage(`Generating SDK from ${tspConfigPath} ${readmePath}` , LogLevel.Group);
``
In addition, resolve the lint errors.
Add
logIssuesToADO
function to export log issues from filter log