Skip to content
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

Add continueOnError to create emitter-package-lock #8672

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

pshao25
Copy link
Member

@pshao25 pshao25 commented Jul 22, 2024

We are seeing this error for a long time. https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3976469&view=logs&j=739bb7ec-7296-5b40-7dff-ee3297bfdaa4&t=164b9cb9-850d-5194-a052-63f5151be232

Now it cannot be handled at autorest.csharp side because we are now depending on @typespec/http-client-csharp which is in the TypeSpec repo. As a result we could see the error message
image

As suggested by @mikeharder , I think adding "continue on error" is the most appropriate/acceptable way to us now, since this error not impact code generation.

@pshao25 pshao25 requested a review from a team as a code owner July 22, 2024 07:23
@weshaggard weshaggard requested a review from hallipr July 22, 2024 16:27
@@ -242,6 +242,7 @@ stages:
arguments: >
-EmitterPackageJsonPath "$(buildArtifactsPath)/emitter-package.json"
-OutputDirectory "$(Build.ArtifactStagingDirectory)"
continueOnError: true
Copy link
Member

Choose a reason for hiding this comment

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

Won't this cause us to potentially ignore real issues as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it might be, but I put the justification in the description that "we are now depending on @typespec/http-client-csharp which is in the TypeSpec repo" so that we cannot bump the version in @typespec/http-client-csharp. We currently don't have a way to fix the error here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Continue on error at least let the pipeline run. And the pipeline runs with reading dev version because we override it at the root, therefore the run result is reliable.

Copy link
Member

Choose a reason for hiding this comment

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

@hallipr can you help them solve this in another way? I would really like to avoid us blindly ignoring errors that is just going to lead to other issues.

Copy link
Member

Choose a reason for hiding this comment

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

I also dislike ignoring the errors from npm list. We need to resolve the dependency issues to ensure we're testing the appropriate dependencies in the TypeSpec next runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants