Repository navigation
Closed
Labels
enhancementNew feature or request
Description
Goal: fix all the items that earlier work left open, before the 1.0 release. After this issue, no known item stays open, except the items that wait for other issues (#11, #13, #14).
The generated docker project
-
docker compose down(alsocrest downand./crest down) waits 10 seconds.php -Sis PID 1 in the container and does not stop on SIGTERM, so docker kills it after the timeout. - Commands that run in the container print container paths, not host paths. For example,
make:actionprintsCreated /srv/src/Action/.... The docker hand-off of a global crest does the same.
The one-line setup (resources/setup.sh)
- The errors of
crest newshow the path in the one-off container, for example/app/my-app exists and is not empty. -
curl ... | sh -s -- my-app --helpgivessed: can't read my-app/.env, exit status 2, and no help.newwrites its usage to stdout, and the script hides stdout. - When
./crest upor./crest installfails (for example, port 8080 is in use), the script gives no hint to continue (cd my-app,./crest up,./crest install). - The README does not show how to use another port:
curl ... | APP_PORT=9000 sh -s -- my-app. - With rootless docker (user namespaces),
chown -Rto the host user and group can give the project to a subordinate UID. Check this, then fix it or document it. - README: "The project goes into the working directory" can be read two ways. Change it to "into the folder
<name>in the working directory". -
SetupScriptTest::testBashRunsTheSetup: the comment says that/bin/shis bash on Fedora and macOS, but the test runs bash in its default mode. Correct the comment. - Add a test for a run with a terminal on stdin. util-linux
script -qec ... /dev/nullcan do this. It is in the development container and on the Ubuntu runners.
crest init
- Propose each path from the folder that exists in the project, else the default, and ask for each path. An empty answer accepts the proposal, and
--no-interactionaccepts all of them. Todayinitmoves the default paths into the psr-4 folder, and does not check that the folders exist. - When
initproposes a front controller, the user cannot choose none: an empty answer accepts the proposal. - When the user gives a different namespace, the front controller proposal keeps the namespace that
initfound. - When the input ends during a question, the error
no answer; input endedshows on the same line as the question. Write a new line before the error.
crest.php and config:show
- With
'runtime' => ['type' => 'host', 'service' => '...'], crest ignores the service with no message, andcrest installusesapp. Use the service, or give an error. - A docker service in
crest.phpdoes not get the name check thatnewandinituse. -
config:showdoes not showbootstrapandruntime.
The hand-off with a custom vendor-dir or bin-dir (replaces #34)
- A project with
"config": {"vendor-dir": "lib"}(or a custombin-dir) incomposer.jsongets the hand-off. Today it gets no hand-off, or the error "has no vendor/bin/crest". - The
COMPOSER_VENDOR_DIRenvironment variable works too. - Start the crest of the project through the composer proxy (
<bin-dir>/crest). If the hand-off runs<vendor-dir>/phalcon/crest/bin/crestdirectly, a symlinked path repository loads the autoloader of the dev checkout, and the hand-off loops.
Code, tests and tooling
- Mutation testing: 3 mutants escape (MSI 99.84%). The rule is MSI 100. Kill each one with a test, or change the code:
src/Console/Kernel.php:123(IncrementInteger):$tokens[0]in the--versioncheck.src/HandOff.php:202(SpreadOneItem):...$paths->restinforContainer(), when the tokens name no command.src/HandOff.php:273(GreaterThan): the protocol compare inmismatch().
-
ServeCommandTest::testServeAgreesWithTheGeneratedContainerrunsnewwithout achdirinto the scratch folder. A mutant that ignores--directorycan then writeapp/into the repository. -
ServeCommand: the class docblock has a bad line wrap ("the project's vendor/: the server runs"). -
resources/octocov.ymlandresources/octocov.pr.yml: octocov skips thecodeToTestRatioglobs (../src/**/*.php,../tests/**/*.php) with no message. Fix the globs. -
.github/workflows/main.yml: the comment above thecoveragejob says "Infection runs locally for now (composer infection...)". Infection is not inrequire-dev, socomposer infectionneedscomposer require --dev infection/infectionfirst. Correct the comment.
Done when
- All the items above are fixed, with a test for each code change.
-
composer cs,composer analyze,composer cs-fixerand the tests pass. Mutation testing gives MSI 100. Coverage does not drop. - The README,
docs/index.mdandCHANGELOG.mdare updated. - The pull request closes [NFR]: Hand-off with a custom vendor-dir or bin-dir #34.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Type
Projects
- StatusShow more project fieldsReleased
Activity
niden commentedon Oct 13, 2026
Resolved in #43