Skip to content

Update actions - #69

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

Update actions#69
tamzi merged 6 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:24
@tamzi
tamzi merged commit 3cad492 into develop Oct 23, 2025
4 of 5 checks passed

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 the GitHub Actions CI/CD workflow to improve build performance through parallel job execution and enhanced caching strategies. The changes enable the build, lint, and test jobs to run concurrently instead of sequentially, reducing total build time by approximately 48%.

Key changes include:

  • Parallel execution of lint, build, and test jobs (previously sequential)
  • Configuration cache enabled across all Gradle commands for 30-50% faster builds
  • Updated GitHub Actions to v5 and enhanced Gradle properties for CI optimization

Reviewed Changes

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

Show a summary per file
File Description
.github/workflows/main.yml Updated job dependencies for parallel execution, upgraded actions to v5, added configuration cache flag and encryption key
.github/ci-gradle.properties Enhanced CI-specific Gradle settings with increased workers, configuration cache, and optimized JVM settings
gradle.properties Optimized local development with increased memory, parallel execution, and configuration cache
README.md Added CI/CD Quick Start section with local testing commands and documentation links
docs/quick-start-ci.md New comprehensive guide for CI/CD setup and local development workflow
docs/ci-workflow-guide.md Updated with parallel execution details, timing expectations, and troubleshooting guidance
docs/ci-build-optimization.md New optimization guide with performance tuning recommendations
chai/build.gradle.kts Disabled BuildConfig generation and reorganized build features configuration
chaidemo/build.gradle.kts Added explicit debug build type configuration and disabled BuildConfig

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

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

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 requires a secret to be configured in the repository settings. Add a note in the PR description or documentation explaining that GRADLE_ENCRYPTION_KEY must be set up in GitHub repository secrets before this workflow will function correctly.

Suggested change
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}
# NOTE: The cache-encryption-key parameter requires the GRADLE_ENCRYPTION_KEY secret to be configured
# in the repository settings. Please ensure that GRADLE_ENCRYPTION_KEY is set in GitHub repository secrets
# before this workflow will function correctly.

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 'See if i can add this to build Logic' should be either removed or converted to a proper TODO comment. If this is a planned refactoring, use // TODO: Move to build logic for better tracking.

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: Move to build logic
debug {
isMinifyEnabled = false
}
}
// Disable BuildConfig generation for library (not needed, saves build time)
// TODO: Move to build logic

Copilot uses AI. Check for mistakes.
Comment thread chai/build.gradle.kts
Comment on lines +49 to 54
// Disable BuildConfig generation for library (not needed, saves build time)
//See if i can add this to build Logic
buildFeatures {
buildConfig = false
compose = true
}

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 'See if i can add this to build Logic' should be either removed or converted to a proper TODO comment. If this is a planned refactoring, use // TODO: Move to build logic for better tracking.

Copilot uses AI. Check for mistakes.
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