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

empty commit #27

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

empty commit #27

wants to merge 5 commits into from

Conversation

jrhee17
Copy link
Owner

@jrhee17 jrhee17 commented Aug 24, 2023

Motivation:

Explain why you're making this change and what problem you're trying to solve.

Modifications:

  • List the modifications you've made in detail.

Result:

  • Closes #. (If this resolves the issue.)
  • Describe the consequences that a user will face after this PR is merged.

@jrhee17 jrhee17 force-pushed the gradle/build-cache-jrhee17-pr branch from 10e1c27 to 42c0213 Compare August 24, 2023 14:50
jrhee17 added a commit to line/armeria that referenced this pull request Aug 25, 2023
Motivation:

This PR attempts to solve two problems:
- Our CI runs don't necessarily reflect a typical developer's workflow
because it is run with specific flags (i.e. `flakyTests`, `noLint`,
etc..). For this reason, the populated build caches does not necessarily
coincide with that of a developer workflow.
- Our CI does not upload build-cache to our remote node yet.

In this PR, I propose that we launch a separate build task to populate
the build cache for each PR.
Additionally, I propose that we retry tests in this task so that flaky
tests don't affect build cache upload.

Note that I would like to do some more experiments before actually
enabling caching for everyone. (It can be done manually by setting the
`--build-cache` flag on the CLI)
For this reason, in this PR I don't enable the `org.gradle.caching=true`
option yet. This will be done after experiments are complete.

See the following links for a preview:
- jrhee17#27
-
https://github.com/jrhee17/armeria/actions/runs/5960198011/job/16167108190

Modifications:

- Set up credentials for cache upload. These credentials can be
registered at:
  - https://ge.armeria.dev/cache-admin/node/built-in
  - Cache access control
- Set up remote build cache upload configurations. Note that credentials
are only required for writing, as reading can be done anonymously. The
cache will be pushed only at the CI if the proper write credentials are
supplied (i.e. writing to the `main` branch)
- Note that the `gradle-enterprise-postjob.yml` task must be merged to
the `main` branch to take effect.
- Introduced a `failOnPassedAfterRetry` to prevent build cache uploads
tasks from failing due to flaky tests.
- Renamed the github task to `gradle-enterprise-postjob.yml` to better
reflect the new role.

Result:

- Build cache is uploaded from CI for each PR/push to `main` branch

<!--
Visit this URL to learn more about how to write a pull request
description:

https://armeria.dev/community/developer-guide#how-to-write-pull-request-description
-->
@jrhee17 jrhee17 force-pushed the main branch 7 times, most recently from 191fc43 to 77b0d4b Compare September 6, 2023 07:26
@jrhee17 jrhee17 force-pushed the main branch 3 times, most recently from 9abe369 to d78b39b Compare September 18, 2023 08:45
@jrhee17 jrhee17 force-pushed the main branch 3 times, most recently from 4cccd34 to d9b6142 Compare October 17, 2023 07:22
@github-actions github-actions bot added the Stale label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant