Skip to content

[tango]: Add integration testing#156

Draft
JacobOaks wants to merge 1 commit into
uber:mainfrom
JacobOaks:joaks/e2e-test
Draft

[tango]: Add integration testing#156
JacobOaks wants to merge 1 commit into
uber:mainfrom
JacobOaks:joaks/e2e-test

Conversation

@JacobOaks

@JacobOaks JacobOaks commented Jul 7, 2026

Copy link
Copy Markdown

Add some integration testing to tango. These tests:

  • Spin up the tango server, configured with the tango repo itself as the target
  • Create a client connected to it
  • Call its APIs (GetTargetGraph and GetChangedTargets)
  • Asserts some responses from the server against expected data for actual commits in the tango repository.

I decided to use the actual tango repository to provide a heightened realism to the tests.
I also prototype a setup that generated an entire repository with multiple commits at runtime,
but just the boilerplate to bring in rules_go/other basics to support any non-contrived examples
seems to complicate the test code enough that I figured I might as well just use tango itself.
The downside of this approach is that I couldn't easily really assert against any actual piece of the graph
in entirety in testing GetTargetGraph, because it's pretty huge in a real repository with external dependencies. Instead, I assert against some specific expected edges.

This provides a useful signal for how well tango works as an entire system. In a future PR, we can also re-use the same testing components to write benchmarks that measure tango's latency.

This also adds a separate make target and CI step to run this since, in local testing, it can take about a minute or so.

Add an integration test to tango. This test:
* Spins up the tango server, configured with the tango repo itself as the target
* Creates a client connected to it
* Calls its APIs (GetTargetGraph and GetChangedTargets)
* Asserts some responses from the server against expected data for
  actual commits in the tango repository.

This provides a useful signal for how well tango works as an entire system.
In a future PR, we can also re-use the same testing components
to write benchmarks that measure tango's latency.
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.

1 participant