Compare commits

...

5 Commits

Author SHA1 Message Date
Haritha
b845aa0df4 Log retrieval logic update (#232)
* Update log retrieval logic in Node.Tests.ps1

Refactor Get-UseNodeLogs function to find logs in runner root directory instead of home directory.

* Update comment to reflect the correct directory

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Modify path retrieval logic

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-13 21:48:59 -06:00
github-actions[bot]
4175843c81 Update versions-manifest (#231)
Co-authored-by: Service account <no-reply@microsoft.com>
2025-12-11 11:59:01 -06:00
Haritha
ff3fc4cc4e Add new path for ubuntu runner (#230) 2025-12-11 10:57:18 -06:00
github-actions[bot]
5c7702bb19 Update versions-manifest (#229)
Co-authored-by: Service account <no-reply@microsoft.com>
2025-11-25 21:14:19 -06:00
github-actions[bot]
318aa75a51 Update versions-manifest (#227)
Co-authored-by: Service account <no-reply@microsoft.com>
2025-11-11 21:47:48 -06:00
2 changed files with 149 additions and 8 deletions

View File

@@ -6,16 +6,25 @@ Describe "Node.js" {
BeforeAll {
function Get-UseNodeLogs {
# GitHub Windows images don't have `HOME` variable
$homeDir = $env:HOME ?? $env:HOMEDRIVE
$possiblePaths = @(
Join-Path -Path $homeDir -ChildPath "actions-runner/cached/_diag/pages"
Join-Path -Path $homeDir -ChildPath "runners/*/_diag/pages"
)
$runnerProc = Get-Process -Name "Runner.Listener" -ErrorAction SilentlyContinue | Select-Object -First 1
#Write-Host "`$runnerProc: $($runnerProc | Out-String)"
if (-not $runnerProc -or -not $runnerProc.Path) {
Write-Error "Runner.Listener process not found."
return
}
# Go up two directories to get runner root
$runnerRoot = Split-Path (Split-Path $runnerProc.Path -Parent) -Parent
#Write-Host "`$runnerRoot: $runnerRoot"
# Recursively find all _diag/pages folders under the runner root directory
$possiblePaths = Get-ChildItem -Path $runnerRoot -Directory -Recurse -Depth 4 -ErrorAction SilentlyContinue |
Where-Object { $_.FullName -like "*_diag\pages" -or $_.FullName -like "*_diag/pages" }
Write-Host "LogsPaths:"
$possiblePaths | ForEach-Object { Write-Host $_.FullName }
$logsFolderPath = $possiblePaths | Where-Object { Test-Path $_ } | Select-Object -First 1
$resolvedPath = Resolve-Path -Path $logsFolderPath -ErrorAction SilentlyContinue
if ($logsFolderPath) {
$resolvedPath = Resolve-Path -Path $logsFolderPath -ErrorAction SilentlyContinue
}
if ($resolvedPath -and -not [string]::IsNullOrEmpty($resolvedPath.Path) -and (Test-Path $resolvedPath.Path)) {
$useNodeLogFile = Get-ChildItem -Path $resolvedPath | Where-Object {

View File

@@ -1,4 +1,92 @@
[
{
"version": "24.12.0",
"stable": true,
"lts": "Krypton",
"release_url": "https://github.com/actions/node-versions/releases/tag/24.12.0-20140960970",
"files": [
{
"filename": "node-24.12.0-darwin-arm64.tar.gz",
"arch": "arm64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/24.12.0-20140960970/node-24.12.0-darwin-arm64.tar.gz"
},
{
"filename": "node-24.12.0-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/24.12.0-20140960970/node-24.12.0-darwin-x64.tar.gz"
},
{
"filename": "node-24.12.0-linux-arm64.tar.gz",
"arch": "arm64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/24.12.0-20140960970/node-24.12.0-linux-arm64.tar.gz"
},
{
"filename": "node-24.12.0-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/24.12.0-20140960970/node-24.12.0-linux-x64.tar.gz"
},
{
"filename": "node-24.12.0-win32-arm64.7z",
"arch": "arm64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/24.12.0-20140960970/node-24.12.0-win32-arm64.7z"
},
{
"filename": "node-24.12.0-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/24.12.0-20140960970/node-24.12.0-win32-x64.7z"
}
]
},
{
"version": "24.11.1",
"stable": true,
"lts": "Krypton",
"release_url": "https://github.com/actions/node-versions/releases/tag/24.11.1-19282993875",
"files": [
{
"filename": "node-24.11.1-darwin-arm64.tar.gz",
"arch": "arm64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/24.11.1-19282993875/node-24.11.1-darwin-arm64.tar.gz"
},
{
"filename": "node-24.11.1-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/24.11.1-19282993875/node-24.11.1-darwin-x64.tar.gz"
},
{
"filename": "node-24.11.1-linux-arm64.tar.gz",
"arch": "arm64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/24.11.1-19282993875/node-24.11.1-linux-arm64.tar.gz"
},
{
"filename": "node-24.11.1-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/24.11.1-19282993875/node-24.11.1-linux-x64.tar.gz"
},
{
"filename": "node-24.11.1-win32-arm64.7z",
"arch": "arm64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/24.11.1-19282993875/node-24.11.1-win32-arm64.7z"
},
{
"filename": "node-24.11.1-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/24.11.1-19282993875/node-24.11.1-win32-x64.7z"
}
]
},
{
"version": "24.11.0",
"stable": true,
@@ -1891,6 +1979,50 @@
}
]
},
{
"version": "20.19.6",
"stable": true,
"lts": "Iron",
"release_url": "https://github.com/actions/node-versions/releases/tag/20.19.6-19690675733",
"files": [
{
"filename": "node-20.19.6-darwin-arm64.tar.gz",
"arch": "arm64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/20.19.6-19690675733/node-20.19.6-darwin-arm64.tar.gz"
},
{
"filename": "node-20.19.6-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/20.19.6-19690675733/node-20.19.6-darwin-x64.tar.gz"
},
{
"filename": "node-20.19.6-linux-arm64.tar.gz",
"arch": "arm64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/20.19.6-19690675733/node-20.19.6-linux-arm64.tar.gz"
},
{
"filename": "node-20.19.6-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/20.19.6-19690675733/node-20.19.6-linux-x64.tar.gz"
},
{
"filename": "node-20.19.6-win32-arm64.7z",
"arch": "arm64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/20.19.6-19690675733/node-20.19.6-win32-arm64.7z"
},
{
"filename": "node-20.19.6-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/20.19.6-19690675733/node-20.19.6-win32-x64.7z"
}
]
},
{
"version": "20.19.5",
"stable": true,