GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Gradle cache usage added by bissquit · Pull Request #998 · UnitTestBot/UTBotJava

Conversation

@bissquit

@bissquit bissquit commented Sep 23, 2022

Copy link
Copy Markdown
Member

Description

Adding Gradle cache usage

Fixes #974

Type of Change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Automated Testing

Build test has been run from a branch

Manual Scenario

At the developer machine it could be tested like this:

Run container:

docker run -it --name gradle-cache-test -v C:\path\to\repo\UTBotJava\:/UTBotJava --workdir /UTBotJava unittestbot/java-env:java11-zulu-jdk-gradle7.4.2-kotlinc1.7.0 /bin/bash

Run test as usual but don't forget to add --build-cache to reuse cache:

cd utbot-fuzzers
gradle --build-cache --no-daemon :utbot-fuzzers:test

Cache will be placed into ~/.gradle/caches

Checklist (remove irrelevant options):

This is the author self-check list

  • Run test from branch
  • If previous step is ok, change all related workflows to use cache

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
bissquit added 17 commits September 22, 2022 14:33
@bissquit
cache usage added
129204a
@bissquit
switched to more concrete path
22c8a61
@bissquit
Merge branch 'main' of https://github.com/UnitTestBot/UTBotJava into …
9a5cba3
…egor-vasiliev/test-gradle-cache-974
@bissquit
debug added
6e88f85
@bissquit
handle error in debug
ced16fa
@bissquit
extra tasks removed for testing
f468a04
@bissquit
post check cache
233220f
@bissquit
tmate debug
d144a0c
@bissquit
tmate sudo false
8d66c86
@bissquit
cache path switched from related to direct
5411531
@bissquit
debug removed
6f53f8a
@bissquit
switched to custom cache paths
02578d8
@bissquit
some tests moved back
67e28b7
@bissquit
typo with {}{} fixed
57a175d
@bissquit
order of tasks changed
e70f520
@bissquit
hash key fixed; also comments added
39c46e6
@bissquit
matrices reverted at the old state
031b084
@bissquit bissquit added the ctg-enhancement New feature, improvement or change request label Sep 23, 2022
@bissquit
bissquit requested review from denis-fokin and viktoriia-fomina September 23, 2022 11:48
@bissquit bissquit self-assigned this Sep 23, 2022
bissquit added 4 commits September 23, 2022 14:51
@bissquit
previous state of single-project returned
4cf8e72
@bissquit
Merge branch 'main' of https://github.com/UnitTestBot/UTBotJava into …
c7500ee
…egor-vasiliev/test-gradle-cache-974
@bissquit
Merge branch 'main' of https://github.com/UnitTestBot/UTBotJava into …
f9a5462
…egor-vasiliev/test-gradle-cache-974
@bissquit
Merge branch 'main' of https://github.com/UnitTestBot/UTBotJava into …
792ce70
…egor-vasiliev/test-gradle-cache-974
viktoriia-fomina
viktoriia-fomina approved these changes Sep 27, 2022
View reviewed changes

@viktoriia-fomina viktoriia-fomina left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
denis-fokin
denis-fokin approved these changes Sep 27, 2022
View reviewed changes
bissquit added 2 commits October 3, 2022 14:59
@bissquit
Merge branch 'main' of https://github.com/UnitTestBot/UTBotJava into …
42cc8c8
…egor-vasiliev/test-gradle-cache-974
@bissquit
Merge branch 'main' of https://github.com/UnitTestBot/UTBotJava into …
5730b40
…egor-vasiliev/test-gradle-cache-974
@bissquit
bissquit merged commit 1ab8f2c into main Oct 4, 2022
@bissquit
bissquit deleted the egor-vasiliev/test-gradle-cache-974 branch October 4, 2022 07:07
@alisevych alisevych added this to the 2022.10.1 Release milestone Oct 7, 2022
AbdullinAM pushed a commit to AbdullinAM/UTBotJava that referenced this pull request Oct 17, 2022
@bissquit @AbdullinAM
Gradle cache usage added UnitTestBot#974 (UnitTestBot#998)
957e4ad
AbdullinAM pushed a commit to AbdullinAM/UTBotJava that referenced this pull request Oct 17, 2022
@bissquit @AbdullinAM
Gradle cache usage added UnitTestBot#974 (UnitTestBot#998)
ae5b883
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@denis-fokin denis-fokin denis-fokin approved these changes
@viktoriia-fomina viktoriia-fomina viktoriia-fomina approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@bissquit bissquit

Labels

ctg-enhancement New feature, improvement or change request

Projects

UTBot Java
Archived in project

Milestone

2022.10.1 Release

Development

Successfully merging this pull request may close these issues.

Evaluate build execution time with Gradle caches

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@bissquit @denis-fokin @viktoriia-fomina @alisevych
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.