Skip to content

Add new logs path related to runner migration #211

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

Merged
merged 4 commits into from
Jul 11, 2025
Merged

Conversation

HarithaVattikuti
Copy link
Contributor

Added code to validate logs path based on runners

@Copilot Copilot AI review requested due to automatic review settings July 10, 2025 04:55
@HarithaVattikuti HarithaVattikuti requested a review from a team as a code owner July 10, 2025 04:55
Copilot

This comment was marked as outdated.

@HarithaVattikuti HarithaVattikuti requested a review from Copilot July 10, 2025 22:30
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds flexible log directory resolution for migrated runner paths and improves error handling in the Get-UseNodeLogs test helper.

  • Introduces a list of candidate paths (actions-runner/cached/_diag/pages and runners/*/_diag/pages) and selects the first existing one.
  • Resolves the selected path before searching for setup-node@v log entries.
  • Adds error messages when no valid path or matching log file is found.
Comments suppressed due to low confidence (1)

tests/Node.Tests.ps1:12

  • [nitpick] The variable name $possiblePaths is generic; consider renaming it to something like $candidateLogPaths to clarify its purpose.
            $possiblePaths = @(

Co-authored-by: Copilot <[email protected]>
@HarithaVattikuti HarithaVattikuti merged commit 2f48f5f into main Jul 11, 2025
16 checks passed
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

Successfully merging this pull request may close these issues.

4 participants