-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adopt Laminas CI Workflow #26
Conversation
Signed-off-by: Filippo Tessarotto <[email protected]>
@Slamdunk |
I have never understood how and why: I would generate it under my local PC settings, which is arbitrary and way different from CI. Is this ok? If so, how is it useful in the first place? |
See the checks running on this pull request, the CI workflow is still missing. See also: |
Signed-off-by: Filippo Tessarotto <[email protected]>
I've committed and pushed it. Still, I feel you didn't answer my question:
|
Now build passes, PSalm fails due to laminas/laminas-continuous-integration-action#9 |
You are absolutely right, but I am not the expert on this topic and so I can not much help here, unfortunately only with some hints. |
Do you think we can close 2.10.0 milestone today? |
I see you put this into |
Right, I just saw that too. |
Oh, never mind, please wait for the proper time and location to work on this 😉 |
It's needed for non-unit test checks. The reason is because updates to QA tooling can quickly lead to different results on different runs of the same command. As examples:
As such, we want to commit a lockfile so that these remain idempotent between invocations on the same set of code.
You're right, so I wrote up the process here: https://gist.github.com/weierophinney/b003e50c3c2667d08076caf31ebd36a4 (and just added the bit about Psalm cache directory issues as well). |
@Slamdunk Okay, the laminas-continuous-integration-action is updated to resolve the Psalm caching issue. Now the check is failing due to actual errors! Ping me when resolved, and I'll get this merged and released. |
…break Signed-off-by: Filippo Tessarotto <[email protected]>
<RedundantCastGivenDocblockType occurrences="4"> | ||
<code>(bool) $flag</code> | ||
<code>(string) $description</code> | ||
<code>(string) $name</code> | ||
<code>(string) $type</code> | ||
</RedundantCastGivenDocblockType> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These redundant casts cannot be purged as they would result in a BC break, see:
laminas-server/test/Method/ParameterTest.php
Lines 70 to 78 in 6488e14
public function testSettingDescriptionShouldCastToString(): void | |
{ | |
$message = 123456; | |
/** @psalm-suppress InvalidScalarArgument */ | |
$this->parameter->setDescription($message); | |
$test = $this->parameter->getDescription(); | |
$this->assertNotSame($message, $test); | |
$this->assertEquals($message, $test); | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can suppress them individually, or add them to the baseline, then.
Ping @weierophinney |
Blocks #25