chore(xtest): Audit and local improvements together#390
chore(xtest): Audit and local improvements together#390dmihalcik-virtru wants to merge 6 commits intoopentdf:mainfrom
Conversation
dmihalcik-virtru
commented
Jan 27, 2026
- feat(xtest): add tmux-based local test environment with modular scripts
- feat(xtest): add audit log processing framework and test integration
Summary of ChangesHello @dmihalcik-virtru, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly overhauls the local testing infrastructure for the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Ignored Files
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new audit logging framework for tests and refactors the local test environment to use a modular, tmux-based shell script system. The changes are extensive and well-structured. The new audit log framework is a great addition for improving test diagnostics, and the shell script refactoring improves maintainability. I've found a critical issue in a path helper function within the new script library and some minor path issues in the updated documentation. Overall, this is a significant improvement to the test infrastructure.
xtest/scripts/lib/core/paths.sh
Outdated
| get_platform_dir() { | ||
| local xtest_dir | ||
| xtest_dir="$(get_xtest_dir)" | ||
| echo "$(cd "$xtest_dir/../../platform" && pwd)" | ||
| } |
There was a problem hiding this comment.
The get_platform_dir function appears to construct an incorrect path. It uses cd "$xtest_dir/../../platform", which resolves to a directory one level above the repository root. Assuming the platform directory is a sibling of the xtest directory within the repository, the correct relative path should be ../platform from the xtest directory.
| get_platform_dir() { | |
| local xtest_dir | |
| xtest_dir="$(get_xtest_dir)" | |
| echo "$(cd "$xtest_dir/../../platform" && pwd)" | |
| } | |
| get_platform_dir() { | |
| local xtest_dir | |
| xtest_dir="$(get_xtest_dir)" | |
| echo "$(cd "$xtest_dir/../platform" && pwd)" | |
| } |
AGENTS.md
Outdated
|
|
||
| ## Build, Test, and Development Commands | ||
| ### Structure | ||
| - **Test Directory**: `tests/xtest/` - pytest-based integration tests |
There was a problem hiding this comment.
This documentation contains a few incorrect paths that could confuse users:
- On line 8, the test directory should be
xtest/, nottests/xtest/. - Several example commands (e.g., on lines 347, 361, 362, 714) use paths like
platform/opentdf-dev.yaml. Since test commands are typically run from thextest/directory, the correct relative path to the platform directory would be../platform/.
7dfa6b5 to
41fc3fe
Compare
bd3b1a7 to
18d9cea
Compare
18d9cea to
e4a703a
Compare
- Improve audit log collection latency - Add 'cancel' audit event tests - Fix attribute_value expectations - Prevent subprocess deadlocks - Handle KAS registry race conditions
- More careful fixture creation for session scope - Enable xdist worksteal for better parallelization - Set default RSA key mapping
- Fix lmgmt compatibility for platform <=0.9 - Improve SDK fixtures and environment configuration - Handle concurrent test execution properly
- Reference otdf-local for environment management - Update configuration instructions - Document golden key auto-configuration - Upgrade cryptography to patch subgroup attack vulnerability
e4a703a to
44f5b63
Compare
|



