Skip to content
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

IEP-1179: Change to windows self hosted runner #911

Merged
merged 38 commits into from
Apr 29, 2024
Merged

IEP-1179: Change to windows self hosted runner #911

merged 38 commits into from
Apr 29, 2024

Conversation

alirana01
Copy link
Collaborator

@alirana01 alirana01 commented Mar 7, 2024

Change to ci for windows self hosted runner

Summary by CodeRabbit

  • New Features
    • Enhanced Maven and Tycho version management across multiple configuration files for improved build performance.
    • Updated Python and JDK versions in CI workflows to support latest features and security patches.
    • Introduced a new interface for conditional waits in test utilities, enhancing test reliability.
  • Bug Fixes
    • Fixed the environment setup in test operations to synchronize with C/C++ Indexer settings, ensuring accurate project environment configurations.
  • Refactor
    • Optimized project deletion process in test operations for efficiency and reliability.
    • Modified test execution flow by adjusting after-test cleanup to class level, reducing redundancy and potential errors.
  • Style
    • Removed the --openfolder option from the bless command in the DMG creation script, altering how the mounted window appears.
  • Tests
    • Adjusted test cases to reflect specific scenarios more accurately, improving test clarity and relevance.
  • Chores
    • Updated action versions and environments in CI workflows to align with current best practices and tool versions.

Copy link

coderabbitai bot commented Mar 7, 2024

Walkthrough

The recent updates across various configuration and test files primarily focus on upgrading versions for Maven, Python, and Tycho, enhancing CI workflows, and refining test utilities and methods. These changes aim to improve the build process, testing efficiency, and overall code maintainability in a systematic and modernized development environment.

Changes

Files Change Summary
.github/workflows/ci.yml,
.github/workflows/ci_windows.yml
Updated environments, action versions, and Maven configurations. Added new parameters and environment variables.
bundles/pom.xml,
tests/pom.xml,
releng/com.espressif.idf.configuration/pom.xml
Updated Maven and Tycho versions, and introduced variable usage for versions.
tests/.../EspressifMenuTest.java,
tests/.../LaunchBarCDTConfigurationsTest.java,
tests/.../NewEspressifIDFProjectTest.java,
tests/.../EnvSetupOperations.java,
tests/.../ProjectTestOperations.java
Enhanced test setups, refactored methods, and updated import statements. Adjustments in test class annotations.
releng/ide-dmg-builder/create-dmg/create-dmg Modified the bless command usage in the script.

🐰✨
A hop, a skip, a code deploy,
Changes bloom like spring's first joy.
Maven's tune, Python's ploy,
Tests refined for bugs to destroy.
🌼🚀🌼


