Mayankaggarwal8055 opened a new pull request, #64753:
URL: https://github.com/apache/airflow/pull/64753
This PR introduces a utility for detecting execution context (WSL, host,
Docker container) and providing environment-aware command recommendations for
Breeze workflows.
### Why is this important?
This work aligns with the GSoC 2026 project:
**"Airflow Contribution & Verification Agent Skills" (#62500)**
A key requirement of the project is enabling AI agents to:
- Detect whether they are running on host or inside Breeze
- Choose appropriate commands based on environment
This PR implements a foundational step toward that goal by providing:
- A consistent environment detection mechanism
- A simple API for retrieving recommended commands
### Key Features
- Detect WSL using:
- environment variables
- `/proc/version`
- kernel release
- Detect container execution via `/.dockerenv`
- Detect Docker availability using `docker info`
- Provide recommended command:
- `pytest` (inside container)
- `breeze shell` (host)
### Tests
- Added comprehensive unit tests with proper mocking
- Ensured isolation of system-dependent behavior (e.g. `/proc/version`,
subprocess calls)
### Notes
This is an initial PoC toward environment-awareness for AI-assisted
workflows and can be extended to support broader agent skill integration.
### Related Issue
Related to #62500
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]