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

[Dependency Cache] Dependency Cache on CI per Project [without GRADLE_RO_DEP_CACHE] #13170

Draft
wants to merge 10 commits into
base: trunk
Choose a base branch
from

Conversation

ParaskP7
Copy link
Contributor

@ParaskP7 ParaskP7 commented Dec 19, 2024

Related: #13122

Description

This is a test only PR that attempts to test another dependency cache mechanism, one that does NOT dependent on the read-only cache (GRADLE_RO_DEP_CACHE), and per project.

Testing information

N/A

Tip

To verify that GRADLE_RO_DEP_CACHE is NOT enabled make sure you don't see this Shared read-only dependency cache is an incubating feature. log when Gradle launches for a CI build (example).

  • I have considered if this change warrants release notes and have added them to RELEASE-NOTES.txt if necessary. Use the "[Internal]" label for non-user-facing changes.

Reviewer (or Author, in the case of optional code reviews):

Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement:

  • The PR is small and has a clear, single focus, or a valid explanation is provided in the description. If needed, please request to split it into smaller PRs.
  • Ensure Adequate Unit Test Coverage: The changes are reasonably covered by unit tests or an explanation is provided in the PR description.
  • Manual Testing: The author listed all the tests they ran, including smoke tests when needed (e.g., for refactorings). The reviewer confirmed that the PR works as expected on big (tablet) and small (phone) in case of UI changes, and no regressions are added.

AMI ID: ami-06a633c14b35c40b9
AMI Name: android-build-image-6.12.0v1.4-rc-1
With this hook present, every build and its within jobs are all
restoring the dependency cache, even when this is not really needed, and
as such potentially delaying some jobs unnecessarily, while also
consuming unnecessary resources (downloading from s3, (un)compressing,
etc).

FYI: It is better to use 'restore_gradle_dependency_cache' only on those
jobs that could really benefit from it.
@ParaskP7 ParaskP7 added status: do not merge Dependent on another PR, ready for review but not ready for merge. category: tooling Anything that involves building & maintaining the project, including scripts, `Fastfile`, etc. Core labels Dec 19, 2024
@dangermattic
Copy link
Collaborator

1 Message
📖 This PR is still a Draft: some checks will be skipped.

Generated by 🚫 Danger

@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Dec 19, 2024

📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
App Name WooCommerce-Wear Android
Platform⌚️ Wear OS
FlavorJalapeno
Build TypeDebug
Commit64c365a
Direct Downloadwoocommerce-wear-prototype-build-pr13170-64c365a.apk

@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Dec 19, 2024

📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.

App Name WooCommerce Android
Platform📱 Mobile
FlavorJalapeno
Build TypeDebug
Commit64c365a
Direct Downloadwoocommerce-prototype-build-pr13170-64c365a.apk

@ParaskP7 ParaskP7 force-pushed the ci/enable-dependency-cache-on-ci-v2 branch 7 times, most recently from 3e154f3 to 36efb6d Compare December 20, 2024 15:23
FYI: This job will be then used by 'buildkite-ci' and configured as a
'buildkite_pipeline_schedule' with a weekly frequency.
Since the hook was removed (145a096),
no build and its within jobs can restore the dependency cache, that is,
unless if it is explicitly specified, just like it is done for mobile
app prototype step via this change.
This change effectively reverts this initial
0dcd7b8 commit.
The targeted steps are:
- Mobile App
- Wear App
- Lint
- Detekt
- Unit Tests
- Android tests
@ParaskP7 ParaskP7 force-pushed the ci/enable-dependency-cache-on-ci-v2 branch from 2debe7c to 13cbd88 Compare December 20, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: tooling Anything that involves building & maintaining the project, including scripts, `Fastfile`, etc. Core status: do not merge Dependent on another PR, ready for review but not ready for merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants