Repository navigation
chore: sharp/mago pulls mago-sharp's last master, and an absent input is there only under its exact name - #125
Closed
heyJordanParker wants to merge 6 commits into
Closed
heyJordanParker wants to merge 6 commits into
heyJordanParker wants to merge 6 commits into
Conversation
# Conflicts: # sharp/mago/.github/workflows/ci.yml
A compiled file lists, as inputs stamped absent, the files a class name could resolve to, as `Environment.php` beside a file that names the standard `Environment`. A disk that ignores case, as macOS's does by default, opens `environment.php` for `Environment.php`. So the engine refused that compiled file as out of date while run-tests wrote `environment.php` for `environment.phpt`, and a compile beside it stamped `Environment.php` with `environment.php`'s hash. - The engine's `sharp_folder_holds_name` keeps an input stamped absent current unless its folder holds a file of exactly that name. - The bridge's `unit::stamp` stamps a file only when its folder holds it under its exact name, through `folder_holds_name`. A compile on a disk that ignores case and one on Linux now stamp the same inputs, and the engine reads them the same way. Cherry-picked-from: be812ec on feat/extensions (#115), without that branch's SOURCE_LISTING Co-Authored-By: Claude <[email protected]>
mago-sharp #179 lets a class of the file's namespace win over a Sharp default name, so §23's own-namespace-shadows passes. Co-Authored-By: Claude <[email protected]>
patch-coverage runs on Linux, where a file opens only under its exact name, so no test reached the branches where the folder holds another case of it. stamp now checks the folder first: a missing file takes the same branch on every disk, and a missing folder holds nothing. Every input stamps as before. Co-Authored-By: Claude <[email protected]>
# Conflicts: # sharp/mago/crates/sharp-bridge/src/unit.rs # sharp/mago/crates/sharp-bridge/tests/unit.rs
Owner
Author
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.
Problem
mago-sharp is frozen, and its
archivebranch keeps its lastmaster, 29fc7ec.sharp/mago/held mago-sharp 3cc39cc, the commit #114 pulled, so two merged mago-sharp pull requests never reached PHP#:Sharpdefault name, soApp.Environmentbeside a file that writes a bareEnvironmentis that class. A help that names a shadowed standard class names it through an import.mutants.Solution
sharp/mago/pulls mago-sharp's lastmaster, asdocs/architecture/mago.mdsays:git subtree pull --prefix=sharp/mago https://github.com/heyJordanParker/mago-sharp.git archive -m "Merge mago-sharp's last master into sharp/mago".github/workflows/ci.yml, whichsharp/mago/no longer has, so the modify/delete conflict is resolved withgit rm. php-sharp's.github/workflows/mutants.ymlalready runs mutants only onmasterand nightly, never on a pull request, so nothing carries over.Zend/tests/sharp/Environment.phpbesideDeploy.sharp, as inputs stamped absent. On a disk that ignores case, as macOS's does, run-tests writesenvironment.phpforenvironment.phpt, and the engine opened it forEnvironment.php. So the engine refusedDeploy.sharp,PhpForms.sharpandPositions.sharpas out of date, and theMACOSjob would fail. This is be812ec fromfeat/extensions(feat: run extension members and give string its trim(), spec section 26 #115), without that branch'sSOURCE_LISTING:sharp_folder_holds_namekeeps an input stamped absent current unless its folder holds a file of exactly that name;unit::stampstamps a file only when its folder holds it under its exact name. It asks the folder before it reads the file, so a missing file takes the same branch on Linux, wherepatch-coverageruns, as on macOS, and a missing folder holds nothing;refusal_absent_input.phptand the bridge'sstamptest cover a name that differs only in case and a missing folder.Spec examples
sharp/bin/test --specpasses one more example, which leavessharp/baseline/spec/, and no entry joins it:Verification
On macOS:
sharp/bin/test --census --differential --spec, after merging master: 176 of 176 tests pass,laws.phptandstructure_rules.phptincluded, the census and differential pass, every filemago compileaccepts passesphp -l, 17 of 17 self-test examples, and the spec run matchessharp/baseline/spec/: 179 examples checked, 1 ignored, 91 fail.sharp/bin/spec --base origin/masterreports "0 entries join sharp/baseline/spec, 1 leave it."cargo test -p mago-names -p mago-orchestrator -p mago-semantics -p mago-analyzer -p mago-sharp-bridgepasses, and so docargo fmt --checkandcargo clippy -D warningson the bridge.mago analyzeofsharp/composerfinds no issues.sharp_unit.handkind.rsequal the committed ones.Files