Repository navigation
[0.38] fix(marketplace): print collected marketplace config warnings (#4046) - #4062
Merged
Daniel Meppiel (danielmeppiel) merged 6 commits intoNov 21, 2026
Merged
Conversation
Daniel Meppiel (danielmeppiel)
force-pushed
the
danielmeppiel-curly-fishstick
branch
from
November 20, 2026 07:46
3b970a9 to
b917fa3
Compare
Daniel Meppiel (danielmeppiel)
force-pushed
the
danielmeppiel-4046-mkt-config-warnings
branch
from
November 20, 2026 07:52
658bc1a to
e332f88
Compare
Daniel Meppiel (danielmeppiel)
force-pushed
the
danielmeppiel-curly-fishstick
branch
from
November 21, 2026 08:06
b917fa3 to
37690e7
Compare
7 of 9 tasks
Daniel Meppiel (danielmeppiel)
force-pushed
the
danielmeppiel-4046-mkt-config-warnings
branch
from
November 21, 2026 08:15
e332f88 to
efbed41
Compare
Daniel Meppiel (danielmeppiel)
force-pushed
the
danielmeppiel-curly-fishstick
branch
3 times, most recently
from
November 21, 2026 09:18
1a0595e to
c668fbd
Compare
load_marketplace_config now delivers every MarketplaceConfig.warnings entry (the list/string outputs deprecation and the outputs.<format>.path conflict) through its warn_callback, after the legacy marketplace.yml deprecation. apm pack, marketplace check and outdated already render that callback. Pack's release-gate reload passes a discard callback so no load warning prints twice. The marketplace-outputs-list catalog entry is now a printed warning with no scheduled removal, so the text drops the stale v0.15 date. Flips #4035's stays-unprinted pin into installed-CLI tests. Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…cheduled (#4046) Regenerate the deprecations table (not scheduled, Warning) and say where the list-form warning appears in the publish guide, the pack reference and the manifest schema. Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel)
force-pushed
the
danielmeppiel-4046-mkt-config-warnings
branch
2 times, most recently
from
November 21, 2026 10:34
3d0c66f to
f3d59c6
Compare
Daniel Meppiel (danielmeppiel)
marked this pull request as ready for review
November 21, 2026 10:44
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 21, 2026 10:44
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The implicit dry-run path for non-JSON apm pack --check-clean suppresses configuration and legacy marketplace warnings, requiring warning reporting and an installed-CLI regression case for that invocation.
1 open issue
What changed in this PR
This PR addresses #4046 by routing collected marketplace configuration warnings through the existing CLI reporting callbacks, building on the centralized deprecation catalog from #4035.
Changes:
- Reports collected configuration warnings and suppresses duplicate warnings during pack release-gate reloads.
- Removes the obsolete v0.15 removal deadline for list-form marketplace outputs.
- Adds warning-delivery regression tests and updates user documentation.
| File | Description |
|---|---|
| tests/unit/core/test_deprecation_owner_behavior.py | Tests callback delivery and updated warning text. |
| tests/integration/test_deprecation_warnings_installed_cli.py | Checks warning visibility, repetition, and JSON output. |
| src/apm_cli/marketplace/migration.py | Delivers collected warnings through the loader callback. |
| src/apm_cli/core/deprecations.py | Updates warning visibility and removes the stale removal deadline. |
| src/apm_cli/commands/pack.py | Suppresses warnings during the release-gate reload. |
| docs/src/content/docs/reference/manifest-schema.md | Documents visible list-form warnings. |
| docs/src/content/docs/reference/index.md | Updates the generated deprecation table. |
| docs/src/content/docs/reference/cli/pack.md | Describes warning delivery and JSON inclusion. |
| docs/src/content/docs/producer/publish-to-a-marketplace.mdx | Explains warnings for legacy list-form outputs. |
| CHANGELOG.md | Records the warning-visibility fix. |
Review effort: Balanced
Co-authored-by: Copilot App <[email protected]>
An implicit --check-clean dry run (no --dry-run, non-JSON) skips every producer in the render loop, so the build's collected marketplace config warnings never printed and the gate reload discarded them too. The gate reload now reports them on that path only; every other path keeps the discard, so each warning prints exactly once. Co-authored-by: Copilot App <[email protected]>
This was referenced Nov 21, 2026
Daniel Meppiel (danielmeppiel)
deleted the
danielmeppiel-4046-mkt-config-warnings
branch
November 21, 2026 16:49
Merged
3 of 10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
TL;DR — Warnings collected while parsing a marketplace authoring config were never printed.
MarketplaceConfig.warningsholds the deprecatedoutputs: [...]list/string form and theoutputs.<format>.pathconflict, and no command read it.load_marketplace_confignow delivers every collected warning through thewarn_callbackthatapm pack,apm marketplace checkandoutdatedalready render, and each prints exactly once. Per the record, the list-form entry in the #4035 catalog no longer schedules a removal, so the printed text drops the stale "removed in v0.15".Fixes #4046 — scope record: #4046 (comment)
Note
Rebased onto
mainafter #4035 merged (headd74d0b46, main merged after #4590).Problem (WHY)
marketplace/yml_schema.py_parse_outputsand the path-conflict check append towarnings_sink, which is stored asMarketplaceConfig.warnings. No caller read that field, so list-form users never saw the deprecation, while the docs said they would.apm pack --check-versions/--check-cleanreloads the config for the release gate without a callback, so its stdlib fallback printed the legacymarketplace.ymlwarning a second time on stderr.Approach (WHAT)
config.warningsentry, once per load throughwarn_callback(default unchanged: stdlib logger)marketplace/migration.py::load_marketplace_config--check-cleanwithout--dry-run(non-JSON): that path skips producer rendering, so the reload reports themcommands/pack.pygatemarketplace-outputs-list: printed warning (SIGNAL_WARNING), no scheduled removal, template without the v0.15 sentencecore/deprecations.pyRendering is unchanged. Pack shows the callback messages with its other marketplace warnings and in
--json"warnings"; check and outdated print them via_load_config_or_exit. The list form parses exactly as before.Trade-offs
warn_callback=Nonedefault (stdlib logger) is kept rather than made required. About 70 test and library call sites rely on it. Every CLI caller now passes an explicit callback; the gate's discard is commented and covered by a test.--check-cleanpath, where the reload is the reporter); a dedup policy is out of scope per the record.SIGNAL_COLLECTEDstays in the catalog vocabulary even though no entry uses it now. Removing it would touch [0.38] plan/apply P5b: one deprecation catalog (#4019) #4035's renderer and tests for no behavior change.Validation
Local evidence (head
efbed414, rebased on #403537690e72)Scenario evidence (
tests/integration/test_deprecation_warnings_installed_cli.py, installed CLI):apm packonoutputs: [claude]shows the deprecation once, without v0.15test_marketplace_outputs_list_warning_prints_once[pack]--check-versions) still shows it once…prints_once[pack-gate-reload]apm marketplace checkshows it once…prints_once[marketplace-check]pack --json: warning in"warnings", stdout parses as JSON, nothing on stderrtest_pack_json_carries_the_outputs_list_warning_without_corrupting_stdoutoutputs.<format>.pathconflict prints oncetest_marketplace_outputs_path_conflict_warning_prints_oncemarketplace.ymlprints once even when pack reloadstest_legacy_marketplace_yml_warning_prints_once_when_pack_reloadstest_marketplace_outputs_map_form_prints_no_deprecationtests/unit/core/test_deprecation_owner_behavior.py::test_config_load_delivers_collected_warnings_through_the_callbackHow to test
apm.ymlhasmarketplace: {owner: {name: o}, packages: [], outputs: [claude]}, runapm pack. One[!] outputs: [claude] is deprecated; use the map form:block appears, with no v0.15.apm pack --json | python -m json.toolparses, and.warningscontains the message.outputs: {claude: {}}and confirm no deprecation appears.Docs placement (#3996 layout)
The docs are in the last commit (
efbed414). #3996 has landed, so they are written against its layout.outputs:example: list form still works, warning shows the map formproducer/publish-to-a-marketplace.mdx(step 3).mdpage was removed by #3996)--jsonwarningsreference/cli/pack.mdreference/manifest-schema.mdnot scheduled/Warningreference/index.md(#4035 block)--checkcleanRebase notes (onto #4035 after v0.37.0)
load_marketplace_configkeeps main'smanifest_file(project_root)and remediation-catalog "no config" text, plus this PR's single reporting loop.marketplace.ymlcontrol now reads its expected text from [0.38] plan/apply P5b: one deprecation catalog (#4019) #4035's pinnedmarketplace-ymlscenario, so wording changes there no longer break it.Issue and approved scope
Issue: Fixes #4046
Human scope-approval comment: #4046 (comment)
Does this PR complete the issue, or what remains? Complete per the record.
Type of change
Testing
main; see Validation)Changelog
## [Unreleased]inCHANGELOG.md(Fixed).Spec conformance (OpenAPM v0.1)
req-*covers them.Co-authored-by: Copilot [email protected]