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

[Universal packages] Error "Cannot read property 'code' of undefined" starting from 0.188.0 #15011

Closed
miketimofeev opened this issue Jul 1, 2021 · 7 comments

Comments

@miketimofeev
Copy link

Note

Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo

For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

If you have an issue or request for the Azure Pipelines service, use developer community instead:

https://developercommunity.visualstudio.com/spaces/21/index.html )

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: Bug

Enter Task Name: Universal packages

list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

Environment

Issue Description

Starting from 07/01/2021 the task for uploading artifacts started to fail. We've noticed that it was updated from 0.182.0 to 0.188.0. The latest successful build — https://dev.azure.com/mseng/AzureDevOps/_releaseProgress?_a=release-environment-logs&releaseId=16469099&environmentId=185161600
Here is the configuration:
image

Task logs

Task logs

2021-07-01T04:58:52.4608035Z ##[section]Starting: Upload readme to feed
2021-07-01T04:58:52.4748385Z ==============================================================================
2021-07-01T04:58:52.4748726Z Task         : Universal packages
2021-07-01T04:58:52.4748981Z Description  : Download or publish Universal Packages
2021-07-01T04:58:52.4749213Z Version      : 0.188.0
2021-07-01T04:58:52.4749437Z Author       : Microsoft Corporation
2021-07-01T04:58:52.4749721Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks
2021-07-01T04:58:52.4750068Z ==============================================================================
2021-07-01T04:58:53.1175914Z SYSTEMVSSCONNECTION exists true
2021-07-01T04:58:53.6713375Z Found tool in cache: artifacttool 0.2.189 x64
2021-07-01T04:58:53.7519761Z SYSTEMVSSCONNECTION exists true
2021-07-01T04:58:54.3884474Z Publishing package: ubuntu20, version: 0.20210701.1 using feed id: 10e4df16-472a-79cc-b0cb-8c9127698918, project: b924d696-3eae-4116-8443-9a18392d8544
2021-07-01T04:58:54.3979534Z [command]C:\RMO-Agent\work\_tool\artifacttool\0.2.189\x64\ArtifactTool.exe universal publish --feed 10e4df16-472a-79cc-b0cb-8c9127698918 --service https://vsrm.dev.azure.com/mseng/ --package-name ubuntu20 --package-version 0.20210701.1 --path C:
2021-07-01T04:59:02.0105045Z {"Version":"0.20210701.1","SuperRootId":"ECF5ADDC1F27076252A779FD3869656ACF4BAC26679CC58C5582E3C16737810C02","ManifestId":"41981582C0ACD67E0DFDE7D908864223BD503DC35097243F254D1518078FE43401","Description":"null"}
2021-07-01T04:59:02.0108197Z {"@t":"2021-07-01T04:58:59.7755623Z","@m":"ApplicationInsightsTelemetrySender will correlate events with X-TFS-Session 4954bc7b-c1ab-49ab-a354-8337cfdf349f","@i":"f42b1c0f","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestam
2021-07-01T04:59:02.0109908Z {"@t":"2021-07-01T04:59:00.2287160Z","@m":"Ensuring that the package does not yet exist...","@i":"40e01e14","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestamp":"2021-07-01 04:59:00.228Z"}
2021-07-01T04:59:02.0111315Z {"@t":"2021-07-01T04:59:00.5827521Z","@m":"Package does not yet exist","@i":"c781eca5","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestamp":"2021-07-01 04:59:00.582Z"}
2021-07-01T04:59:02.0112568Z {"@t":"2021-07-01T04:59:00.5841026Z","@m":"Pushing content...","@i":"3aa40378","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestamp":"2021-07-01 04:59:00.584Z"}
2021-07-01T04:59:02.0114173Z {"@t":"2021-07-01T04:59:00.5990052Z","@m":"DedupManifestArtifactClient will correlate http requests with X-TFS-Session 4954bc7b-c1ab-49ab-a354-8337cfdf349f","@i":"4f22e40e","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestam
2021-07-01T04:59:02.0150246Z ##[error]TypeError: Cannot read property 'code' of undefined
2021-07-01T04:59:02.0159484Z {"@t":"2021-07-01T04:59:00.8091209Z","@m":"1 files processed.","@i":"6ecf0030","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestamp":"2021-07-01 04:59:00.809Z"}
2021-07-01T04:59:02.0160399Z ##[error]Packages failed to publish
2021-07-01T04:59:02.0161678Z {"@t":"2021-07-01T04:59:00.8101617Z","@m":"Processed 1 files from C:\\RMO-Agent\\work\\_temp\\image-gen\\images\\linux successfully.","@i":"938c760d","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestamp":"2021-07-01 04:59:00
2021-07-01T04:59:02.0164019Z {"@t":"2021-07-01T04:59:01.3233808Z","@m":"16374 out of 16374 bytes uploaded","@i":"f4eac4b9","UploadedBytes":16374,"TotalBytes":16374,"EventId":{"Id":2,"Name":"Uploading"},"SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestam
2021-07-01T04:59:02.0165183Z {"@t":"2021-07-01T04:59:01.3249293Z","@m":"Content upload is done!","@i":"3fa1b25b","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestamp":"2021-07-01 04:59:01.324Z"}
2021-07-01T04:59:02.0168479Z {"@t":"2021-07-01T04:59:01.3270679Z","@m":"\nContent upload statistics:\nTotal Content: 32.6 KB\r\nPhysical Content Uploaded: 6.8 KB\r\nLogical Content Uploaded: 16.4 KB\r\nCompression Saved: 9.5 KB\r\nDeduplication Saved: 16.2 KB\r\nNumber of C
2021-07-01T04:59:02.0169906Z {"@t":"2021-07-01T04:59:01.3416558Z","@m":"Content pushed","@i":"a2f90a5e","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestamp":"2021-07-01 04:59:01.341Z"}
2021-07-01T04:59:02.0170869Z {"@t":"2021-07-01T04:59:01.3434562Z","@m":"Adding package...","@i":"183e7e34","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestamp":"2021-07-01 04:59:01.343Z"}
2021-07-01T04:59:02.0171804Z {"@t":"2021-07-01T04:59:01.9728221Z","@m":"Added package","@i":"81e6a149","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestamp":"2021-07-01 04:59:01.972Z"}
2021-07-01T04:59:02.0172724Z {"@t":"2021-07-01T04:59:01.9854837Z","@m":"Success","@i":"1d9af52f","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestamp":"2021-07-01 04:59:01.985Z"}
2021-07-01T04:59:02.0173841Z {"@t":"2021-07-01T04:59:01.9917767Z","@m":"ApplicationInsightsTelemetrySender correlated 1 events with X-TFS-Session 4954bc7b-c1ab-49ab-a354-8337cfdf349f","@i":"c26bf7fc","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestamp"
2021-07-01T04:59:02.0284296Z ##[section]Finishing: Upload readme to feed

## Troubleshooting Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting

Error logs

See above

@miketimofeev
Copy link
Author

@mihairatoiu @zhenghao104 @thisisbrianstewart could you please take a look as the issue seems to be related to this PR? #14489

@mihairatoiu
Copy link
Contributor

Hello, it is indeed related to this PR, I have fixed the issue and created another PR. After merge will be fixed. Sorry for the inconvenience

@miketimofeev
Copy link
Author

@mihairatoiu thank you!
@zhenghao104 @thisisbrianstewart is it possible to revert the task to 0.182 until the issue is fixed?

@theabolton
Copy link

This is blocking our production build pipelines. I have raised a ticket with ADO engineering; for those within Microsoft, you can track IcM #248505374.

@zhenghao104
Copy link
Contributor

We cant revert the task version, but we can push out the fix for the task as soon as the PR is merged. The hotfix process does take some time as it requires several pipeline runs.

@zhenghao104
Copy link
Contributor

Rolling out changes.

@miketimofeev
Copy link
Author

@zhenghao104 version 0.190.0 works fine for us.
I'm going to close the issue.
Thank you everyone for such a quick resolution!

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

No branches or pull requests

4 participants