gradle-enterprise
  • n

    no

    09/26/2022, 10:18 AM
    I recommend giving the thumbs up on this issue: https://github.com/gradle/gradle/issues/19936 Gradle Enterprise is not a memory profiling tool but you can use a memory profiling tool in combination with the Gradle Profiler to identify the usage just like you would for any other java process.
  • m

    Mike Rampson

    09/28/2022, 4:40 PM
    Can you not do something like this in settings.gradle?:
    pluginManagement {
        plugins {
            id "com.gradle.enterprise" version "3.11.1"
            id "application"
            id "com.github.johnrengelman.shadow" version "7.1.2"
            id "java"
            id "maven-publish"
            id 'idea'
        }
        repositories {
            maven { url '<internal proxy cache>' }
        }
    }
    
    dependencyResolutionManagement {
        repositories {
            maven { url '<internal proxy cache>' }
        }
    }
    
    rootProject.name = 'service'
    
    gradleEnterprise {
        server = "<internal ge>"
        allowUntrustedServer = false
        buildScan {
            publishAlways()
    
            if (System.getenv("BRANCH")) {
                value "BRANCH", System.getenv("BRANCH")
            }
            if (System.getenv("BUILD_TAG")) {
                value "BUILD_TAG", System.getenv("BUILD_TAG")
            }
            captureTaskInputFiles = true
        }
    }
  • z

    Zak Taccardi

    09/29/2022, 8:21 PM
    Is it possible to see the values of
    gradle.properties
    in a build scan? Our PR checks (CI server) often will execute tasks with a series of gradle properties via the CLI, but those are not visible in the build scan
    Requested tasks/goals/targets
    . I’d like to see information in GE like:
    :someTask -PsomeParam=true
    The goal here is to make CI executions more easily reproducible locally I understand there may be issues with security here due to certain tokens being passed in on the CLI. One kind of solution would be to pass
    startParameters
    as a custom value (opting out certain keys as sensitive values) - or list the value of certain gradle properties as custom values. What is the best practice here?
  • e

    ebtokyo

    10/03/2022, 9:26 PM
    Hi, I'm looking at GE api and need to do some analysis on builds, is it possible to search per tag, project, etc ... like we do in the GE web UI. Here the doc I read, not a lot to filter from the
    BuildQuery
  • Hemanth Sai Veluvolu

    Hemanth Sai Veluvolu

    10/07/2022, 4:55 AM
    Hi all, is there a way to enable capturing build scans for IDE sync from Android Studio? They used to be captured before but seems to have stopped after upgrading AGP.
  • CristianGM

    CristianGM

    10/07/2022, 8:27 PM
    in Gradle Enterprise 2022.3.2, if I go to the second page of the scans list, I add a custom tag filter..and the offset is kept in my case my filter (wasn't a custom tag) gave only 23 results, but the offset was 50.
  • Paul Blundell

    Paul Blundell

    10/11/2022, 7:39 AM
    Second question 🙂, the data from the Performance > Build page (as above). Is there any way to get this in a programatically consumable form? I was going to scrape the scan html for it, but noticed its all javascript loaded (still potentially possible just more of a pain).
  • Paul Blundell

    Paul Blundell

    10/11/2022, 7:40 AM
    Context/Aim: running n builds and comparing their startup times / getting the average startup time (or other data point from that table)
  • f

    François Guillot

    10/11/2022, 3:16 PM
    Hi Paul This is currently not supported at the comparison level. You can compare higher level performance metrics via the performance dashboard.
  • f

    François Guillot

    10/11/2022, 3:20 PM
    It’s the former, it took 22 secs to check the remote and return. It’s a long time but there could be multiple causes behind this (network ? Gradle slowness in this particular build, etc. It does not necessarily mean that the contacted remote build cache was itself slow)
  • Mohammad Kabbani

    Mohammad Kabbani

    10/13/2022, 3:44 PM
    Hi, Anyone knows how to check the build scan size of a certain project? Also how can we configure the maximum build scan size? In some projects, we get the below error while publishing the scan:"The build scan publishing request was rejected as the data exceeded the maximum size."
  • Gianfranco Monzon

    Gianfranco Monzon

    10/13/2022, 6:53 PM
    With the endpoint
    /api/builds/{id}/gradle-attributes
    , we can know if a build has failed with field
    hasFailed
    However, is there an endpoint to get the specific error from a build? I looked into
    /api/builds/{id}/gradle-build-cache-performance
    , but I could not find anything useful for my use case.
  • Roldan Galan

    Roldan Galan

    10/14/2022, 11:06 AM
    Hi all! We recently started to use G1 garbage collector in our builds and noticed that Gradle Enterprise is reporting just the old gen now (actually it claims to be the old gen, but I am pretty sure that this is the total heap). G1 is also a generational gc, so it would make sense to have the same level of information as in other collectors. I was wondering if this intentional or a technical problem retrieving the memory usage of other generations due it’s bucketed distribution? (first screenshot is using G1, second screenshot is using ParallelGC)
  • Egor Andreevici

    Egor Andreevici

    10/17/2022, 5:02 PM
    Hey! We're facing an issue I'm not really sure how to tackle: we've got a couple
    ValueSource
    implementations that are used to query data that is later attached to our build scans as custom fields. Retrieving that data is mostly done via
    ExecOperations.exec
    . The problem is that the data we query changes often, which invalidates our configuration cache on pretty much every build. I considered configuring the plugin to ensure ValueSources are only queried during execution phase - we can live with build scans not having those values if the build was executed with
    --dry-run
    or something else caused the execution phase to be skipped - but I couldn't find any APIs that fit this use-case. Is something like this achievable, or are there any other ways to address our issue?
  • praj

    praj

    10/18/2022, 3:23 PM
    Hi Team, I am not really sure how to recover from this. I was actually cleaning my local maven repo and i somehow executed this cmd: Remove local maven repo to avoid future conflicts:rm -r ~/.m2/repository So after doing this, i was under the impression when i again execute this cmd:./gradlew publishToMavenLocal This will create maven repository contents for me. But somehow it is not getting created and i am getting below error: *********************************************************** Starting a Gradle Daemon (subsequent builds will be faster) FAILURE: Build failed with an exception. * What went wrong: Plugin [id: '***************************'] was not found in any of the following sources: - Gradle Core Plugins (plugin is not in 'org.gradle' namespace) - Plugin Repositories (could not resolve plugin artifact '**********') Searched in the following repositories: MavenLocal(file😕root/.m2/repository/) Artifactory(artifactory location) * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 6s
  • e

    ebtokyo

    10/20/2022, 10:37 PM
    Hello, we have some unexpected cache misses in our GE build, the first one that popup in the scan comparison is this one :
    kotlinJavaToolchainProvider / pluginOptions.$0 / pluginOptions.$1 / pluginOptions.$2
    I was wondering if someone encountered a similar issue. Task input comparison screenshot:
  • s

    Sean Flanigan

    10/21/2022, 6:54 AM
    Hi, is this a good place to report bugs in the
    gradle-enterprise-maven-extension
    for free build scans? I have a reproducer here: https://github.com/seanf/gradle-enterprise-maven-extension-mvnd-bug
  • a

    Andreas Turban

    10/25/2022, 1:45 PM
    Hi, I have a question to Gradle Enterprise Predictive Test Selection. It seams that the TestSelection disables the normal UP-TO-DATE checks of Java-Test Task. Is that intentional, or did I miss something?
  • t

    Tom O'Connor

    10/31/2022, 8:42 PM
    https://docs.gradle.com/enterprise/test-distribution/#maven_inputs_and_outputs seems to be relative to the current module’s path instead of the root. However, specifying a relative path here will not work for different levels of child modules. I tried to move this configuration into the modules but it’s not allowed. Does anyone have any advice on this? So far I haven’t quite been able to get the configuration files I need to be copied to the test distribution agents.
  • Gianfranco Monzon

    Gianfranco Monzon

    11/02/2022, 4:15 PM
    Hi, I just updated to version
    3.11.3
    from
    3.10.3
    . We only enable Gradle Enterprise when we have a VPN connection available.
    final boolean isConnectionAvailable = connectionProvider.get()
    if (isConnectionAvailable) {
        gradleEnterprise {
            server = "<http://server.behind.vpn.com|server.behind.vpn.com>"
            allowUntrustedServer = true
            buildScan {
                publishAlways()
                uploadInBackground = isLocalBuild
            }
        }
    }
    However, since version
    3.11.3
    , it is asking for permission to publish our scans to scans.gradle.com even though we are not connected to the VPN (this did not happen in previous versions) and the gradleEnterprise block is not configured.
    BUILD SUCCESSFUL in 7s
    571 actionable tasks: 566 from cache, 5 up-to-date
    
    Publishing a build scan to <http://scans.gradle.com|scans.gradle.com> requires accepting the Gradle Terms of Service defined at <https://gradle.com/terms-of-service|https://gradle.com/terms-of-service>. Do you accept these terms? [yes, no]
  • Heath Borders

    Heath Borders

    11/04/2022, 7:11 PM
    Hey folks! We installed our Gradle Enterprise instance using the legacy method 3 years ago, and now we’re trying to stand up a new instance, but we don’t have the license file anymore. Is this file stored in a standard place in a legacy install? I already pinged the Gradle about this, but I was curious if the community had a quicker answer since I imagine gradle folks are still decompressing from their conference
  • Deepthi Kodatham

    Deepthi Kodatham

    11/07/2022, 7:04 PM
    Hello👋 I am facing a weird issue with Gradle. I have this dependency in my gradle
    implementation 'com.google.code.gson:gson.2.9.0'
    But it seems to be downloading gson 2.8.6 too and I am not sure why. This is causing problems with whitesource.
  • t

    Tom O'Connor

    11/11/2022, 4:55 PM
    Any plans to create an ARM64 version of the gradle enterprise CLI docker image? The AMD64 version really doesn’t work well on an M1 Mac.
  • Oliver Koo

    Oliver Koo

    11/11/2022, 5:50 PM
    Wondering if any have success connecting their remote cache node to their organization’s GE instance that runs in a VPN?
  • r

    ritesh singh

    11/23/2022, 4:43 PM
    👋
    WARN - not signed in with Gradle Enterprise and possibly down
    Getting this error when trying to connect remote cache node with GE instance? Any leads?
  • r

    ritesh singh

    11/24/2022, 4:08 PM
    Wondering if i need to any extra set-up for remote-cache. We have GE server running with built-in cache node. I added one more remote-cache node in a different data center. But, i am not getting any remote cache hits there, it's still getting the remote cache from built-in cache node.
  • Arlind Hajredinaj

    Arlind Hajredinaj

    11/25/2022, 10:38 AM
    Hi, we started the migration to use Gradle Enterprise with the Helm installation. We are not sure if we have setup the
    values.yaml
    file correctly Can you explain the fields or maybe we don't need them: •
    externalPort
    Image pull settings
    . our server has an internet connection so the fields for we commented out •
    Storage settings
    we also left out as we currently don't have any configuration. We assume Gradle enterprise uses some default directories •
    Unattended installation
    we are not sure about the
    network
    and
    proxy
    configuration •
    Proxy section
    we didn't have anything configured for this section before We also use a built-in build-cache-node, and we have another build-cache-node running on a different server we have some configuration around that setup through the Web UI of Gradle Enterprise Administration. If we provision a new server all that data will be lost how could we back that up and use it in the new server?
  • l

    Li Jimmy

    11/28/2022, 4:43 AM
    Hi, everyone, And I want to join Gradle Enterprise group, and any suggested issues for new dream catcher? and what should i do best, thanks. 😛arty-gradlephant:
  • m

    Mike Cumings

    11/29/2022, 4:35 PM
    Q: Is there an acceptable way to access the GE BuildScanExtension from within a shared build service that is compatible with the configuration cache?