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 — Pub/Sub unit tests are slow · Issue #1159 · googleapis/google-cloud-java

Pub/Sub unit tests are slow #1159

New issue
Copy link
New issue
Copy link
Closed
Closed
Pub/Sub unit tests are slow#1159
Copy link
Assignees
garrettjonesgoogle

Description

@garrettjonesgoogle
garrettjonesgoogle
opened on Aug 12, 2016
Issue body actions

In particular, AckDeadlineRenewerTest and LocalSystemTest take most of the time because of multiple 10 second waits that they do. The overall tests on my machine take 3:13, with 2:32 of it in Pub/Sub. Could these tests be refactored to use a fake clock?

Activity

  1. mziccard commented on Aug 12, 2016

    @mziccard
    mziccard
    on Aug 12, 2016
    Contributor
    More actions

    There was a bit of a discussion on this here

  2. garrettjonesgoogle commented on Aug 12, 2016

    @garrettjonesgoogle
    garrettjonesgoogle
    on Aug 12, 2016
    ContributorAuthor
    More actions

    It think it would be very helpful for development to separate out slow tests (which I would argue are more like integration tests) from the "mvn test" target, and provide a separate target for the slow tests. We might still want Travis to run the slow tests.

  3. mziccard commented on Aug 12, 2016

    @mziccard
    mziccard
    on Aug 12, 2016
    Contributor
    More actions

    It think it would be very helpful

    I'll consider this, but I don't see a pressing need at the moment

  4. garrettjonesgoogle commented on Aug 17, 2016

    @garrettjonesgoogle
    garrettjonesgoogle
    on Aug 17, 2016
    ContributorAuthor
    More actions

    Well, I find it very, very, very annoying when I have to run tests multiple times from the command line.

  5. garrettjonesgoogle commented on Nov 15, 2016

    @garrettjonesgoogle
    garrettjonesgoogle
    on Nov 15, 2016
    ContributorAuthor
    More actions

    The time it takes to run these tests probably has a multiplicative effect since there is a limit on the number of concurrent Travis builds per repository. If we speed this up we'll see much shorter queues.

  6. garrettjonesgoogle commented on Nov 21, 2016

    @garrettjonesgoogle
    garrettjonesgoogle
    on Nov 21, 2016
    ContributorAuthor
    More actions

    Actually the reason that builds take so long on Travis is because we run integration tests there.

    Regardless, I fixed the running time of AckDeadlineRenewerTest in 1a8a438 by using a fake Clock and a fake ScheduledExecutorService. I'll resolve this issue now.

  7. garrettjonesgoogle
    closed this as completedon Nov 21, 2016
  8. JustinBeckwith
    assigned
    garrettjonesgoogle
    on Feb 1, 2021
  9. github-actions
    added a commit that references this issue on Jun 21, 2022

    chore: Integrate new gapic-generator-java and rules_gapic (#1159)

    bf94aa9
  10. meltsufin
    added 2 commits that reference this issue on Dec 22, 2025

    deps: update dependency org.easymock:easymock to v5.0.1 (#1159)

    df8bfbe

    chore(main): release 3.11.10 (#1161)

    fafcd6b
  11. chingor13
    added a commit that references this issue on Jan 6, 2026

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    bc6027e
  12. chingor13
    added 2 commits that reference this issue on Jan 22, 2026

    deps: update dependency com.google.cloud:google-cloud-shared-dependen…

    fcf07d4

    chore(main): release 2.16.3 (#1155)

    5fe575a
  13. chingor13
    added a commit that references this issue on Feb 24, 2026

    chore(main): release 1.16.1 (#1159)

    be7d43f
  14. suztomo
    added 2 commits that reference this issue on Mar 11, 2026

    deps: update dependency org.easymock:easymock to v5.0.1 (googleapis#1159

    cd442ba

    chore(main): release 3.11.10 (googleapis#1161)

    53dfd6f
  15. chingor13
    added a commit that references this issue on Mar 12, 2026

    chore(main): release 1.16.1 (#1159)

    a054053
  16. suztomo
    added a commit that references this issue on Mar 23, 2026

    build(deps): update dependency org.apache.maven.plugins:maven-deploy-…

    8401a84
  17. suztomo
    added a commit that references this issue on Mar 30, 2026

    chore(main): release 0.126.13 (#1159)

    fc8f281
  18. lqiu96
    added a commit that references this issue on Apr 1, 2026

    chore(main): release 0.126.13 (#1159)

    c31ac68
  19. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    chore(main): release 1.119.2-SNAPSHOT (#1159)

    d269d85

    chore(main): release 1.119.2-SNAPSHOT (#1159)

    95632fb
  20. benjaminp
    added a commit that references this issue on Jul 13, 2026

    chore: update auto-release script to fix breaking changes in v5 (goog…

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

Metadata

Metadata

Assignees

  • @garrettjonesgoogle
    garrettjonesgoogle

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.