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

VACMS-15953 Regenerate phpstan baselines #16104

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

JunTaoLuo
Copy link
Contributor

@JunTaoLuo JunTaoLuo commented Nov 13, 2023

Description

Closes #15953. We are choosing to ignore existing phpstan errors so only new errors will fail the va:test:phpstan check. This ensures local testing matches the CI behaviour.

Testing done

Tested locally using the phpstan composer script, i.e. running composer run-script va:test:phpstan. No more errors are observed.

Screenshots

Before:
image
After:
image

QA steps

As user with access to this repository

  1. Run the command composer run-script va:test:phpstan locally
    • Validate that PHPStan runs successfully without errors.

Definition of Done

  • Documentation has been updated, if applicable.
  • Tests have been added if necessary.
  • Automated tests have passed.
  • Code Quality Tests have passed.
  • Acceptance Criteria in related issue are met.
  • Manual Code Review Approved.
  • If there are field changes, front end output has been thoroughly checked.

Select Team for PR review

  • CMS Team
  • Public websites
  • Facilities
  • User support
  • Accelerated Publishing

@JunTaoLuo JunTaoLuo requested a review from a team as a code owner November 13, 2023 17:20
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 13, 2023 17:20 Destroyed
Copy link
Contributor

@ndouglas ndouglas left a comment

Choose a reason for hiding this comment

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

root@php:/var/lib/tugboat# composer run-script va:test:phpstan
> # Run PHPStan static analysis tests.
> ! ./scripts/should-run-directly.sh || bin/phpstan analyze --memory-limit=1G --
Note: Using configuration file /var/lib/tugboat/phpstan.neon.
 440/440 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%


 [OK] No errors                                                                 

> ./scripts/should-run-directly.sh || ddev composer va:test:phpstan --

@github-actions github-actions bot added the CMS Team CMS Product team that manages both editor exp and devops label Nov 13, 2023
@JunTaoLuo JunTaoLuo force-pushed the VACMS-15953-Regenerate-phpstan-baseline branch from a86a59f to 16d1fa8 Compare November 13, 2023 19:18
@va-cms-bot va-cms-bot temporarily deployed to Tugboat November 13, 2023 19:18 Destroyed
@JunTaoLuo JunTaoLuo enabled auto-merge (squash) November 13, 2023 19:18
@ndouglas ndouglas disabled auto-merge November 13, 2023 19:26
@ndouglas ndouglas merged commit 7144cde into main Nov 13, 2023
14 checks passed
@ndouglas ndouglas deleted the VACMS-15953-Regenerate-phpstan-baseline branch November 13, 2023 19:26
@ndouglas
Copy link
Contributor

@JunTaoLuo Just fixed an issue with permissions that I think prevented you from merging a cleanly-mergeable PR into main. That should be up to your judgment as an engineer 🙂

@JunTaoLuo
Copy link
Contributor Author

Perfect, I was about to ask whether the checks were being overly cautious/restrictive. I'll see if the next one I open feels more reasonable in terms of workflow.

@ndouglas
Copy link
Contributor

@JunTaoLuo Context here: TL;DR: I brought this up a few months back and there was some resistance, so I dropped it. But you're The Man now 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMS Team CMS Product team that manages both editor exp and devops
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regenerate PHPStan baseline.
3 participants