Skip to content

Exclude AGENTS.md, CLAUDE.md, and vendored tests from WP.org build#2952

Merged
donnchawp merged 1 commit into
trunkfrom
fix/wporg-build-excludes
May 12, 2026
Merged

Exclude AGENTS.md, CLAUDE.md, and vendored tests from WP.org build#2952
donnchawp merged 1 commit into
trunkfrom
fix/wporg-build-excludes

Conversation

@donnchawp
Copy link
Copy Markdown
Contributor

@donnchawp donnchawp commented May 12, 2026

Summary

The 2.4.2 deploy run (#2951) showed three paths being copied to plugins.svn.wordpress.org/wp-job-manager/ that aren't intended for end users:

  • AGENTS.md and CLAUDE.md — repo-level instruction files for AI coding agents.
  • lib/usage-tracking/tests — vendored test directory from the usage tracking library.

The 2.4.2 SVN commit failed for an unrelated auth reason, so none of these actually shipped — but with the auth issue fixed, the next release would have published them. This PR adds the three paths to scripts/exclude.lst so the build artifact uploaded to WP.org no longer contains them.

Test plan

  • Trigger a build of the plugin zip (make build or the Plugin Build workflow) on this PR and confirm the resulting wp-job-manager.zip does not contain AGENTS.md, CLAUDE.md, or lib/usage-tracking/tests/.
  • On the next real release, eyeball the SVN status output in the deploy job to confirm none of the three paths appear in the changeset.

Plugin build for 1ca1b84
📦 Download plugin zip
▶️ Open in playground

The 2.4.2 deploy surfaced three paths that were being copied to
plugins.svn.wordpress.org but shouldn't ship to end users:

- `AGENTS.md` and `CLAUDE.md` — agent instruction files used only when
  AI coding agents are working in the repo.
- `lib/usage-tracking/tests` — vendored test directory from the usage
  tracking library.

Add them to scripts/exclude.lst so they're stripped from the build the
release workflow uploads to WP.org.
@donnchawp donnchawp merged commit e546420 into trunk May 12, 2026
8 checks passed
@donnchawp donnchawp deleted the fix/wporg-build-excludes branch May 12, 2026 13:40
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.

1 participant