Skip to content

Conversation

@dassayantan24
Copy link
Contributor

@dassayantan24 dassayantan24 commented Dec 31, 2025

Context

Unit tests validating node path resolution for containerized pipeline tasks across different platforms.

Work-Item [AB#2345216] - https://dev.azure.com/mseng/AzureDevOps/_workitems/edit/2345216/


Description

The Azure Pipelines Agent provides the ability to run pipeline tasks in a container. During the initialize container step, the agent invokes a container start operation which creates a separate process in which the task executes. These tests cover the agent code that determines the correct node path based on the node path label in the Dockerfile. Three key parameters are directly involved in node-related operations: CustomNodePath (extracted from Docker label), ResultNodePath (final resolved path), and ContainerCommand (command executed in the container).


Risk Assessment (Low / Medium / High)

Low


Unit Tests Added or Updated (Yes / No)

Yes


Additional Testing Performed

List manual or automated tests performed beyond unit tests (e.g., integration, scenario, regression).
N/A


Change Behind Feature Flag (Yes / No)

No


Tech Design / Approach

  • Design has been written and reviewed. Yes
  • Any architectural decisions, trade-offs, and alternatives are captured. Yes

Documentation Changes Required (Yes/No)

ContainerOperationProvider L0 Tes.txt


Logging Added/Updated (Yes/No)

  • Appropriate log statements are added with meaningful messages.
  • Logging does not expose sensitive data.
  • Log levels are used correctly (e.g., info, warn, error).

Telemetry Added/Updated (Yes/No)

  • Custom telemetry (e.g., counters, timers, error tracking) is added as needed.
  • Events are tagged with proper metadata for filtering and analysis.
  • Telemetry is validated in staging or test environments.

Rollback Scenario and Process (Yes/No)

  • Rollback plan is documented.

Dependency Impact Assessed and Regression Tested (Yes/No)

  • All impacted internal modules, APIs, services, and third-party libraries are analyzed.
  • Results are reviewed and confirmed to not break existing functionality.

@dassayantan24
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dassayantan24
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dassayantan24
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dassayantan24
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dassayantan24
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dassayantan24
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dassayantan24
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -0,0 +1,285 @@
// Copyright (c) Microsoft Corporation.
Copy link
Contributor

Choose a reason for hiding this comment

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

can we please add a base class or interface and both containeroperation and containeroperationenhanced can inherit from that

@dassayantan24
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dassayantan24
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dassayantan24
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dassayantan24
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dassayantan24
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dassayantan24
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dassayantan24 dassayantan24 marked this pull request as ready for review January 12, 2026 09:23
@dassayantan24 dassayantan24 requested review from a team as code owners January 12, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants