Skip to content

Azure OpenRewrite Sample Compiler CI #45569

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 45 commits into from
Jun 18, 2025

Conversation

jairmyree
Copy link
Member

@jairmyree jairmyree commented Jun 3, 2025

This pull request introduces a new CI pipeline configuration for the OpenRewrite Compiler Plugin in the sdk/tools/openrewrite-sample-compiler-ci.yml file. The pipeline is designed to compile samples, install dependencies, build the OpenRewrite Compiler Maven Plugin, and run the golden image compiler on OpenRewrite samples.

CI Pipeline Configuration Changes:

  • Pipeline Trigger Setup: Configured the pipeline to trigger on changes to the main branch and paths under /sdk/tools/.
  • Pipeline Extension: Extended the pipeline using the 1es-redirect.yml template with parameters for stages and variables.
  • Job Definition: Added the OpenRewriteCompilerPlugin job with a Linux pool and a timeout of 60 minutes, including steps for sparse checkout, dependency installation, plugin build, and sample compilation.
  • Dependency Installation: Added a PowerShell step to install required dependencies from source using Maven commands with various flags to skip unnecessary tasks.
  • Build and Run Steps:
    • Configured a Maven task to build and install the OpenRewrite Compiler Maven Plugin.
    • Configured another Maven task to run the golden image compiler on OpenRewrite samples using the plugin.

Additional Notes

  • This version of the pipeline builds from source since core-v2 has not released a beta. I would like to have a discussion about whether we also want to extend this pipeline / create a secondary pipeline that runs not from source.
    • Changed core sample 16 to reflect what's in main.

@Copilot Copilot AI review requested due to automatic review settings June 3, 2025 18:05
@github-actions github-actions bot added the Azure SDK Tools Label for tracking issues related to Azure SDK Tools label Jun 3, 2025
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 a new Azure DevOps CI pipeline for the OpenRewrite Compiler Maven Plugin samples, ensuring compilation and golden image generation.

  • Sets up triggers on main branch and changes under /sdk/tools/
  • Extends the 1es-redirect template and defines a CompileSamples stage with an OpenRewriteCompilerPlugin job
  • Implements sparse checkout, a PowerShell step for dependency installation, and Maven tasks to build the plugin and run the golden image compiler

@jairmyree
Copy link
Member Author

Closes #45570

@jairmyree jairmyree linked an issue Jun 3, 2025 that may be closed by this pull request
@jairmyree jairmyree requested a review from samvaity as a code owner June 3, 2025 19:21
Copy link
Contributor

github-actions bot commented Jun 3, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

com.azure:azure-openrewrite

@jairmyree
Copy link
Member Author

Unknown matching was causing recipe failures, so it's been removed

@jairmyree jairmyree changed the title Azure OpenRewrite Sample Compiler Azure OpenRewrite Sample Compiler CI Jun 16, 2025
@jairmyree jairmyree requested a review from srnagar June 16, 2025 22:58
@jairmyree jairmyree merged commit 15b60fb into main Jun 18, 2025
23 checks passed
@jairmyree jairmyree deleted the jairmyree/openrewrite/sample-compiler branch June 18, 2025 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure SDK Tools Label for tracking issues related to Azure SDK Tools OpenRewrite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Compiler Pipeline for OpenRewrite Samples
3 participants