Skip to content

Conversation

@BillFarber
Copy link
Contributor

This handles most of the tests up through the temporal tests.
There are still about 10 tests failing before getting to the temporal tests.

Copilot AI review requested due to automatic review settings October 20, 2025 20:05
@github-actions
Copy link

github-actions bot commented Oct 20, 2025

Copyright Validation Results
Total: 61 | Passed: 1 | Failed: 0 | Skipped: 60 | at: 2025-10-21 13:12:42 UTC | commit: c4ab796

⏭️ Skipped (Excluded) Files

  • test-complete-app/build.gradle
  • test-complete-app/gradle.properties
  • test-complete-app/src/main/ml-config/databases/dmsdk-api-rest-server-modules.json
  • test-complete-app/src/main/ml-config/databases/dmsdk-api-rest-server.json
  • test-complete-app/src/main/ml-config/databases/node-client-api-rest-server-modules.json
  • test-complete-app/src/main/ml-config/databases/node-client-api-rest-server.json
  • test-complete-app/src/main/ml-config/databases/nodeOpticFunctionalTest.json
  • test-complete-app/src/main/ml-config/databases/nodeOpticFunctionalTestModules.json
  • test-complete-app/src/main/ml-config/security/roles/eval.json
  • test-complete-app/src/main/ml-config/security/roles/qbvuser-role.json
  • test-complete-app/src/main/ml-config/security/roles/rest-evaluator.json
  • test-complete-app/src/main/ml-config/security/roles/tde-User.json
  • test-complete-app/src/main/ml-config/security/users/qbvuser.json
  • test-complete-app/src/main/ml-config/security/users/rest-admin.json
  • test-complete-app/src/main/ml-config/security/users/rest-evaluator.json
  • test-complete-app/src/main/ml-config/security/users/rest-reader-optic.json
  • test-complete-app/src/main/ml-config/security/users/rest-reader.json
  • test-complete-app/src/main/ml-config/security/users/rest-writer.json
  • test-complete-app/src/main/ml-config/security/users/tde-user.json
  • test-complete-app/src/main/ml-config/servers/dmsdk-api-rest-server.json
  • test-complete-app/src/main/ml-config/servers/node-client-api-rest-server.json
  • test-complete-app/src/main/ml-config/servers/nodeOpticFunctionalTest.json
  • test-complete-app/src/main/ml-data/optic/lexicon/test/city1.json
  • test-complete-app/src/main/ml-data/optic/lexicon/test/city2.json
  • test-complete-app/src/main/ml-data/optic/lexicon/test/city3.json
  • test-complete-app/src/main/ml-data/optic/lexicon/test/city4.json
  • test-complete-app/src/main/ml-data/optic/lexicon/test/city5.json
  • test-complete-app/src/main/ml-data/optic/lexicon/test/collections.properties
  • test-complete-app/src/main/ml-data/optic/lexicon/test/doc1.json
  • test-complete-app/src/main/ml-data/optic/lexicon/test/doc2.json
  • test-complete-app/src/main/ml-data/optic/lexicon/test/doc3.json
  • test-complete-app/src/main/ml-data/optic/lexicon/test/doc4.xml
  • test-complete-app/src/main/ml-data/optic/lexicon/test/doc5.xml
  • test-complete-app/src/main/ml-data/optic/plan/test/collections.properties
  • test-complete-app/src/main/ml-data/optic/plan/test/planLexicons.json
  • test-complete-app/src/main/ml-data/optic/plan/test/planTriples.json
  • test-complete-app/src/main/ml-data/optic/plan/test/planViews.json
  • test-complete-app/src/main/ml-data/optic/sparql/test/collections.properties
  • test-complete-app/src/main/ml-data/optic/sparql/test/dedupdoc1.xml
  • test-complete-app/src/main/ml-data/optic/triple/test/collections.properties
  • test-complete-app/src/main/ml-data/optic/triple/test/duplicatePlayerTripleSet.xml
  • test-complete-app/src/main/ml-data/optic/triple/test/duplicateTeamTripleSet.xml
  • test-complete-app/src/main/ml-data/optic/triple/test/otherPlayerTripleSet.xml
  • test-complete-app/src/main/ml-data/optic/triple/test/playerTripleSet.xml
  • test-complete-app/src/main/ml-data/optic/triple/test/teamTripleSet.xml
  • test-complete-app/src/main/ml-data/optic/view/test/collections.properties
  • test-complete-app/src/main/ml-data/optic/view/test/masterDetail.xml
  • test-complete-app/src/main/ml-data/optic/view/test/masterDetail2.json
  • test-complete-app/src/main/ml-data/optic/view/test/masterDetail3.json
  • test-complete-app/src/main/ml-data/optic/view/test/masterDetail4.json
  • test-complete-app/src/main/ml-data/optic/view/test/masterDetail5.json
  • test-complete-app/src/main/ml-modules/root/optic/test/mapperReducer.sjs
  • test-complete-app/src/main/ml-schemas/permissions.properties
  • test-complete-app/src/main/ml-schemas/tde/exportingRows.tdex
  • test-complete-app/src/main/ml-schemas/tde/masterDetail.tdex
  • test-complete-app/src/main/ml-schemas/tde/masterDetail2.tdej
  • test-complete-app/src/main/ml-schemas/tde/masterDetail3.tdej
  • test-complete-app/src/main/ml-schemas/tde/masterDetail4.tdej
  • test-complete-app/src/main/turtle/companies/companies_100.ttl
  • test-complete-app/src/main/turtle/people/people.ttl

✅ Valid Files

  • test-complete/nodejs-optic-generate-views.js

✅ All files have valid copyright headers!

Copy link

Copilot AI left a 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.

rjrudin
rjrudin previously approved these changes Oct 20, 2025
Copy link
Contributor

@rjrudin rjrudin left a 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.

@BillFarber
Copy link
Contributor Author

Is that change to nodejs-optic-generate-view.sjs correct? That looks unexpected, since the name of the var is dbModClient.

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.
@BillFarber BillFarber force-pushed the replacingSetupWithGradle branch from e654f24 to c4ab796 Compare October 21, 2025 13:12
@BillFarber BillFarber requested a review from rjrudin October 21, 2025 13:12
@BillFarber BillFarber merged commit 1317d4a into marklogic:develop Oct 21, 2025
2 of 3 checks passed
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