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 — Linkage Checker invalidates Truth library using gwt-user (provided) · Issue #980 · GoogleCloudPlatform/cloud-opensource-java

Linkage Checker invalidates Truth library using gwt-user (provided) #980

New issue
Copy link
New issue
Copy link
Closed
Closed
Linkage Checker invalidates Truth library using gwt-user (provided)#980
Copy link
Assignees
suztomo

Description

@suztomo
suztomo
opened on Oct 22, 2019
Issue body actions

Linkage Monitor detecting gwt-user problem: googleapis/google-cloud-java#6531.

Linkage Checker invalidates Truth library using gwt-user (provided):

  • Google-cloud-firestore 1.27.0 does not use Truth (com.google.truth:truth:1.0).
  • Google-cloud-firestore 1.28.1-SNAPSHOT (Ben's migrate-conformance-tests) uses Truth.
  • Truth depends on gwt-user (scope: provided)
  • gwt-user has shaded classes that have invalid references.

This means Linkage Checker invalidates all projects that use Truth. Can we handle (whitelist) this case (or is this genuine error)?

Why Truth needs gwt-user?

Truth (https://search.maven.org/artifact/com.google.truth/truth/1.0/jar) has a sub-artifact for GWT.

    <!-- Required only to build the -gwt sub-artifact. -->
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-user</artifactId>
      <scope>provided</scope>
    </dependency>

I don't see truth-gwt in Maven central: https://search.maven.org/search?q=g:com.google.truth

Activity

  1. suztomo
    self-assigned this
    on Oct 22, 2019
  2. elharo commented on Oct 23, 2019

    @elharo
    elharo
    on Oct 23, 2019
    Contributor
    More actions

    Good detective work. I wonder if we can remove/exclude this dependency from Google-cloud-firestore?

  3. suztomo commented on Oct 23, 2019

    @suztomo
    suztomo
    on Oct 23, 2019
    ContributorAuthor
    More actions

    It turned out that googleapis/google-cloud-java#6531 was not correctly settting scope:test for Truth. Linkage Checker excludes test scope artifacts.

    As long as Truth is used as scope:test, there should not be a problem.

  4. suztomo
    closed this as completedon Oct 23, 2019
  5. elharo commented on Oct 23, 2019

    @elharo
    elharo
    on Oct 23, 2019
    Contributor
    More actions

    So this was another true positive and a good outcome. We detected an issue the developer was otherwise unaware of.

    We still have some work to do on both documenting the linkage monitor and improving its reports. The root cause should have been obvious from the report, and it definitely wasn't. We can't rely on the linkage monitor team man ually investigating each reported issue.

  6. suztomo commented on Oct 23, 2019

    @suztomo
    suztomo
    on Oct 23, 2019
    ContributorAuthor
    More actions

    Yes, this event demonstrated the power of checking dependency tree at presubmit check. #981 is to improve the error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @suztomo
    suztomo

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — 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.