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

Yarn Berry Errors with record_update_job_error; Equivalent Project Runs Well on Github #1518

Open
1 task done
epicstar opened this issue Dec 16, 2024 · 3 comments
Open
1 task done

Comments

@epicstar
Copy link

Describe the bug

As of 3 weeks ago, every update using V2 of the Dependabot pipeline runner in Azure Devops gives us this error in our yarn v4 monorepo code:

{"data":{"error-type":"dependency_file_not_resolvable","error-details":{"message":"Error while loading \".yarnrc.yml\"."}},"type":"record_update_job_error"}

For a more detailed sample snippet:

updater | 2024/12/16 20:22:08 INFO <job_update_0_npm_and_yarn_all> Requirements to unlock own
updater | 2024/12/16 20:22:08 INFO <job_update_0_npm_and_yarn_all> Requirements update strategy bump_versions
updater | 2024/12/16 20:22:08 INFO <job_update_0_npm_and_yarn_all> Updating @babel/helper-function-name from 7.23.0 to 7.24.7
{"data":{"error-type":"dependency_file_not_resolvable","error-details":{"message":"Error while loading \".yarnrc.yml\"."}},"type":"record_update_job_error"}
updater | 2024/12/16 20:22:10 INFO <job_update_0_npm_and_yarn_all> Handled error whilst updating @babel/helper-function-name: dependency_file_not_resolvable {:message=>"Error while loading \".yarnrc.yml\"."}
updater | 2024/12/16 20:22:12 INFO <job_update_0_npm_and_yarn_all> Checking if @babel/helper-hoist-variables 7.22.5 needs updating
updater | 2024/12/16 20:22:13 INFO <job_update_0_npm_and_yarn_all> Latest version is 7.24.7
updater | 2024/12/16 20:22:25 INFO <job_update_0_npm_and_yarn_all> Requirements to unlock own
updater | 2024/12/16 20:22:25 INFO <job_update_0_npm_and_yarn_all> Requirements update strategy bump_versions
updater | 2024/12/16 20:22:25 INFO <job_update_0_npm_and_yarn_all> Updating @babel/helper-hoist-variables from 7.22.5 to 7.24.7
{"data":{"error-type":"dependency_file_not_resolvable","error-details":{"message":"Error while loading \".yarnrc.yml\"."}},"type":"record_update_job_error"}
updater | 2024/12/16 20:22:27 INFO <job_update_0_npm_and_yarn_all> Handled error whilst updating @babel/helper-hoist-variables: dependency_file_not_resolvable {:message=>"Error while loading \".yarnrc.yml\"."}
updater | 2024/12/16 20:22:29 INFO <job_update_0_npm_and_yarn_all> Checking if @babel/helper-member-expression-to-functions 7.24.7 needs updating
updater | 2024/12/16 20:22:30 INFO <job_update_0_npm_and_yarn_all> Latest version is 7.25.9
updater | 2024/12/16 20:22:41 INFO <job_update_0_npm_and_yarn_all> Requirements to unlock own
updater | 2024/12/16 20:22:41 INFO <job_update_0_npm_and_yarn_all> Requirements update strategy bump_versions
updater | 2024/12/16 20:22:41 INFO <job_update_0_npm_and_yarn_all> Updating @babel/helper-member-expression-to-functions from 7.24.7 to 7.25.9
{"data":{"error-type":"dependency_file_not_resolvable","error-details":{"message":"Error while loading \".yarnrc.yml\"."}},"type":"record_update_job_error"}
updater | 2024/12/16 20:22:43 INFO <job_update_0_npm_and_yarn_all> Handled error whilst updating @babel/helper-member-expression-to-functions: dependency_file_not_resolvable {:message=>"Error while loading \".yarnrc.yml\"."}

If running this project with the exact code in Github, the code runs successfully.

Categorization

Repository

https://github.com/epicstar/dependabot-yarn-test/

I have given you the repo in Github to prove it works fine on Github.

However, because our organization is private, I cannot give you the Azure Devops version of the code. Rest assured, the code is the exact same minus blanking out the githubConnection property in the Azure Devops pipeline.

To Reproduce
Steps to reproduce the behavior:

Please see README of https://github.com/epicstar/dependabot-yarn-test to run in Azure Devops.

You will have to push this repo there. The Azure Pipeline YAML should be in the given repository.

Expected behavior

It should be like the Github repo outputs:

  • PRs filled out correctly
  • GIthub Logs showing that the run was successful

Logs and screenshots

In Azure:

image

image

Extension (please complete the following information):

  • Host: Azure DevOps (ubuntu-latest)
  • Version 2.39.1099

Server (please complete the following information):

  • Region US East
  • Agent Version: 4.248.0
  • Version 20241117.1.0 (Image Version)

Logs TBD SOON

Additional context

We spotted this problem in our original repo that was occurring on our private Azure Artifacts version of NPM Registry; however, the problem is also happening on the standard public NPM Registry.

We had to move to V2 from V1 because we had problems with running the pipeline extension with our Private Azure Artifacts (upstream).

In addition, #1441 is not an issue on Dependabot as Dependabot on Github runs this repo in 16 minutes, as opposed to 1 hour 10 minutes.

@epicstar epicstar changed the title Yarn Berry Dependabot Updates Error with {"message":"Error while loading \".yarnrc.yml\"."}},"type":"record_update_job_error"}; Equivalent Project Does Not Fail on GIthub Yarn Berry Errors with record_update_job_error; Equivalent Project Does Not Fail on GIthub Dec 16, 2024
@epicstar epicstar changed the title Yarn Berry Errors with record_update_job_error; Equivalent Project Does Not Fail on GIthub Yarn Berry Errors with record_update_job_error; Equivalent Project Runs Well on GIthub Dec 16, 2024
@rhyskoedijk
Copy link
Contributor

@epicstar thanks for the reproduction repo; I will attempt to reproduce this in DevOps and see what is going on.

@epicstar epicstar changed the title Yarn Berry Errors with record_update_job_error; Equivalent Project Runs Well on GIthub Yarn Berry Errors with record_update_job_error; Equivalent Project Runs Well on Github Dec 16, 2024
@epicstar
Copy link
Author

epicstar commented Dec 17, 2024

@rhyskoedijk Here's a link to the logs. The logs are so big I had to give you the files through OneDrive :(

Still not sure why the yarnrc yaml can't be read. My initial uneducated hunch is that it is accidentally being ignored by the docker container.

@eli-gc
Copy link

eli-gc commented Dec 17, 2024

I tested on Github vs. DevOps as well and am seeing the same behavior. Mine finishes in about 4 minutes on github but times out on DevOps.

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

No branches or pull requests

3 participants