-
-
Notifications
You must be signed in to change notification settings - Fork 0
merge develop to trunk #3
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
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
09d6218
fix: handle unexpected event types in publish workflow and update tes…
0xdps 3990370
chore: rename homebrew tap from fakestack to packages
0xdps 91ef518
feat: add uninstall script for removing fakestack from npm, pip, and …
0xdps d82b8ca
feat: update documentation configuration to include mike for deployment
0xdps b3d2eac
feat: add support for MariaDB, MS SQL Server, and CockroachDB
0xdps 0ad5158
feat: enhance manual testing workflow for databases with individual t…
0xdps 9d4d380
fix: update sqlcmd path for MS SQL Server verification step in test w…
0xdps 0adab0d
fix: update sqlcmd path for MS SQL Server setup in test workflow
0xdps cc92e5f
feat: add SQL Server compatibility for table creation, dropping, and …
0xdps 2839070
fix: update SQL parameter placeholders for SQL Server and PostgreSQL …
0xdps 78249ab
Add schema generator script for multiple database types and templates
0xdps fd10f87
fix: add GO_*.md to .gitignore to exclude Go documentation files
0xdps 3d21c29
feat: update test-databases.yml to use comprehensive_test table with …
0xdps ae793d0
feat: add template generator for custom data patterns with modifiers …
0xdps d576599
feat: expand data generation capabilities with 80+ new generators acr…
0xdps 19324eb
Add centralized test schema and workflow documentation
0xdps b6de805
feat: enhance centralized test schema with comprehensive validation a…
0xdps 8e8758e
fix: resolve database test failures
0xdps 2719045
fix: correct MSSQL password in test schema to match service configura…
0xdps 144baa9
Merge fix-reports into develop
0xdps File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| # Test Database Workflows | ||
|
|
||
| ## Centralized Test Schema | ||
|
|
||
| The database integration tests use a centralized schema to ensure consistency across all supported databases. | ||
|
|
||
| ### Schema File | ||
|
|
||
| **`test-schema.json`** - Contains the complete test schema with: | ||
| - **84 columns** covering all generator types | ||
| - **83 generator fields** (excluding auto-increment ID) | ||
| - All categories: Personal, Location, Network, Financial, Time, Localization, Product, Files, Media, Animals, Food, Vehicles, Identifiers, Text, and App data | ||
|
|
||
| ### How It Works | ||
|
|
||
| Each database test job: | ||
| 1. Merges the centralized schema with database-specific configuration using `jq` | ||
| 2. Validates that exactly 83 generator fields are present | ||
| 3. Creates and populates the test table | ||
| 4. Verifies the row count | ||
|
|
||
| ### Benefits | ||
|
|
||
| ✅ **Single Source of Truth** - All generator fields defined once | ||
| ✅ **Consistency** - Same tests across all 6 databases | ||
| ✅ **Easy Updates** - Add new generators in one place | ||
| ✅ **Validation** - Automatic field count verification | ||
| ✅ **Reduced Duplication** - 71 lines vs 569 lines per database | ||
|
|
||
| ### Supported Databases | ||
|
|
||
| 1. **MySQL** 8.0 | ||
| 2. **MariaDB** 10.11 | ||
| 3. **PostgreSQL** 14 | ||
| 4. **SQLite** 3.x | ||
| 5. **MS SQL Server** 2022 | ||
| 6. **CockroachDB** Latest | ||
|
|
||
| ### Adding New Generators | ||
|
|
||
| To add a new generator to all database tests: | ||
|
|
||
| 1. Add the column to `test-schema.json` in the `tables[0].columns` array | ||
| 2. Add the generator field to `test-schema.json` in the `populate[0].fields` array | ||
| 3. Update the field count validation in `test-databases.yml` (increment the `83` in all 6 tests) | ||
|
|
||
| Example: | ||
| ```json | ||
| // In tables[0].columns: | ||
| {"name": "new_field", "type": {"name": "string", "args": {"length": 50}}} | ||
|
|
||
| // In populate[0].fields: | ||
| {"name": "new_field", "generator": "new_generator"} | ||
| ``` | ||
|
|
||
| ### Schema Validation | ||
|
|
||
| Each test automatically validates: | ||
| ```bash | ||
| FIELD_COUNT=$(jq '.populate[0].fields | length' test-schema.json) | ||
| [ "$FIELD_COUNT" -eq 83 ] || (echo "❌ Expected 83 fields, got $FIELD_COUNT" && exit 1) | ||
| ``` | ||
|
|
||
| This ensures no fields are accidentally omitted during schema merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The git push command references
trunkbranch, but the original repository structure usedmain. This inconsistency could cause the Homebrew formula update to fail if the target repository doesn't have atrunkbranch.Verify that the
homebrew-packagesrepository usestrunkas its default branch, or update this to match the actual branch name used in that repository.