Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[VarDumper] Add functional test forServerDumpCommand#53737

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
louismariegaborit wants to merge1 commit intosymfony:7.4
base:7.4
Choose a base branch
Loading
fromlouismariegaborit:var_dumper_add_tests

Conversation

louismariegaborit
Copy link
Contributor

QA
Branch?7.1
Bug fix?no
New feature?no
Deprecations?no
Issues
LicenseMIT

Update DumpServer to add functional test for the ServerDumpCommand.
This PR will allow to use DumpServer in the ServerLogCommand and test this command that had regressions in the past.

It's a try following a comment in another closed PR (#53518 (comment) cc@nicolas-grekas)

@carsonbotcarsonbot added this to the7.1 milestoneFeb 2, 2024
@louismariegaboritlouismariegaboritforce-pushed thevar_dumper_add_tests branch 2 times, most recently frome1f6536 to0573d8dCompareFebruary 2, 2024 22:34
@louismariegaborit
Copy link
ContributorAuthor

@nicolas-grekas I tried to use DumpServer with the update in this PR and it allows testing ServerLogCommand. :)
I do a dedicated PR after this.

I wonder if it should be targeted 7.1 or 6.4

@OskarStarkOskarStark changed the title[VarDumper] Add functional test for ServerDumpCommand[VarDumper] Add functional test forServerDumpCommandFeb 5, 2024
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Here are some comments to help move forward hopefully.

[$data, $context] = $payload;

$callback($data, $context, $clientId);
$callback($clientId, $message);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

that's a BC break as this changes the contract of the callback.
Also I'm not sure this makes sense it terms of responsibility.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I did this followingyour comment in the PR#53518.
Do you have an idea ?
To help you, herea try of usage on the monolog bridge to see possibilities.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'm sorry we should try to keep the existing signature callback.
It's fine to me if we don't factorize the code with ServerLogCommand
The motivation for this PR is testing. Can't we do an integration test instead, where we start a real process?

@fabpot
Copy link
Member

@louismariegaborit What's the status of this PR?

@fabpotfabpot modified the milestones:7.2,7.3Nov 20, 2024
@fabpotfabpot modified the milestones:7.3,7.4May 26, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nicolas-grekasnicolas-grekasAwaiting requested review from nicolas-grekas

Assignees
No one assigned
Projects
None yet
Milestone
7.4
Development

Successfully merging this pull request may close these issues.

5 participants
@louismariegaborit@fabpot@nicolas-grekas@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp