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 — Speed up ResourceManager tests on Travis · Issue #504 · googleapis/google-cloud-java

Speed up ResourceManager tests on Travis #504

New issue
Copy link
New issue
Copy link
Closed
Closed
Speed up ResourceManager tests on Travis#504
Copy link
Assignees
ajkannan
Labels
api: cloudresourcemanagerIssues related to the Resource Manager API.

Description

@ajkannan
ajkannan
opened on Dec 22, 2015
Issue body actions

Tests that use the mock resource manager helper take a relatively long time to complete on Travis. LocalResourceManagerHelperTest takes ~100 seconds and ResourceManagerImplTest takes ~45 seconds. When running locally, these tests only tend to take 3-5 seconds. This is likely because the HttpServer library used for the mock spins up threads and also uses sockets, and Travis probably handles these operations more slowly. We should think of a way to speed up these tests.

Activity

  1. ajkannan
    added
    api: cloudresourcemanagerIssues related to the Resource Manager API.
    build
    on Dec 22, 2015
  2. ajkannan
    self-assigned this
    on Dec 22, 2015
  3. mziccard commented on Dec 22, 2015

    @mziccard
    mziccard
    on Dec 22, 2015
    Contributor
    More actions

    Not sure if this is a pattern but the two tests seem to take much less in oraclejdk8 builds:

    • LocalResourceManagerHelperTest ~ 5 sec
    • ResourceManagerImplTest ~ 3 sec
  4. ajkannan commented on Dec 23, 2015

    @ajkannan
    ajkannan
    on Dec 23, 2015
    Author
    More actions

    Interesting, the faster test runs in version 8 build seem to be a trend. Perhaps related, ConcurrentHashMap (used by the mock) seems to have radically changed in implementation between version 7 and 8. There must be a lot of lock contention if this is indeed the cause.

  5. aozarov
    added
    testing
    on Dec 23, 2015
  6. aozarov commented on Dec 23, 2015

    @aozarov
    aozarov
    on Dec 23, 2015
    Contributor
    More actions

    see this.

    A suggested workaround to add exchange.getResponseHeaders().add("Connection", "close");
    just before exchange.sendResponseHeaders (line 189) seems to make it much faster.

  7. ajkannan
    closed this as completedin #510on Dec 28, 2015
  8. github-actions
    added 3 commits that reference this issue on Jun 29, 2022

    chore: regenerate README (googleapis#504)

    51d3aab

    chore: Disable CLIRR checks on releas (#1474) (#504)

    2aae244

    chore(main): release 0.14.1-SNAPSHOT (googleapis#504)

    a910dce
  9. github-actions
    added a commit that references this issue on Jul 20, 2022

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

    5d10935
  10. github-actions
    added 2 commits that reference this issue on Aug 9, 2022

    deps: update dependency com.google.cloud:google-cloud-storage to v2.1…

    38ffa21

    chore(main): release 2.4.0 (#486)

    4e6e41e
  11. github-actions
    added a commit that references this issue on Oct 4, 2022

    chore(main): release 2.3.5 (#508)

    5b79545
  12. suztomo
    added a commit that references this issue on Feb 1, 2023

    chore: Set `rest_numeric_enums = False` for all gapic rules explicitly (

    a0cee43
  13. chingor13
    added a commit that references this issue on Jan 6, 2026

    chore: enable release-trigger bot (#504)

    f75dce6
  14. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore: regenerate README (#504)

    1962cf9
  15. chingor13
    added a commit that references this issue on Feb 24, 2026

    chore: release 0.22.2-SNAPSHOT (#504)

    3b50627
  16. chingor13
    added a commit that references this issue on Mar 12, 2026

    chore: release 0.22.2-SNAPSHOT (#504)

    61fbd9d
  17. suztomo
    added 2 commits that reference this issue on Mar 23, 2026

    chore: release 2.2.3 (googleapis#504)

    55eec9c

    feat: support JSON data type (googleapis#447)

    d631672
  18. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    chore: Re-generated to pick up changes from synthtool. (#504)

    3760c0f

    chore: Re-generated to pick up changes from synthtool. (#504)

    9bf2f13
  19. benjaminp
    added a commit that references this issue on Jul 13, 2026

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

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

Metadata

Metadata

Assignees

  • @ajkannan
    ajkannan

Labels

api: cloudresourcemanagerIssues related to the Resource Manager API.

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.