8000 20250225 improve test performance by Firstyear · Pull Request #3459 · kanidm/kanidm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

20250225 improve test performance #3459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Firstyear
Copy link
Member

Improves test performance by a large factor. Waiting on #3432 to merge.

Checklist

  • This PR contains no AI generated code
  • book chapter included (if relevant)
  • design document included (if relevant)

Each time a library or binary is added, that requires compilation to create
the *empty* test harness, which then is executed and takes multiple seconds
to start up, do nothing, and return success.

This removes test's for libraries that aren't actually using or running
any tests.

Additionally, each time a new test binary is added, that adds a ton of
compilation time, but also test execution time as the binary for each
test runner must start up, execute, and shutdown. So this merges all
the testkit integration tests to a single running which significantly
speeds up test execution.
Again to improve test performance. This improves the validation of idx
existance to be a faster SQLite call, caches the results as needed.

Memberof was taking up a large amount of time in verify phases of test
finalisation, and so a better in memory version has been added.
@Firstyear Firstyear force-pushed the 20250225-improve-test-performance branch from 4362d8d to 2eaa698 Compare February 28, 2025 01:43
@Firstyear Firstyear marked this pull request as ready for review February 28, 2025 01:44
Copy link
Collaborator
@CEbbinghaus CEbbinghaus left a comment

Choose a reason for hiding this comment

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

I love the http client change.

@github-project-automation github-project-automation bot moved this from 🆕 New to 🔖 Ready in Organising Everything Mar 1, 2025
@Firstyear Firstyear merged commit 63deda3 into kanidm:master Mar 4, 2025
22 checks passed
@github-project-automation github-project-automation bot moved this from 🔖 Ready to ✅ Done in Organising Everything Mar 4, 2025
@Firstyear Firstyear deleted the 20250225-improve-test-performance branch March 4, 2025 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants
0