Skip to content

Conversation

@Gerrrr
Copy link
Contributor

@Gerrrr Gerrrr commented Dec 1, 2025

No description provided.

)
container_id = proc.stdout.strip()

# Determine the randomly assigned host port for 80/tcp (HTTP)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe helpful to be a bit more specific as the following lines mix python, bash and some docker syntax I never saw before.Like...

Determine the host port docker randomly chose for HTTP. (Maps to 80/tcp inside the container.)

# Wait for data to be written and available
time.sleep(5)

yield http_port
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The postgresql version of this yields also the container ID. It bothers me that these are essentially the same function yet they are inconsistent with their return/yield values. Second, why isn't the carbon port returned?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about now?

assert "+300.0%" in output # cpu_usage change


@contextmanager
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like there's enough overlap that we should have one function that does this for Postgres, Graphite, etc. Or a common parent class.

@Gerrrr Gerrrr force-pushed the e2e-graphite-test branch 4 times, most recently from 44f75d8 to 7614495 Compare December 10, 2025 05:46
@Gerrrr Gerrrr requested a review from henrikingo December 11, 2025 05:16
@Gerrrr Gerrrr merged commit a68bc98 into master Dec 13, 2025
6 checks passed
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.

2 participants