Skip to content

test: compatibility fixes with docker based test run with pre-started…#295

Open
porcellus wants to merge 23 commits into
9.3from
test/external_pg
Open

test: compatibility fixes with docker based test run with pre-started…#295
porcellus wants to merge 23 commits into
9.3from
test/external_pg

Conversation

@porcellus
Copy link
Copy Markdown
Collaborator

… pg/oauth containers

Summary of change

(A few sentences about this PR)

Related issues

  • Link to issue1 here
  • Link to issue1 here

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your
changes work. Bonus points for screenshots and videos!)

Documentation changes

(If relevant, please create a PR in our docs repo, or create a checklist here
highlighting the necessary changes)

Checklist for important updates

  • Changelog has been updated
  • pluginInterfaceSupported.json file has been updated (if needed)
  • Changes to the version if needed
    • In build.gradle
  • Had installed and ran the pre-commit hook
  • If there are new dependencies that have been added in build.gradle, please make sure to add them
    in implementationDependencies.json.
  • Issue this PR against the latest non released version branch.
    • To know which one it is, run find the latest released tag (git tag) in the format vX.Y.Z, and then find the
      latest branch (git branch --all) whose X.Y is greater than the latest released tag.
    • If no such branch exists, then create one from the latest released branch.
  • When adding new recipes, ensure that its performance is being measured in the OneMillionUsersTest

Remaining TODOs for this PR

  • Item1
  • Item2

Mihaly and others added 23 commits February 3, 2026 15:01
Implements getDevicesForMultipleUsers in Start.java that calls
the existing TOTPQueries.getDevicesForMultipleUsers method
and converts the result to the expected format.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
… first row

- Add null/empty check for userIds in getDevicesForMultipleUsers
- Fix bug in getMultipleUsersMetadatas_Transaction where if(result.next())
  was used instead of while(result.next()), causing only the first user's
  metadata to be returned

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Reduce iterations from 3000 to 500 and thread pool from 1000 to 200
threads across all three deadlock tests. Tighten awaitTermination from
2min to 60s with an assertion. Deadlocks still trigger reliably since
even 200 threads competing for the same rows produces heavy contention.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Reduce idle timeout from 30s to 3s and set HikariCP housekeeping
period to 1s (via system property) in both pool tests. This cuts the
Thread.sleep from 65s to 8s. Also reduce concurrent sign-in
operations from 10000 to 1000 in testIdleConnectionTimeout.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Cache per-worker test database (create once, reuse across tests)
- Add truncateAllData() that truncates all tables instead of
  dropping and recreating the database each test
- Use killAll(false) in reset() to preserve tables across tests,
  making CREATE TABLE IF NOT EXISTS statements no-ops
- Add killAll(boolean) overload to TestingProcessManager
- Update DbConnectionPoolTest idle timeout to use HikariCP minimum

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
feat: implement bulk TOTP device query for multiple users
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this file should be commited by the release

Comment thread CHANGELOG.md

## [Unreleased]

## [9.4.0]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Are you sure this whole PR is still needed? 9.4 got released with some really similar content.

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