Skip to content

Always read project name from Build Scan data #263

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

Conversation

erichaagdev
Copy link
Member

@erichaagdev erichaagdev commented Dec 29, 2022

❄️ Winter Update PR Navigator ❄️

  1. Include realized build time savings in experiment summary #261
  2. Include performance characteristics and support -x for Gradle experiment 1  #262
  3. Always read project name from Build Scan data #263
  4. Gradle init script improvements #264
  5. Adopt Foojay Toolchains and Kotlin DSL plugins in build logic #265
  6. Add variable to query debug mode #266
  7. Modernize Java launch code #267
  8. Display serialization factor in summary of all experiments #272
  9. Display potential build time savings in experiment summaries #274
  10. Update the contract of command line tools #283

⛄ = you are here

Summary

ℹ️ This PR continues the implementation of #206. This felt like a good place to stop. More PRs will be coming.

This PR introduces the following changes:

  • Removed all reading and writing of project name to the build-scans.csv file
  • Removed many redundant occurrences of reading the build-scans.csv file
    • In most cases it was being read twice, or three times when in interactive mode
  • Added debug logging for build-scans.csv that was very useful when testing this PR

These changes do not introduce any visual changes in user facing output.

Testing

I ran all of the following experiments and inspected the output. I ensured that:

  • All summary information was displayed as expected, including the project name
  • The build-scans.csv file was only ever being read once
./01-validate-incremental-building.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/gradle/7.x/ge -t 'build' --debug
./01-validate-incremental-building.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/gradle/7.x/ge -t 'build' -i --debug
./01-validate-incremental-building.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/gradle/7.x/ge -t 'build' -x --debug
./01-validate-incremental-building.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/gradle/7.x/ge -t 'build' -i -x --debug
./02-validate-local-build-caching-same-location.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/gradle/7.x/ge -t 'build' --debug
./02-validate-local-build-caching-same-location.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/gradle/7.x/ge -t 'build' -i --debug
./02-validate-local-build-caching-same-location.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/gradle/7.x/ge -t 'build' -x --debug
./02-validate-local-build-caching-same-location.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/gradle/7.x/ge -t 'build' -i -x --debug
./03-validate-local-build-caching-different-locations.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/gradle/7.x/ge -t 'build' --debug
./03-validate-local-build-caching-different-locations.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/gradle/7.x/ge -t 'build' -i --debug
./03-validate-local-build-caching-different-locations.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/gradle/7.x/ge -t 'build' -x --debug
./03-validate-local-build-caching-different-locations.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/gradle/7.x/ge -t 'build' -i -x --debug
./04-validate-remote-build-caching-ci-ci.sh -1 https://ge.solutions-team.gradle.com/s/fvwne3ht4xgjg -2 https://ge.solutions-team.gradle.com/s/tjiwbi2b7oioo --debug
./04-validate-remote-build-caching-ci-ci.sh -1 https://ge.solutions-team.gradle.com/s/fvwne3ht4xgjg -2 https://ge.solutions-team.gradle.com/s/tjiwbi2b7oioo -i --debug
./05-validate-remote-build-caching-ci-local.sh -1 https://ge.solutions-team.gradle.com/s/lc73bw56kdkxi --debug
./05-validate-remote-build-caching-ci-local.sh -1 https://ge.solutions-team.gradle.com/s/lc73bw56kdkxi -i --debug
./01-validate-local-build-caching-same-location.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/maven/3.8.x/ge -g 'package' --debug
./01-validate-local-build-caching-same-location.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/maven/3.8.x/ge -g 'package' -i --debug
./01-validate-local-build-caching-same-location.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/maven/3.8.x/ge -g 'package' -x --debug
./01-validate-local-build-caching-same-location.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/maven/3.8.x/ge -g 'package' -i -x --debug
./02-validate-local-build-caching-different-locations.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/maven/3.8.x/ge -g 'package' --debug
./02-validate-local-build-caching-different-locations.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/maven/3.8.x/ge -g 'package' -i --debug
./02-validate-local-build-caching-different-locations.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/maven/3.8.x/ge -g 'package' -x --debug
./02-validate-local-build-caching-different-locations.sh -r git@github.com:gradle/ge-solutions.git -p sample-projects/maven/3.8.x/ge -g 'package' -i -x --debug
./03-validate-remote-build-caching-ci-ci.sh -1 https://ge.solutions-team.gradle.com/s/nhrdhjwc6nysy -2 https://ge.solutions-team.gradle.com/s/v7folxiq3dkyk --debug
./03-validate-remote-build-caching-ci-ci.sh -1 https://ge.solutions-team.gradle.com/s/nhrdhjwc6nysy -2 https://ge.solutions-team.gradle.com/s/v7folxiq3dkyk -i --debug
./04-validate-remote-build-caching-ci-local.sh -1 https://ge.solutions-team.gradle.com/s/ehiqsjd2wh5qs --debug
./04-validate-remote-build-caching-ci-local.sh -1 https://ge.solutions-team.gradle.com/s/ehiqsjd2wh5qs -i --debug

Copy link
Contributor

@runningcode runningcode left a comment

Choose a reason for hiding this comment

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

I don't have the full context to review this but I just added a comment.

Copy link
Member

@jthurne jthurne left a comment

Choose a reason for hiding this comment

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

It is great to see this bit of technical debt finally cleaned up!

@erichaagdev erichaagdev force-pushed the erichaagdev/exp1-display-realized-build-time-savings branch from c518ff2 to 127b270 Compare March 6, 2023 00:06
@erichaagdev erichaagdev force-pushed the erichaagdev/always-read-project-name-from-build-scan branch from f3bab9a to c912797 Compare March 6, 2023 00:08
Base automatically changed from erichaagdev/exp1-display-realized-build-time-savings to main March 6, 2023 16:03
@erichaagdev erichaagdev merged commit b60e6d6 into main Mar 6, 2023
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.

3 participants