Skip to content

test framework v2 fixes and updates from iot-device-telemetry java run#122

Closed
TheovanKraay wants to merge 3 commits intoAzureCosmosDB:mainfrom
TheovanKraay:main
Closed

test framework v2 fixes and updates from iot-device-telemetry java run#122
TheovanKraay wants to merge 3 commits intoAzureCosmosDB:mainfrom
TheovanKraay:main

Conversation

@TheovanKraay
Copy link
Copy Markdown
Contributor

Description

Type of Change

  • 📝 New rule - Adding a new best practice rule
  • ✏️ Rule improvement - Updating an existing rule
  • 🆕 New skill - Adding an entirely new skill
  • 🐛 Bug fix - Fixing an issue with existing content
  • 📚 Documentation - Updating README, CONTRIBUTING, or other docs
  • 🔧 Build/Scripts - Changes to build process or scripts

Checklist

  • I have read the Contributing Guide
  • I ran npm run validate and it passed
  • I ran npm run build to regenerate AGENTS.md (if adding/updating rules)
  • My rule file follows the naming convention: {prefix}-{description}.md
  • My rule includes valid frontmatter (title, impact, tags)

For New Rules

Rule file: skills/cosmosdb-best-practices/rules/_____.md

Category:

Impact level:

Why is this rule important?

Testing

  • Tested with GitHub Copilot
  • Tested with Claude Code
  • Tested with Cursor
  • Tested with other agent: _____
  • N/A (documentation only)

Related Issues

Additional Notes

github-actions Bot and others added 3 commits April 18, 2026 11:11
@TheovanKraay TheovanKraay requested a review from Copilot April 18, 2026 12:10
@TheovanKraay
Copy link
Copy Markdown
Contributor Author

@copilot rules have been updated but SKILL.md has not, please update.

Copy link
Copy Markdown
Contributor

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

Updates the Cosmos DB best-practices skill set and testing artifacts based on insights from the iot-device-telemetry Java batch run (#232), adding new query guidance and refining existing rules.

Changes:

  • Added two new query best-practice rules for deterministic “latest” reads and single-pass aggregate stats.
  • Clarified/expanded existing rules around schema versioning and point-read usage (parent existence validation).
  • Added batch #232 result artifacts and logged the evaluation in IMPROVEMENTS-LOG.md; regenerated AGENTS.md.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
testing-v2/scenarios/iot-device-telemetry/batch-results/batch-232-java-skills.md Adds human-readable summary of batch #232 results.
testing-v2/scenarios/iot-device-telemetry/batch-results/batch-232-java-skills.json Adds machine-readable batch #232 results for analysis.
testing-v2/IMPROVEMENTS-LOG.md Records batch #232 findings and documents rule changes (but currently includes malformed table rows that need fixing).
skills/cosmosdb-best-practices/rules/query-point-reads.md Adds guidance to validate parent existence via point read prior to writing child/event docs.
skills/cosmosdb-best-practices/rules/query-latest-by-timestamp.md New rule documenting ORDER BY <timestamp> DESC + TOP 1 for deterministic latest-item queries.
skills/cosmosdb-best-practices/rules/query-aggregate-single-pass.md New rule recommending single-pass MIN/MAX/AVG aggregation with consistent filters.
skills/cosmosdb-best-practices/rules/model-schema-versioning.md Clarifies schemaVersion should be applied to every persisted document type.
skills/cosmosdb-best-practices/AGENTS.md Regenerated compiled rules doc to include new/updated rules and updated TOC numbering.

Comment on lines 54 to +56
| Category | Pass Rate (when startup works) |
|----------|-------------------------------|
| 2026-04-18 | iot-device-telemetry | Batch #232 (skills, java) | Aggregated 5 iterations | See batch-results/ |
@@ -0,0 +1,157 @@
# Batch Test Results: Iot Device Telemetry

| Metric | Value |
|--------|-------|
| 2026-04-18 | iot-device-telemetry | Batch #232 (skills, java) | Aggregated 5 iterations | See batch-results/ |

| Metric | Value |
|--------|-------|
| 2026-04-18 | iot-device-telemetry | Batch #232 (skills, java) | Aggregated 5 iterations | See batch-results/ |
Comment on lines 106 to +108
| Test | Pass Rate | Pattern |
|------|-----------|---------|
| 2026-04-18 | iot-device-telemetry | Batch #232 (skills, java) | Aggregated 5 iterations | See batch-results/ |
Comment on lines 249 to 253
**Score Improvement Trend**:
| Iteration | Language | Score | Key Issues |
|-----------|----------|-------|------------|
| 2026-04-18 | iot-device-telemetry | Batch #232 (skills, java) | Aggregated 5 iterations | See batch-results/ |
| 2026-04-01 | gaming-leaderboard | Batch #191 (skills, python) | Aggregated 5 iterations | See batch-results/ |

| Aspect | Iter-001 (.NET) | Iter-002 (Java) | Delta |
|--------|----------------|----------------|-------|
| 2026-04-18 | iot-device-telemetry | Batch #232 (skills, java) | Aggregated 5 iterations | See batch-results/ |
Comment on lines +1184 to 1185
| 2026-04-18 | iot-device-telemetry | Batch #232 (skills, java) | Aggregated 5 iterations | See batch-results/ |
| 2026-04-01 | gaming-leaderboard | Batch #191 (skills, python) | Aggregated 5 iterations | See batch-results/ |
Comment on lines +16 to +17
CosmosPagedIterable<JsonNode> page = container.queryItems(
"SELECT * FROM c WHERE c.deviceId = @deviceId",
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.

3 participants