Skip to content

Update actions - #70

Merged
tamzi merged 7 commits into
developfrom
update-actions
Oct 23, 2025
Merged

Update actions#70
tamzi merged 7 commits into
developfrom
update-actions

Conversation

@tamzi

@tamzi tamzi commented Oct 23, 2025

Copy link
Copy Markdown
Contributor

! Edit this before submitting your PR !(Remove this after editing)


name: Pull request
about: Create a pull request
label: 'triage me'
Fixes Referenced Issue #_.


How can this PR be tested?

Please describe how the reviewers can test your changes here. i.e To test it Log
off the internet


Thank you for opening a Pull Request!
Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Ensure your branch is up to date with develop branch.
  • Ensure your branch runs without breaking.
  • Ensure you solved any merge conflicts.
  • Smaller PRs for the ease of reviewing
  • Make sure to open a GitHub issue as a bug/feature request before writing your code! This means that we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass (./gradlew --init-script gradle/init.gradle.kts spotlessApply to automatically apply formatting)
  • Appropriate docs were updated (You are adding code so...)
  • Tests have been written

Is this your first Pull Request?

  • Run ./tools/setup.sh
  • Import the code formatting style as explained in the setup script.

Fixes #<issue_number_goes_here> 🦕

Screenshot

For PRs that change the UI, attach a before/after screenshot.
[REMOVE THIS SECTION IF IT DOES NOT APPLY TO THIS PR]

Copilot AI review requested due to automatic review settings October 23, 2025 07:27

Copilot AI left a comment

Copy link
Copy Markdown

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 updates GitHub Actions workflow configurations and optimizes CI/CD build performance through parallel execution, enhanced caching strategies, and updated action versions. The changes aim to reduce build times by approximately 48% through parallel job execution and improved Gradle configuration.

Key changes:

  • Updated GitHub Actions from v4 to v5 and added configuration cache support
  • Enabled parallel execution for lint, build, and test jobs instead of sequential execution
  • Enhanced Gradle properties for both local and CI environments with increased memory allocation and worker counts

Reviewed Changes

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

Show a summary per file
File Description
.github/workflows/main.yml Updated action versions to v5, added configuration cache flags, changed jobs to run in parallel, downgraded cancel-workflow-action
.github/ci-gradle.properties Increased worker count to 4, enabled configuration cache and incremental compilation, expanded JVM memory to 4GB
gradle.properties Enhanced JVM args, enabled parallel builds and caching, added Kotlin compiler optimizations
chai/build.gradle.kts Added debug build type configuration, disabled BuildConfig generation, reorganized buildFeatures block
chaidemo/build.gradle.kts Added explicit debug build type configuration, disabled BuildConfig generation
README.md Added CI/CD Quick Start section with local testing commands and documentation links
docs/quick-start-ci.md New comprehensive CI/CD quick start guide with local development setup and troubleshooting
docs/ci-workflow-guide.md Updated with parallel execution details, timing expectations, and optimization information
docs/ci-build-optimization.md New guide detailing build optimization strategies and troubleshooting steps
Comments suppressed due to low confidence (1)

docs/ci-workflow-guide.md:1

  • Corrected spelling of 'depndencies' to 'dependencies'.
# CI/CD Workflow Guide

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

uses: gradle/actions/setup-gradle@v5
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}

Copilot AI Oct 23, 2025

Copy link

Choose a reason for hiding this comment

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

The cache-encryption-key parameter is being added but relies on a GitHub secret (GRADLE_ENCRYPTION_KEY) that may not be configured. If this secret is not set up in the repository settings, the workflow will fail or the cache encryption feature will not work as intended. Ensure this secret is properly configured before merging, or consider making this parameter conditional.

Copilot uses AI. Check for mistakes.
Comment thread chai/build.gradle.kts
Comment on lines +43 to +50
//See if i can add this to build Logic
debug {
isMinifyEnabled = false
}
}

// Disable BuildConfig generation for library (not needed, saves build time)
//See if i can add this to build Logic

Copilot AI Oct 23, 2025

Copy link

Choose a reason for hiding this comment

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

The comment uses inconsistent capitalization ('i' instead of 'I') and lacks proper punctuation. Comments should follow proper grammar and capitalization. Consider: '// TODO: See if this can be added to build logic'.

Suggested change
//See if i can add this to build Logic
debug {
isMinifyEnabled = false
}
}
// Disable BuildConfig generation for library (not needed, saves build time)
//See if i can add this to build Logic
// TODO: See if this can be added to build logic.
debug {
isMinifyEnabled = false
}
}
// Disable BuildConfig generation for library (not needed, saves build time)
// TODO: See if this can be added to build logic.

Copilot uses AI. Check for mistakes.
Comment thread chai/build.gradle.kts
}

// Disable BuildConfig generation for library (not needed, saves build time)
//See if i can add this to build Logic

Copilot AI Oct 23, 2025

Copy link

Choose a reason for hiding this comment

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

Same capitalization and punctuation issue as the previous comment. Should be '// TODO: See if this can be added to build logic'.

Suggested change
//See if i can add this to build Logic
// TODO: See if this can be added to build logic

Copilot uses AI. Check for mistakes.
Comment thread gradle.properties
org.gradle.caching=true
# Enable configuration cache (experimental but stable)
org.gradle.configuration-cache=true
# Careful here: Please Increase worker count for parallel builds (adjust based on your CPU cores)

Copilot AI Oct 23, 2025

Copy link

Choose a reason for hiding this comment

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

[nitpick] The comment has inconsistent capitalization ('Increase' is capitalized mid-sentence) and could be more concise. Consider: '# Increase worker count for parallel builds (adjust based on your CPU cores)'.

Suggested change
# Careful here: Please Increase worker count for parallel builds (adjust based on your CPU cores)
# Increase worker count for parallel builds (adjust based on your CPU cores)

Copilot uses AI. Check for mistakes.
@tamzi
tamzi merged commit 39104bb into develop Oct 23, 2025
5 checks passed
@tamzi
tamzi deleted the update-actions branch June 18, 2026 23:50
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.

2 participants