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

[Bug]: Failed to create pull request #167

Closed
1 task done
sitiom opened this issue Apr 15, 2023 · 7 comments
Closed
1 task done

[Bug]: Failed to create pull request #167

sitiom opened this issue Apr 15, 2023 · 7 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@sitiom
Copy link

sitiom commented Apr 15, 2023

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

https://github.com/coreybutler/nvm-windows/actions/runs/4685243965/jobs/8313882263#step:2:94

Found forked winget-pkgs repository: coreybutler/winget-pkgs
  Failed to create pull request
  node:internal/errors:841
    const err = new Error(message);
                ^
  
  Error: Command failed: & $env:JAVA_HOME_17_X64\bin\java.exe -jar komac.jar update --id 'CoreyButler.NVMforWindows' --version 1.1.11 --urls 'https://github.com/coreybutler/nvm-windows/releases/download/1.1.11/nvm-setup.exe' --submit
      at checkExecSyncError (node:child_process:828:11)
      at execSync (node:child_process:899:15)
      at D:\a\_actions\vedantmgoyal2009\winget-releaser\v2\dist\index.js:77:39
      at processTicksAndRejections (node:internal/process/task_queues:[96](https://github.com/coreybutler/nvm-windows/actions/runs/4685243965/jobs/8313882263#step:2:97):5) {
    status: 1,
    signal: null,
    output: [ null, null, null ],
    pid: 2592,
    stdout: null,
    stderr: null
  }
@russellbanks
Copy link
Owner

russellbanks commented Apr 16, 2023

I'm not too sure on the reason here - I'm thinking it could be a one-time issue and running it again should fix it, but the error isn't too helpful so I'm adding more information to it in the next update

@russellbanks
Copy link
Owner

I'll also add some retry logic so that if this were to happen again, we could (unless GitHub's servers were down or something) rule out that it needed to be ran again.

@sitiom
Copy link
Author

sitiom commented Apr 17, 2023

I'm thinking it could be a one-time issue and running it again should fix it, but the error isn't too helpful so I'm adding more information to it in the next update

That was already the 4th attempt (technically 2 attempts; the asset was missing from the first 2 attempts). Manually running the command on my machine worked, though.

@crsib
Copy link

crsib commented Apr 24, 2023

russellbanks added a commit that referenced this issue Apr 24, 2023
@russellbanks
Copy link
Owner

russellbanks commented Apr 24, 2023

Thanks @crsib - I've added reasoning to the error and retry logic in 1.5.0 that I will release later.

I'm not sure what would cause this just by looking at it because it happens successfully when running manually.

@vedantmgoyal9
Copy link
Contributor

Although it has been defined in the message to show the reason, it is never displayed. Any clue @russellbanks?

message = """
Failed to create pull request after $maxTries attempts.
${ioException.message?.let { "Reason: $it" }}.
""".trimIndent(),

@russellbanks
Copy link
Owner

Although it has been defined in the message to show the reason, it is never displayed. Any clue @russellbanks?

Both those jobs were created with Komac 1.4.1. The error reasoning was added in 1.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants