Skip to content
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

EZP-31930: Improved output of composer ezplatform-install command #597

Merged
merged 1 commit into from
Oct 23, 2020

Conversation

alongosz
Copy link
Member

@alongosz alongosz commented Sep 21, 2020

JIRA: EZP-31930
Target version: 2.5.x, 3.1.x, 3.2

This is yet another attempt like ezsystems/ezpublish-kernel#2593 to fix the output of ezplatform:install Symfony command piped through Composer (composer ezplatform-install).
The issue is visible e.g. here or locally.
image

Seems it looks better when bin/console has --ansi option. TBD if this solves the issue for all platforms.

QA

See TODO list.

TODO

  • Create JIRA ticket if this works
  • Platforms: Linux hosted on Travis: slightly better
  • Platforms: Linux hosted locally: works very well locally on Ubuntu 20.04 (@alongosz).
  • Platforms: Linux hosted VBox (TBD by QA)
  • Platforms: MacOS: TBD
  • Platforms: Windows: TBD

@alongosz alongosz marked this pull request as ready for review September 22, 2020 08:35
@alongosz alongosz requested review from a team September 22, 2020 08:36
@alongosz alongosz changed the title Improved output of composer ezplatform-install command EZP-31930: Improved output of composer ezplatform-install command Sep 22, 2020
@bogusez
Copy link

bogusez commented Sep 30, 2020

@alongosz here you can see how the script behave on ezplatform2.5 (macOS) after script is finish.
Screenshot 2020-09-30 at 10 45 27

@bogusez
Copy link

bogusez commented Sep 30, 2020

3.1 commerce
When --ansi parameter is provided then an exception occur while script is processed.

Screenshot 2020-09-30 at 10 59 35

@alongosz
Copy link
Member Author

@bogusez
OSS/EE 2.5: Reindexing command output is buffered through install command, which causes the mentioned effect. The same can be observed when used directly via php bin/console --ansi ezplatform:install clean. When reindexing is called directly (php bin/console ezplatform:reindex) this does not occur. I'm not able to find a fix for this case, I'm getting that output from Symfony Process.

EC 3.1: Cannot reproduce.

@bogusez
Copy link

bogusez commented Sep 30, 2020

@alongosz thank you for information. By the way, the problem on EC 3.1 is already solved (output formatting works properly without any errors).

@bogusez
Copy link

bogusez commented Oct 1, 2020

@alongosz I have tested formatting output on all systems. I have found several discrepancies especially on windows OS (all ezplatfrom versions: 2.5, 3.1 and 3.2) but also on macOS (ezplatform 2.5 version). The noticed by me problem might be combined with symfony problem that you mentioned before. Here are the screen shots:

Windows / ezp 2.5

image

Windows / ezp 3.1

image (1)

Windows / ezp 3.2

image (2)

MacOS / ezp 2.5

Screenshot 2020-10-01 at 12 17 25

@alongosz
Copy link
Member Author

alongosz commented Oct 1, 2020

Hmm, not sure if anything can be done with those. If I add some extra lines, for the cases where it's correct now it's gonna produce 2 blank lines. The question is if we're willing to accept the current state, given it improves output significantly, or drop it because it's not complete. I mean, I'd go with it, but I'm biased ;-)

POV ping @ezsystems/php-dev-team

@alongosz alongosz requested a review from a team October 1, 2020 10:26
@lserwatka
Copy link
Member

Hmm, not sure if anything can be done with those. If I add some extra lines, for the cases where it's correct now it's gonna produce 2 blank lines. The question is if we're willing to accept the current state, given it improves output significantly, or drop it because it's not complete. I mean, I'd go with it, but I'm biased ;-)

POV ping @ezsystems/php-dev-team

Hmm, not sure if anything can be done with those. If I add some extra lines, for the cases where it's correct now it's gonna produce 2 blank lines. The question is if we're willing to accept the current state, given it improves output significantly, or drop it because it's not complete. I mean, I'd go with it, but I'm biased ;-)

POV ping @ezsystems/php-dev-team

I would add this extra line. I don't have problem with extra space. This looks broken to me.

@alongosz
Copy link
Member Author

@bogusez further adjustments for the commands causing this are available via ezsystems/ezpublish-kernel#3070
Let me know if that works for you.

alongosz added a commit to ezsystems/ezpublish-kernel that referenced this pull request Oct 23, 2020
Cleaned up output showing a progress bar for the following commands:
* ezplatform:install
* ezplatform:reindex

For more details please see #3070 and ezsystems/ezplatform#597
@alongosz alongosz merged commit 1942b33 into 2.5 Oct 23, 2020
@alongosz alongosz deleted the fix-2.5/fix-ezplatform-install-progress-bar branch October 23, 2020 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants