microsoft / PowerShellForGitHub

Microsoft PowerShell wrapper for GitHub API
Other
582 stars 184 forks source link

The command cannot find the job because the job name Invoke-UpdateCheck-20221031 was not found #374

Closed tunisiano187 closed 1 month ago

tunisiano187 commented 1 year ago

Issue Details

When using your script, i receive this message The command cannot find the job because the job name Invoke-UpdateCheck-20221031 was not found

Steps to reproduce the issue

   $Info.result.pushed | % {
    $package = $_
    $issue=Get-GitHubIssue -OwnerName $Owner -RepositoryName $Repo -State Open | Where-Object {$_.title -match "$($package.Name)"}
    if($issue) {
        New-GitHubComment -OwnerName $Owner -RepositoryName $Repo -Issue $issue.IssueNumber -Body "$($package.Name) Updated to $($package.NuspecVersion)"
    }
}

Verbose logs showing the problem

https://ci.appveyor.com/project/tunisiano187/chocolatey-packages#L3765

Operating System

Caption : Microsoft Windows Server 2019 Datacenter OSArchitecture : 64-bit Version : 10.0.17763 $PSVersionTable Name Value


PSVersion 5.1.17763.2268
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.2268
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

HowardWolosky commented 1 year ago

Is this issue repro'ing with any consistency? There's an async task that's kicked-off in the background when the module first gets loaded in order to see if there is an updated version of the module. Failures to that async task (or to retrieving its result) are non-critical and don't affect the performance of the main module commands.

I've been unable to reproduce the problem myself, and the logs that you linked to don't appear to demonstrate the issue any longer.

tunisiano187 commented 1 year ago

I've added set-githubconfi... Disable update and that's solving the problem. I don't know if this issue is still relevant.