Skip to content

Commit b8fa04c

Browse files
[Workspace]: migrate managed tmp artifacts into .dev-tools (#151) (#161)
* [workspace] Consolidate managed artifacts under .dev-tools (#151) * Update wiki submodule pointer for PR #161 * [workspace] Update ignored paths in phpdocumentor.xml Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com> * [workspace] Normalize path resolvers and reusable config defaults (#151) * Update wiki submodule pointer for PR #161 * [path] Rename project root resolver for working project context (#151) * Update wiki submodule pointer for PR #161 * [ecs] Keep default set application explicitly named (#151) * [tests] Use managed workspace baseDir in Rector config expectations (#151) * [path] Clarify package and working-project path resolvers (#151) * Update wiki submodule pointer for PR #161 --------- Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent d2749dc commit b8fa04c

63 files changed

Lines changed: 1005 additions & 475 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/wiki

Submodule wiki updated from 3db92d2 to 6ff95c1

.github/workflows/reports.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ jobs:
8686
- name: Add .nojekyll
8787
run: touch "${REPORTS_TARGET}/.nojekyll"
8888

89+
- name: Remove repository-local caches from published output
90+
run: rm -rf "${REPORTS_TARGET}/cache"
91+
8992
- name: Restore previews from gh-pages
9093
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
9194
uses: actions/checkout@v6

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Consolidate repository-local DevTools caches under `.dev-tools/cache`, keep published reports free of cache directories, and audit managed artifact path defaults across commands, workflows, and documentation (#151)
13+
1014
## [1.17.1] - 2026-04-22
1115

1216
### Fixed

docs/commands/docs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Options
4040

4141
``--cache-dir`` (optional)
4242
Path to the cache directory for phpDocumentor.
43-
Default: ``tmp/cache/phpdoc``.
43+
Default: ``.dev-tools/cache/phpdoc``.
4444

4545
``--progress``
4646
Enable progress output from phpDocumentor.

docs/commands/phpdoc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Options
3636
Automatically fix PHPDoc issues. Without this option, runs in dry-run mode.
3737

3838
``--cache-dir`` (optional)
39-
Path to the cache directory for PHP-CS-Fixer. Default: ``tmp/cache/php-cs-fixer``.
39+
Path to the cache directory for PHP-CS-Fixer. Default: ``.dev-tools/cache/php-cs-fixer``.
4040

4141
``--progress``
4242
Enable progress output from PHP-CS-Fixer and the Rector phase.

docs/commands/tests.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Options
3939
Path to the bootstrap file. Default: ``./vendor/autoload.php``.
4040

4141
``--cache-dir`` (optional)
42-
Path to the PHPUnit cache directory. Default: ``./tmp/cache/phpunit``.
42+
Path to the PHPUnit cache directory. Default: ``.dev-tools/cache/phpunit``.
4343

4444
``--no-cache``
4545
Disable PHPUnit caching.

docs/commands/wiki.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Options
2727

2828
``--cache-dir`` (optional)
2929
Path to the cache directory for phpDocumentor.
30-
Default: ``tmp/cache/phpdoc``.
30+
Default: ``.dev-tools/cache/phpdoc``.
3131

3232
``--init``
3333
Initialize the configured wiki target as a Git submodule.

docs/configuration/tooling-defaults.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ Generated and Cache Directories
5151
directories kept in place by the ``skills`` command.
5252
- ``.agents/agents/`` contains symlinked packaged project agents or
5353
consumer-owned directories kept in place by the ``agents`` command.
54-
- ``tmp/cache/phpdoc``, ``tmp/cache/phpunit``, ``tmp/cache/rector``, and
55-
``tmp/cache/.php-cs-fixer.cache`` store tool caches.
54+
- ``.dev-tools/cache/phpdoc``, ``.dev-tools/cache/phpunit``,
55+
``.dev-tools/cache/rector``, and
56+
``.dev-tools/cache/php-cs-fixer/.php-cs-fixer.cache`` store repository-local
57+
tool caches.
5658

5759
Local Versus Packaged Files
5860
---------------------------

docs/running/specialized-commands.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Important details:
5959
- ``--progress`` re-enables PHPUnit progress output in text mode;
6060
- ``--json`` and ``--pretty-json`` still suppress PHPUnit progress output
6161
automatically;
62-
- ``--no-cache`` disables ``tmp/cache/phpunit``;
62+
- ``--no-cache`` disables ``.dev-tools/cache/phpunit``;
6363
- the packaged configuration registers the DevTools PHPUnit extension.
6464

6565
``dependencies``

docs/usage/github-actions.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ The ``reports.yml`` workflow is responsible for generating technical documentati
6565
* **Main Branch**: Runs all checks and deploys the final reports to the root of the ``gh-pages`` branch.
6666
* Runs a post-deploy health check against the published reports index and coverage URLs with retry/backoff to account for Pages propagation.
6767
* Resolves the workflow PHP version from ``composer.lock`` or ``composer.json`` before installing dependencies.
68+
* Removes ``.dev-tools/cache`` from the publish directory before deployment so repository-local tool caches never leak into GitHub Pages output.
6869
* **Pull Requests**:
6970
* Generates a **Preview** of the documentation, coverage, and metrics.
7071
* Deploys the preview to ``gh-pages`` under ``previews/pr-{number}/``.

0 commit comments

Comments
 (0)