Skip to content

Custom Image: Preflight checks#4081

Merged
TingluoHuang merged 8 commits intoactions:mainfrom
lawrencegripper:lg/preflight-snapshot
Oct 16, 2025
Merged

Custom Image: Preflight checks#4081
TingluoHuang merged 8 commits intoactions:mainfrom
lawrencegripper:lg/preflight-snapshot

Conversation

@lawrencegripper
Copy link
Copy Markdown

No description provided.

@lawrencegripper lawrencegripper marked this pull request as ready for review October 16, 2025 19:55
@lawrencegripper lawrencegripper requested a review from a team as a code owner October 16, 2025 19:55
Copilot AI review requested due to automatic review settings October 16, 2025 19:55
Copy link
Copy Markdown
Contributor

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

This PR implements preflight checks for snapshot operations in GitHub Actions runners. The changes ensure that snapshots can only be created on appropriate environments by validating the runner type and image generation capabilities before proceeding with snapshot creation.

Key changes:

  • Added preflight validation to check runner environment and image generation status
  • Enhanced snapshot operation logging to include image name and version information
  • Added comprehensive test coverage for various preflight check scenarios

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/Runner.Common/Constants.cs Added feature flags for snapshot preflight checks
src/Runner.Worker/SnapshotOperationProvider.cs Implemented preflight check logic and enhanced logging
src/Runner.Worker/JobExtension.cs Integrated preflight checks into job initialization
src/Test/L0/Worker/SnapshotOperationProviderL0.cs Updated test to verify new logging output
src/Test/L0/Worker/JobExtensionL0.cs Added comprehensive test coverage for preflight scenarios

@TingluoHuang TingluoHuang force-pushed the lg/preflight-snapshot branch from a2a6bfb to ba675bd Compare October 16, 2025 20:11
@TingluoHuang TingluoHuang enabled auto-merge (squash) October 16, 2025 20:11
@TingluoHuang TingluoHuang merged commit 60af948 into actions:main Oct 16, 2025
9 checks passed
alinetskyi pushed a commit to CoreumFoundation/runner that referenced this pull request Jan 26, 2026
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.

3 participants