-
Notifications
You must be signed in to change notification settings - Fork 53
MLE-24733 - Pretty good start at moving from scripts to Gradle for test-complete setup #1006
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
MLE-24733 - Pretty good start at moving from scripts to Gradle for test-complete setup #1006
Conversation
|
Copyright Validation Results ⏭️ Skipped (Excluded) Files
✅ Valid Files
✅ All files have valid copyright headers! |
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.
Pull Request Overview
This PR migrates test-complete setup from scripts to Gradle, establishing infrastructure for testing through the temporal tests. The migration introduces Gradle-based database configuration, user/role setup, and automated data loading via curl commands, though approximately 10 tests still fail before reaching temporal tests.
Key changes:
- Gradle-based MarkLogic database and server configuration replacing manual scripts
- Security setup with roles, users, and privileges for test environments
- TDE (Template Driven Extraction) schemas and test data for optic query testing
Reviewed Changes
Copilot reviewed 61 out of 61 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test-complete/nodejs-optic-generate-views.js | Updates database reference from dynamic naming to static 'Schemas' database |
| test-complete-app/src/main/turtle/**/*.ttl | Adds RDF/Turtle test data files for graph-based testing (people relationships, company data) |
| test-complete-app/src/main/ml-schemas/tde/*.tdej | Adds TDE template definitions for view extraction from JSON/XML documents |
| test-complete-app/src/main/ml-modules/root/optic/test/mapperReducer.sjs | Adds mapper/reducer functions for optic query transformations |
| test-complete-app/src/main/ml-data/optic/**/*.{json,xml} | Adds test data files for optic queries (views, triples, lexicons, plans) |
| test-complete-app/src/main/ml-config/**/*.json | Establishes MarkLogic configuration (servers, databases, users, roles) via Gradle |
| test-complete-app/gradle.properties | Configures Gradle properties for ML deployment (modules database, schemas database, REST port) |
| test-complete-app/build.gradle | Adds curl-based tasks to load turtle data post-deployment |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Looks really good! Overall comments because GH is really slow:
- Format planLexicons.json so it's easier to read
- Same for planViews.json
- Format deducedoc1.xml, assuming the whitespace in there isn't important
- Fix copyright in mapperReducer.sjs
- Is that change to nodejs-optic-generate-view.sjs correct? That looks unexpected, since the name of the var is dbModClient.
Once above minor changes are done, merge away.
382ccba to
e654f24
Compare
I have made nearly all the changes so far without changing the actual results of the setup method. However, one thing I did change is using the Schemas database instead of the "*Modules" database for schemas. So, I needed to change the code here that is uploading a schema. |
…setup This handles *most* of the tests up through the temporal tests. There are still about 10 tests failing before getting to the temporal tests.
e654f24 to
c4ab796
Compare
This handles most of the tests up through the temporal tests.
There are still about 10 tests failing before getting to the temporal tests.