Skip to content

Conversation

@ericpromislow
Copy link
Contributor

Related to issue #52776

I include an ignored pseudo-benchmark test. When I call proxyStore.ListByPartitions 100 times with live data, I get the following scores locally:

MAIN: 52 msecs
This PR: 43 msecs

So a drop of about 20%. Running the full steve test suite saw a drop of about 30%:

Over 10 runs, avg run time:

MAIN: 3.20 secs
PR: 2.08 secs

Drop of about 35% running the test suite.

@ericpromislow ericpromislow requested a review from a team as a code owner November 20, 2025 21:50
@ericpromislow ericpromislow requested review from a team and removed request for a team November 20, 2025 21:50
…ancher#919)

* Extract the code for setting up an integration test with real objects.

* Add an e2e test for verifying namespace/mcio.project relations work.

* test secrets and some refactoring

* Bring in the e2e secret tests.

Refactoring and commenting:

- Use more explicit constant/variable names

- Add comments on expected sorted values to show why we expect
  a particular ordering

- Arrange equivalent things (functions, parallel assignments) in alpha order.

* Fix/improve error messages in object transformers.

* Wait for the objects we create.
@ericpromislow ericpromislow force-pushed the 52776-func-based-create-fields-when-needed branch from a49522b to aad4079 Compare November 20, 2025 21:54
Wrap the field-calculator in a closure, and pass it to the informer,
to be invoked only when it needs to create db tables.
@ericpromislow ericpromislow force-pushed the 52776-func-based-create-fields-when-needed branch from aad4079 to b215d7b Compare November 20, 2025 22:01
@ericpromislow ericpromislow changed the title func based create fields when needed Create fields and other info for new database tables only when needed Nov 20, 2025
@ericpromislow ericpromislow changed the title Create fields and other info for new database tables only when needed VAI: Create fields and other info for new database tables only when needed Nov 20, 2025

// Comment out the 'ignore' in the function name to run it. Useful only for comparing running
// times across different branches
func (i *IntegrationSuite) ignoreTestNamespaceProjectDependenciesWithPseudoBenchmarks() {
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of using the "ignore" paradigm, could we use t.Skip unless an ENV var of some sort is set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea.

@ericpromislow ericpromislow requested review from a team and crobby November 21, 2025 19:13
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.

3 participants