Skip to content

Pre-release 4.2.110 → 4.2.109 — task 4.4 evaporate Workbench + shadowed fork trees - #82

Merged
agissept merged 3 commits into
masterfrom
pre-release/4.2.110
Oct 1, 2026
Merged

agissept merged 3 commits into
masterfrom
pre-release/4.2.110

Conversation

@oonid

@oonid oonid commented Sep 29, 2026 •

Copy link
Copy Markdown

Task 4.4 — evaporate Workbench, delete the fork trees v13 shadows

Stacks on #81. Deletions only, no new dependency: composer.json just drops illuminate/workbench from replace. 274 files, −50,402 lines.

Workbench (b762f9dd)

  • src/Illuminate/Workbench deleted and illuminate/workbench removed from replace. L4.2's package scaffolding has no L13 equivalent (packages are developed with orchestra/testbench).
  • Nothing loads it:
    • no provider registers it, in the fork or in the app;
    • the app's bootstrap never calls Workbench\Starter, and the app has no workbench/ directory.
  • Foundation's asset:publish --bench and dump-autoload workbench scan stay. They only read workbench/ directories on disk, not the deleted classes, and they leave with Foundation in 4.5.

Shadowed fork trees (c1c8ed6c)

The illuminate/*:^13 swaps (4.1–4.3) left the fork sources on disk. v13 ships the same classes under the longer Illuminate\<Component>\ PSR-4 prefix, so the fork copies never load.

  • What they still did:

    • "Ambiguous class resolution" warnings in the app;
    • misleading greps, e.g. a fork UrlGenerator that still defines forceSchema().
  • Proof that deleting them changes nothing at runtime: the app's optimized classmap (composer dump-autoload -o) resolves all 240 to vendor/illuminate/*.

  • Deleted class files (240):

    Component Files Component Files
    Database 77 Http 5
    Support 38 Translation 4
    Queue 30 Pipeline 3
    Cache 18 Cookie, Encryption, Events, Filesystem, Hashing, Log 2 each
    Routing 17 Config, Redis 1 each
    View 12 Console 6
    Session 11 Validation 5
  • Also deleted (unreachable after the swaps):

    • the stubs only the deleted classes read (cache and session tables, failed jobs, migrations). Stubs of code still loaded from the fork (Auth, Foundation, Routing\Generators) stay;
    • Foundation/Console/Optimize/config.php, the old compile list that OptimizeCommand no longer reads, and its phpunit.xml exclude;
    • the fork-only Queue\{IronQueue, Connectors\IronConnector, Jobs\IronJob, Console\SubscribeCommand, QueueInterface} and Cache\{XCacheStore, WinCacheStore}:
      • their only references were in deleted files;
      • v13 registers no iron, xcache or wincache driver;
      • IronQueue fatals against v13's Queue base class;
    • the composer.json of the component dirs this empties (Console, Events, Log, Validation).
  • Kept: the 120 fork classes that still resolve from src/. They are the fork-only BC classes in swapped components, plus Auth, Exception, Foundation, Html and Mail.

Ratchet baseline (531a6dff)

Regenerated with ci/convergence-ratchet.sh --init src, as the baseline header asks after counts go down, so a 4.2 idiom can't creep back up to the old counts:

Pattern Before After
legacy_contracts 37 3
macroable_trait 12 5
pagination_getters 10 1
eloquent_lists 6 0
route_uses_string 5 0
route_filters 4 0
event_fire 3 0
softdeleting_trait 2 0
where_raw 1 0

Verification

  • Fork:
    • suite 332 green; convergence ratchet green; composer validate OK;
    • no fork class is shadowed any more, and no fork import points at a deleted class;
    • every __DIR__ file path in src/ resolves.
  • Downstream smoke: the dicoding app at feature/platform/framework-4.2.109-rc1, with vendor/laravel/framework swapped for this branch's tree:
    • optimized dump: "Ambiguous class resolution" warnings drop from 253 to 13. The 13 left are league/flysystem monorepo duplicates from a source install; none are framework classes.
    • artisan list: 190 commands, identical to 4.2.109.
    • Psalm (full project): no errors.
    • App unit suite: 8468 green.
    • NotificationV2 (24), CourseCertificate (14) and BeanstalkdQueueBoringTest against a real v13 worker (3): green.
    • App integration suite, all 2986 tests (run per directory, because a single process runs out of memory): 105 failures, none introduced by this branch.
      • 100 also failed in the 4.2.109 run in the same environment, mostly because there is no mail catcher.
      • Of the other 5, 3 pass on re-run (order- or timing-dependent) and 2 fail the same way when re-run on 4.2.109.
  • Checks ran in a cloud container without deck (PHP 8.4.26, MariaDB 10.11, deck's Asia/Jakarta timezone and max_connections).

Rest of 4.4, not in this PR

  • Exception: still live (the fork Handler, plus 4.2.109's ExceptionHandlerAdapter). It merges into Foundation's handler in 4.5, when illuminate/exception leaves replace.
  • Html: still live (Form:: / HTML:: in about 484 Blade views). It leaves replace once 3.1 lifts it to app space.
  • CachedRouting: already gone with the routing swap (4.3).
  • Routing leftovers: ControllerServiceProvider (registered in the app's config/app.php), MakeControllerCommand, Generators and ControllerInspector still load from the fork. MIGRATION-DETAIL marks them as dead code to delete, not port. Deleting them changes the app (provider list, controller:make), so it needs its own change.

App pair

dicoding-dev/dicoding#5952 (feature/platform/framework-4.2.110-rc1, stacked on dicoding-dev/dicoding#5942). The app loads none of the deleted classes; the pair bumps the pin and drops app/config/workbench.php and the placeholder iron queue connection.

Tag

4.2.110 on 531a6dff is not pushed; tag pushes are refused for this session.

🤖 Generated with Claude Code

https://claude.ai/code/session_0169SsatCE8LhaTsQTPiGtVo

Base automatically changed from pre-release/4.2.109 to master October 1, 2026 04:06
@agissept
agissept added this pull request to stack #91 October 1, 2026 06:28
@agissept
agissept marked this pull request as ready for review October 1, 2026 06:28
@agissept
agissept force-pushed the pre-release/4.2.110 branch from 0581cc1 to 792ee32 Compare October 1, 2026 06:29
claude added 3 commits October 1, 2026 13:30
Delete src/Illuminate/Workbench and drop illuminate/workbench from the
fork's replace block. L4.2's package-development scaffolding has no L13
equivalent (packages are developed with orchestra/testbench), nothing in
the fork loads it (no provider registers it; the only mentions are the
dead Optimize/config.php compile list and the v13-shadowed migration
commands' --bench option), and the app registers no WorkbenchServiceProvider
and has no workbench directory.

Fork suite 332 green.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0169SsatCE8LhaTsQTPiGtVo
Remove the fork source that the illuminate/*:^13 swaps (tasks 4.1-4.3)
left on disk. v13 ships every one of these 240 classes under the longer
Illuminate\<Component>\ PSR-4 prefix, so the fork copies never load: the
app's optimized classmap (composer dump-autoload -o) also resolves all 240
to vendor/illuminate/*. They only produced "Ambiguous class resolution"
warnings (253 in the app) and misleading greps (e.g. a fork UrlGenerator
that still defines forceSchema()). After this, the optimized dump reports 0.

Also removed, all unreachable after the swaps:
- stubs read only by the deleted classes (cache/session tables, failed
  jobs, migration stubs); stubs of code still loaded from the fork (Auth,
  Foundation, Routing\Generators) stay;
- Foundation/Console/Optimize/config.php, the old class-compile list
  OptimizeCommand no longer reads (plus its phpunit.xml exclude);
- fork-only Queue\{IronQueue, Connectors\IronConnector, Jobs\IronJob,
  Console\SubscribeCommand, QueueInterface} and Cache\{XCacheStore,
  WinCacheStore}: their only references were in the deleted files, v13
  registers no iron/xcache/wincache driver, and IronQueue cannot even load
  against v13's Queue base class;
- composer.json of the component dirs that are now empty (Console, Events,
  Log, Validation).

Kept: the 120 fork classes that still resolve from src/ (fork-only BC
classes in swapped components, and Auth/Exception/Foundation/Html/Mail).
No fork import is left dangling.

Fork suite 332 green.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0169SsatCE8LhaTsQTPiGtVo
… 4.4)

Deleting the v13-shadowed fork trees dropped every 4.2-only pattern count
(e.g. legacy_contracts 37 -> 3, macroable_trait 12 -> 5, route_filters and
event_fire -> 0). Regenerate the baseline with ci/convergence-ratchet.sh
--init src, as DIVERGENCE-LEDGER.md asks when a count goes down, so a new
4.2 idiom can no longer creep back in up to the old counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0169SsatCE8LhaTsQTPiGtVo
@agissept
agissept force-pushed the pre-release/4.2.110 branch from 792ee32 to a772e99 Compare October 1, 2026 06:30
@agissept
agissept merged commit 40b1fcd into master Oct 1, 2026
2 checks passed
@agissept
agissept deleted the pre-release/4.2.110 branch October 1, 2026 06:32
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