Skip to content

blackbox workspace tests need a complete overhaul for maintainability #11184

Closed as not planned

Description

@aiuto

The set of tests under src/test/j.c.g/devtools/build/lib/blackbox is brittle and hard to maintain.

  • They depend on external repositories. So either have to keep those in sync with versions in //WORKSPACE or risk version skew.
    • we are not necessarily sharing the download cache with the main repo
    • version numbers and sha sums are embedded in java code.
    • the workspace rules are getting increasingly complex, where dependencies have to use deps patterns to download their deps
  • They dynamically generate content of WORKSPACE files which then are consumed in the same test
    • this is had to debug if you get the workspace rules wrong. These files could be generated by a BUILD rule and be data input to the tests.

Some suggestions:

Activity

  1. added
    team-ExternalDeps
    untriaged
    on Apr 22, 2020
  2. added
    P4
    and removed
    untriaged
    on Apr 29, 2020
  3. added
    team-OSS
    on Jun 15, 2020
  4. removed
    team-OSS
    on Nov 29, 2021
  5. github-actions commented on May 24, 2023

    @github-actions

    Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team (@bazelbuild/triage) if you think this issue is still relevant or you are interested in getting the issue resolved.

  6. added
    stale
    on May 24, 2023
  7. github-actions commented on Jun 7, 2023

    @github-actions

    This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please reach out to the triage team (@bazelbuild/triage). Thanks!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4staleteam-ExternalDepstype: process

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions