Skip to content

Fetch and present task outcomes #22

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

Merged
merged 80 commits into from
Jun 8, 2022
Merged

Fetch and present task outcomes #22

merged 80 commits into from
Jun 8, 2022

Conversation

jthurne
Copy link
Member

@jthurne jthurne commented Jan 21, 2022

No description provided.

@jthurne jthurne marked this pull request as draft January 21, 2022 02:18
@jthurne jthurne force-pushed the jhurne/task-metrics branch from e396edd to 534dcd3 Compare June 2, 2022 15:35
jthurne added 9 commits June 2, 2022 11:57
…tible.

This allows the build to work, but the configuration cache is used a lot less
as a result. The better solution is to ask the codegen maintainers to fix the
plugin to be configuraiton-cache compatible.

diff --git a/components/fetch-build-scan-data-cmdline-tool/build.gradle.kts
b/components/fetch-build-scan-data-cmdline-tool/build.gradle.kts index
068db94..f93bcb4 100644 ---
a/components/fetch-build-scan-data-cmdline-tool/build.gradle.kts +++
b/components/fetch-build-scan-data-cmdline-tool/build.gradle.kts @@ -1,3 +1,5
@@ +import org.hidetake.gradle.swagger.generator.GenerateSwaggerCode + plugins
{ java application @@ -65,6 +67,10 @@ tasks.compileJava { options.encoding =
"UTF-8" }

+tasks.withType(GenerateSwaggerCode::class) {
+    notCompatibleWithConfigurationCache("Accesses the project at execution time.")
+}
+
 application {
     mainClass.set("com.gradle.enterprise.Main")
 }
Includes displaying avoidance savings and durations (execution times). Also
reduces the number of fields returned when fetching a build scan.
* origin/main:
  Include component builds in dependabot configuration
  Update GE Maven extension plugin to 1.14.2
  Update CCUD plugin to 1.7.1
…data

This constrains what version of Gradle Enterprise the build validation scripts
will support, but it really simplifies things.
Some of these were needed when we wrote our own Export API client.
jthurne and others added 23 commits June 5, 2022 18:10
We'll re-add it in a separate PR.
Reduces the amount of code that is generated. This will also make it easier to
wire the source set into the build.
...by adding the output from the code generation task directly to the java main
source set.
It is possible to configure Gradle Enterprise to allow anonymous users to read
build scan data.
…t exceptions

This makes it easier to troubleshoot certain types of errors.
To configure an HTTP proxy, edit the proxy.settings file found in the root of
the build validation scripts and uncomment and edit the appropriate lines.

HTTP Proxy authentication is not yet supported. SOCKS proxy support may work
(by setting socksProxyHost and socksProxyPort), but this is untested.
@@ -166,6 +166,8 @@ fetch_and_read_build_scan_data() {
args+=(-m "${mapping_file}")
fi

args+=("--proxy-settings-file" "${SCRIPT_DIR}/proxy.settings")
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor: I think we should use .properties here so that editors/IDEs can help with editing.

@etiennestuder
Copy link
Member

Wonderful work, @jthurne . This is now going to master.

@etiennestuder etiennestuder merged commit 0ad9b8f into main Jun 8, 2022
@etiennestuder etiennestuder deleted the jhurne/task-metrics branch June 8, 2022 07:58
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.

5 participants