Recent Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between f066d51 and e94296d.
Files selected for processing (1)
  • releng/ide-dmg-builder/create-dmg/create-dmg (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • releng/ide-dmg-builder/create-dmg/create-dmg

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 376b484 and 0474fe8.
Files selected for processing (2)
  • .github/workflows/ci.yml (1 hunks)
  • .github/workflows/ci_windows.yml (1 hunks)
Additional comments: 2
.github/workflows/ci_windows.yml (1)
  • 15-18: The modification to the runs-on configuration to include self-hosted, eclipse, BrnoWIN0007 is a strategic move towards utilizing specific, self-hosted runners for Windows builds. This should offer better control over the build environment and potentially improve build performance. Ensure that these runners are properly configured and available for use to avoid disruptions in the CI process.
.github/workflows/ci.yml (1)
  • 18-18: The addition of BrnoUBU0004 to the runs-on configuration is a positive step towards expanding the selection of runners, likely for Ubuntu-based tasks. Ensure that this runner is properly configured and available for use to avoid disruptions in the CI process.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 0474fe8 and ba952e7.
Files selected for processing (1)
  • .github/workflows/ci_windows.yml (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/ci_windows.yml

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between ba952e7 and cbb1021.
Files selected for processing (1)
  • .github/workflows/ci_windows.yml (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/ci_windows.yml

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between cbb1021 and 29cc8bf.
Files ignored due to path filters (1)
  • releng/com.espressif.idf.configuration/pom.xml is excluded by: !**/*.xml
Files selected for processing (2)
  • .github/workflows/ci.yml (2 hunks)
  • .github/workflows/ci_windows.yml (1 hunks)
Files skipped from review as they are similar to previous changes (2)
  • .github/workflows/ci.yml
  • .github/workflows/ci_windows.yml

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 9

@@ -178,7 +178,7 @@ private static void whenProjectIsBuiltUsingToolbarButton() throws IOException
{
bot.toolbarButtonWithTooltip("Build").click();
ProjectTestOperations.waitForProjectBuild(bot);
TestWidgetWaitUtility.waitForOperationsInProgressToFinish(bot);
// TestWidgetWaitUtility.waitForOperationsInProgressToFinish(bot);
Copy link

Choose a reason for hiding this comment

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

Commenting out waitForOperationsInProgressToFinish may lead to flaky tests due to incomplete operations. Consider reverting this change or justifying its removal.

@@ -188,7 +188,7 @@

private static void thenConsoleShowsBuildSuccessful()
{
TestWidgetWaitUtility.waitForOperationsInProgressToFinish(bot);
// TestWidgetWaitUtility.waitForOperationsInProgressToFinish(bot);
Copy link

Choose a reason for hiding this comment

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

Commenting out waitForOperationsInProgressToFinish may lead to flaky tests due to incomplete operations. Consider reverting this change or justifying its removal.

@@ -208,7 +208,7 @@

private static void cleanTestEnv()
{
TestWidgetWaitUtility.waitForOperationsInProgressToFinish(bot);
// TestWidgetWaitUtility.waitForOperationsInProgressToFinish(bot);
Copy link

Choose a reason for hiding this comment

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

Commenting out waitForOperationsInProgressToFinish may lead to flaky tests due to incomplete operations. Consider reverting this change or justifying its removal.

@@ -284,7 +284,7 @@ private static void whenProjectIsCopied(String projectName, String projectCopyNa
{
ProjectTestOperations.copyProjectToExistingWorkspace(projectName, projectCopyName, bot,
DefaultPropertyFetcher.getLongPropertyValue("default.project.copy.wait", 60000));
TestWidgetWaitUtility.waitForOperationsInProgressToFinish(bot);
// TestWidgetWaitUtility.waitForOperationsInProgressToFinish(bot);
Copy link

Choose a reason for hiding this comment

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

Commenting out waitForOperationsInProgressToFinish may lead to flaky tests due to incomplete operations. Consider reverting this change or justifying its removal.

@@ -305,7 +305,7 @@
{
ProjectTestOperations.buildProjectUsingContextMenu(projectName, bot);
ProjectTestOperations.waitForProjectBuild(bot);
TestWidgetWaitUtility.waitForOperationsInProgressToFinish(bot);
// TestWidgetWaitUtility.waitForOperationsInProgressToFinish(bot);
Copy link

Choose a reason for hiding this comment

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

Commenting out waitForOperationsInProgressToFinish may lead to flaky tests due to incomplete operations. Consider reverting this change or justifying its removal.

@@ -404,25 +404,25 @@

private static void closeProject(String projectName)
{
TestWidgetWaitUtility.waitForOperationsInProgressToFinish(bot);
// TestWidgetWaitUtility.waitForOperationsInProgressToFinish(bot);
Copy link

Choose a reason for hiding this comment

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

Commenting out waitForOperationsInProgressToFinish may lead to flaky tests due to incomplete operations. Consider reverting this change or justifying its removal.

ProjectTestOperations.closeProject(projectName, bot);
}

private static void deleteProject(String projectName)
{
TestWidgetWaitUtility.waitForOperationsInProgressToFinish(bot);
// TestWidgetWaitUtility.waitForOperationsInProgressToFinish(bot);
Copy link

Choose a reason for hiding this comment

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

Commenting out waitForOperationsInProgressToFinish may lead to flaky tests due to incomplete operations. Consider reverting this change or justifying its removal.

ProjectTestOperations.deleteProject(projectName, bot);
}

private static void deleteProjectAndConfigs(String projectName)
{
TestWidgetWaitUtility.waitForOperationsInProgressToFinish(bot);
// TestWidgetWaitUtility.waitForOperationsInProgressToFinish(bot);
Copy link

Choose a reason for hiding this comment

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

Commenting out waitForOperationsInProgressToFinish may lead to flaky tests due to incomplete operations. Consider reverting this change or justifying its removal.

ProjectTestOperations.deleteProjectAndAllRelatedConfigs(projectName, bot);
}

private static void cleanTestEnv()
{
TestWidgetWaitUtility.waitForOperationsInProgressToFinish(bot);
// TestWidgetWaitUtility.waitForOperationsInProgressToFinish(bot);
Copy link

Choose a reason for hiding this comment

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

Commenting out waitForOperationsInProgressToFinish may lead to flaky tests due to incomplete operations. Consider reverting this change or justifying its removal.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Out of diff range and nitpick comments (1)
releng/ide-dmg-builder/create-dmg/create-dmg (1)

389-389: Consider removing commented code to improve code clarity.

@alirana01 alirana01 merged commit 61055e6 into master Apr 29, 2024
7 checks passed
@alirana01 alirana01 deleted the IEP-1179 branch April 29, 2024 10:04
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.

1 participant