Skip to content
Data
Skill

/java-affected-tests

Use before opening or updating an OpenMetadata PR that changes Java, a JSON schema, an index mapping, a SQL migration, seed data or a pom — PR CI no longer runs the Java integration tests (they run only in the merge queue) and the JavaUIIT/search-it suites run only nightly, so

From plugin
openmetadata
16k26 skills

Claude Code

$ npx -y skills add open-metadata/OpenMetadata --skill java-affected-tests --agent claude-code

SKILL.md

java-affected-tests.SKILL.md
name: java-affected-tests
description: Use before opening or updating an OpenMetadata PR that changes Java, a JSON schema, an index mapping, a SQL migration, seed data or a pom — PR CI no longer runs the Java integration tests (they run only in the merge queue) and the JavaUIIT/search-it suites run only nightly, so this selects the unit tests and integration tests the diff can break, runs them in the lane and engine CI uses, and records the results in the PR body. Also use when asked which Java tests to run for a change, or how to run one integration test.
user-invocable: true
argument-hint: "[--base <ref>] [--add-it A,B] [--add-unit C] [--add-area D] [--reason \"...\"] [--ci-run <id>] [--keep-going] [--update-pr]"

Java tests to run before a PR

| Suite | PR checks | Merge queue | Nightly | You, for merge readiness | | --- | --- | --- | --- | --- | | Unit tests | full | full | — | impacted classes | | Integration tests (`openmetadata-integration-tests`) | skipped | full, every lane and engine | — | impacted classes | | search-it (`tests/search/*IT`) | — | — | openmetadata-nightly | impacted classes | | JavaUIIT (`*UIIT`), scale-it | — | — | openmetadata-nightly | reported, not run |

The merge queue is the first CI run of the ITs. An IT failure there ejects the PR and re-tests every PR queued behind it. Search-indexing changes have no pre-merge CI at all, so full verification must happen before merge. Match execution to the requested outcome:

  • Implementation, commit/push and PR creation: `--scope focused`. Run changed test classes,

convention-named unit tests, and explicit relevant `--add-it`/`--add-unit` choices with a reason. No runnable focused check when broader coverage exists is an error: select a regression.

  • Merge readiness: `--scope full` (the backward-compatible CLI default). Run every selected check.
  • Reuse valid results across skills. Broader checks deferred by a focused run are not passed.
  • Finish after confirming the requested push/PR and recording results. Pending CI is reported;

monitoring and dispatching workflows require that scope in the user's task.

  • Redirect verbose runs to a log and inspect completion/failure summaries. Avoid repeated model

calls to tail unchanged output. Retry infrastructure failures only after addressing their cause.

1. Preconditions

  • `git fetch origin main`, so the diff base is current. The planner diffs `origin/main...HEAD`

plus uncommitted and untracked files.

  • Docker running, with no other Testcontainers stack up:

`docker ps --filter label=org.testcontainers=true`. Another checkout's ITs plus yours rarely fit in Docker's memory. Report the blocker; do not stop other stacks or repeatedly retry.

  • JDK 21. No `mvn install` needed: every command builds the modules under test with `-am`.

2. Plan

make java_affected ARGS="--scope focused"  # implementation/push/PR creation
make java_affected                        # full impacted coverage for merge readiness

| Planner output | What to do | | --- | --- | | `No Java tests are impacted` or `No impacted Java test runs locally` | Put the NOT NEEDED block in the PR (`make java_affected_run` writes it and names any nightly-only tests) | | `[unit] … FULL suite` | Expected for poms and widely used classes | | `[integration] FULL suite` | Run it locally, or in CI on your branch and record the run with `--ci-run` (section 3) | | `[integration] Class lane engine <- reason` | Full scope: run them all; focused scope reports broader commands as deferred | | `Impacted, but not run locally` | List them in the PR with where they run (nightly, external cluster); don't run | | `Changed classes no unit test references` | Add a unit test (see `test-enforcement`), or say in the PR why none applies | | `Impact-map gaps` | Add the file's directory to the area that owns that code in `.github/java-tests/impact-map.json`, in this PR, then re-plan. Until then the full suite runs | | `Fix .github/java-tests/impact-map.json in this branch before you raise the PR` | Do what each line says: add the named glob to an area's `sources`, a pattern for the new IT to its `tests`, or remove a pattern your deletions emptied. `git push` and `gh pr create` stay blocked until it's clean (rule `java-impact-map.md`) |

Ground rules for adding tests

The full plan describes impacted coverage; focused execution is explicitly partial. Neither scope permits silently deleting selected tests. Add relevant regression checks with a concrete reason. Before you run, look at what the change does, and add tests when it:

  • changes what other entities see on delete, restore, rename or move (cascades, cleanup, orphans);
  • changes a field or response that search documents, lineage, change events or alerts read;
  • changes a permission, policy or validation check other endpoints also call;
  • changes what an endpoint accepts or returns: ITs reach it over HTTP, so no IT names your class.

Grep the SDK and the IT tree for the endpoint's path or SDK method, and add the ITs that call it.

For merge readiness, add a whole area when a concrete risk requires it. For focused work, select the regression that exercises that risk. Add with a reason, on the run as well as the plan; the details show both:

make java_affected_run ARGS='--add-area lineage --add-it TableResourceIT --reason "moves the edge payload lineage reads" --update-pr'

`--add-it`, `--add-unit` and `--add-area` take comma-separated names; `--reason` is required with any of them. If the link is durable, change the map instead (an area pattern, or a directory in an area's `sources`), so the next change gets it without anyone remembering.

3. Run and record

make java_affected_run ARGS="--scope focused"  # run the agreed checks once
make java_affected ARGS="--publish-results"   # publish saved evidence; does not run tests
# --scope full for merge readiness; --run --update-pr remains supported.

Measured on 2026-10-07: one un

Read more
@open-metadata
Ships withopenmetadata

The Open Context Layer for Data and AI , OpenMetadata is the open platform for building trusted data context and business semantics for humans, AI assistants, and agents.

Stars on GitHub

Momentum

stars in total
15.8k
Star history of open-metadata/OpenMetadata on GitHub, a chart by star-history.com

Other skills on openmetadata.

code-review

code-review

Use to review code changes with a two-stage process - first checking spec/requirements compliance, then code quality. Works on…

dev-setup

dev-setup

Set up, verify, or repair a local OpenMetadata development environment on macOS or Linux. Installs the toolchain (Java 21, Maven,…

More skills from other plugins.

paddleocr-doc-parsing

paddleocr-doc-parsing

Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…

paddleocr2mo93k
@paddlepaddle@paddlepaddleInstall Skill
context-loader
Auto-invoked

context-loader

Search memories from earlier Pi sessions in this repository. Use it when earlier work may already explain the code, error,…

mem013d69k
@mem0ai@mem0aiInstall Skill
analyzing-ai-citations

analyzing-ai-citations

Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an…

posthog2w41k
@posthog@posthogInstall Skill

Questions about java-affected-tests.

Which coding agents can use java-affected-tests?
java-affected-tests installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.