-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Added version number to ASCII banner #809
Conversation
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.
Thank you for contributing to Infection. We noticed you didn't add any tests. Could you please add them to make sure everything works as expected?
Can I suggest moving it one line below? It looks prettier IMO, see
definitely need another pair of eyes @infection/core |
I would prefer to stick to the Composer way there tbh:
Did the same in Box btw in case you are looking for an easier way to copy it: https://github.com/humbug/box/blob/master/src/Console/Application.php |
I think i'd prefer it below, like @theofidry suggests |
OK, but do you just want the bare version number or do you want some decoration like, "Infection version x.y.z"? |
Now looks something like
|
Remove blank line after version output.
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.
Now it's much better :)
Found a small issue when I run bin/infection -V
bin/infection -V
____ ____ __ _
/ _/___ / __/__ _____/ /_(_)___ ____
/ // __ \/ /_/ _ \/ ___/ __/ / __ \/ __ \
_/ // / / / __/ __/ /__/ /_/ / /_/ / / / /
/___/_/ /_/_/ \___/\___/\__/_/\____/_/ /_/
Infection - PHP Mutation Testing Framework dev-master@a1eb3df1012a2c86c0c32de9503e03140b1b7e9d
Infection - PHP Mutation Testing Framework dev-master@a1eb3df1012a2c86c0c32de9503e03140b1b7e9d
duplicated message
|
||
return parent::doRun($input, $output); | ||
} | ||
|
||
public function getLongVersion() |
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.
Why did we remove it?
I guess now it returns Infection - PHP Mutation Testing Framework dev-master@a1eb3df1012a2c86c0c32de9503e03140b1b7e9d
instead of Infection - PHP Mutation Testing Framework dev-master
?
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.
It was removed because it wasn't used. Or didn't seem to do anything useful. I don't exactly remember now 😂
What should happen when calling |
Changed version command output to exclude ASCII banner.
I changed the version command ( I would suggest not emitting the debug warning with the version ( |
Sorry for the delay with review. I'm quite happy with the result. Just 1 question: do we need that long hash in a version? Please compare # before
Infection - PHP Mutation Testing Framework dev-version
# after
Infection - PHP Mutation Testing Framework dev-version@36f7fe04eca492c12ed5af23a4049c26214447f4 -- I agree, there is no point to display ascii logo with |
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.
Please, fix the builds (make cs
)
I presume the long hash is only displayed when the version isn't tagged. Most people would use a release version and thus never see it, and for those not using a tag it is probably useful to see the hash. |
I would display the hash in any case, since sometimes a tag is not enough, but only showing the 8 first characters is enough, no need for more. |
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.
I've restarted a couple of builds, fails are unrelated.
Looks good to me.
I think this should be merged to 0.13 and 0.14 branches also, so people using older versions can actually see that they are. |
We don't support |
I want it in both.
…On Thu, 21 Nov 2019, 08:56 Maks Rafalko, ***@***.***> wrote:
We don't support 0.13 anymore. If you want this to be in the patch 0.14.x
release, please retarget this PR to 0.14 branch.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#809?email_source=notifications&email_token=AADS4YQRPBDEDBJF5CEQKGLQUZENRA5CNFSM4JCD774KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEZORBQ#issuecomment-556984454>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADS4YURN5SSCL34HA735OTQUZENRANCNFSM4JCD774A>
.
|
We just can not afford to maintain multiple branches, it is one of the
reasons why Infection is still not in stable release as well. So if you
want it on an older version I believe you should fork the project to merge
your change there. But I admit I don’t really see the value of keeping to
use an old version at this point
…On Thu 21 Nov 2019 at 10:51, Bilge ***@***.***> wrote:
I want it in both.
On Thu, 21 Nov 2019, 08:56 Maks Rafalko, ***@***.***> wrote:
> We don't support 0.13 anymore. If you want this to be in the patch 0.14.x
> release, please retarget this PR to 0.14 branch.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <
#809?email_source=notifications&email_token=AADS4YQRPBDEDBJF5CEQKGLQUZENRA5CNFSM4JCD774KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEZORBQ#issuecomment-556984454
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AADS4YURN5SSCL34HA735OTQUZENRANCNFSM4JCD774A
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#809?email_source=notifications&email_token=ABHPVAPQIMVNG5FGIK7V6H3QUZK2JA5CNFSM4JCD774KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEZT3TY#issuecomment-557006287>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHPVAII4EPRVCCQ6AUME3DQUZK2JANCNFSM4JCD774A>
.
|
If you support and thus test on older versions of PHP, you will end up with
an older version of infection, because infection has already dropped
support for them.
…On Thu, 21 Nov 2019, 10:00 Théo FIDRY, ***@***.***> wrote:
We just can not afford to maintain multiple branches, it is one of the
reasons why Infection is still not in stable release as well. So if you
want it on an older version I believe you should fork the project to merge
your change there. But I admit I don’t really see the value of keeping to
use an old version at this point
On Thu 21 Nov 2019 at 10:51, Bilge ***@***.***> wrote:
> I want it in both.
>
> On Thu, 21 Nov 2019, 08:56 Maks Rafalko, ***@***.***>
wrote:
>
> > We don't support 0.13 anymore. If you want this to be in the patch
0.14.x
> > release, please retarget this PR to 0.14 branch.
> >
> > —
> > You are receiving this because you authored the thread.
> > Reply to this email directly, view it on GitHub
> > <
>
#809?email_source=notifications&email_token=AADS4YQRPBDEDBJF5CEQKGLQUZENRA5CNFSM4JCD774KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEZORBQ#issuecomment-556984454
> >,
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/AADS4YURN5SSCL34HA735OTQUZENRANCNFSM4JCD774A
> >
> > .
> >
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#809?email_source=notifications&email_token=ABHPVAPQIMVNG5FGIK7V6H3QUZK2JA5CNFSM4JCD774KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEZT3TY#issuecomment-557006287
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ABHPVAII4EPRVCCQ6AUME3DQUZK2JANCNFSM4JCD774A
>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#809?email_source=notifications&email_token=AADS4YV3XEJJNT3NPP4VEQDQUZL5PA5CNFSM4JCD774KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEZUZ3Y#issuecomment-557010159>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADS4YXVDACN2MNGZCNHOW3QUZL5PANCNFSM4JCD774A>
.
|
It makes all kinds of sense to run Infection only under the most recent version of PHP, primarily because of the most recent language features being fully supported, and because it is super easy with Docker. As for the older versions of PHP, not only they're not very worthy for a CI tool like Infection, but also supporting unlimited number of PHP versions requires unlimited resources, which is unaffordable for any volunteer-maintained project like Infection. Or PHPUnit, for that matter. We already have important PRs in the works for weeks and months, as that's where ours and yours invaluable time and effort will make the most impact. |
Nobody is asking anyone to support "unlimited versions". Notwithstanding there are not unlimited versions to begin with, and thus the whole argument is predicated on nonsense, can we just merge this and then I'll backport it to 0.14 in a separate PR. |
But what you are requesting is to allow backports to previous versions which means multiple branch supports and management. That it may not look like much work to you is one thing, but really nobody in the team is willing to put extra efforts into this. We are already overwhelmed by the sheer amount of work to do (~50 issues and ~15 PR opened on average at all time). A good example of this is PHP-CS-Fixer: its support policy is impressive, but the result is a huge slowdown in activity despite a lot of enthusiastic contributions. While it may be annoying for this peculiar case, we ought to draw a line somewhere for our own mental health |
Thank you @Bilge. |
Regarding a Running a most recent version of Infection just once in the CI pipeline is enough to tell you everything you need to know about certain quality of your tests. |
@sanmai Thanks, that makes sense. Although it requires more effort to limit to only the latest build, it's probably worth doing. Not sure any comments were deleted? |
* Added version number to ASCII banner. * Changed version number to long version. Moved version below logo. * Changed logo to be left-aligned (no margin). Remove blank line after version output. * Fixed version output twice instead of just once when invoked with `-V`. Changed version command output to exclude ASCII banner. * CS fix.
* Added version number to ASCII banner. * Changed version number to long version. Moved version below logo. * Changed logo to be left-aligned (no margin). Remove blank line after version output. * Fixed version output twice instead of just once when invoked with `-V`. Changed version command output to exclude ASCII banner. * CS fix.
Closes #808.