Skip to content

Conversation

@rinatkhaziev
Copy link
Contributor

@rinatkhaziev rinatkhaziev commented Jan 27, 2026

Description

This PR improves logging integration with Lando, now each dev-env command run generates a single log file that combines run results both from Lando and VIP-CLI/Dev Env. At the end of command run we now show where this file is:

=== VIP Dev Env Log ===
COMMAND            /Users/rinat/.nvm/versions/node/v20.19.4/bin/vip-dev-env-info -s what-mu
OS                 darwin 25.2.0 arm64
NODE               v20.19.4
VIP-CLI            3.23.3-dev.0
DOCKER ENGINE      29.1.3
DOCKER COMPOSE     5.0.0-desktop.1
COMPOSE PLUGIN     v5.0.0-desktop.1
DOCKER BIN         /Applications/Docker.app/Contents/Resources/bin/docker
COMPOSE BIN        /usr/local/bin/docker-compose
RAM                48.0 GB
CPU                16
===

2026-01-20T20:55:09.963Z [vip-dev-env] DEBUG: Trying to retrieve from file cache with key id
2026-01-20T20:55:09.964Z [vip-dev-env] DEBUG: Trying to retrieve from file cache with key id
... omitted
vip dev-env info -s my-env
 SLUG               my-env                                                                                          
 LOCATION           /Users/rinat/.local/share/vip/dev-environment/my-env                                            
 SERVICES           nginx, php, database, memcached, phpmyadmin, elasticsearch, wordpress, mailpit                   
 NGINX URLS         http://my-env.vipdev.lndo.site/                                                                 
                    https://my-env.vipdev.lndo.site/                                                                
 PHPMYADMIN URLS    http://localhost:55724                                                                           
                    http://my-env-pma.vipdev.lndo.site/                                                             
                    https://my-env-pma.vipdev.lndo.site/                                                            
 MAILPIT URLS       http://my-env-mailpit.vipdev.lndo.site/                                                         
                    https://my-env-mailpit.vipdev.lndo.site/                                                        
 ENTERPRISE SEARCH  http://127.0.0.1:55723                                                                           
 DATABASE           127.0.0.1:55722                                                                                  
 STATUS             UP                                                                                               
 LOGIN URL          http://my-env.vipdev.lndo.site/wp-admin/?vip-dev-autologin=sdadsadas-73b3-4212-9c14-1e2b86877fdc 
 DEFAULT USERNAME   vipgo                                                                                            
 DEFAULT PASSWORD   XXXXXX-6SyQV                                                                                     
 DOCUMENTATION      https://docs.wpvip.com/vip-local-development-environment/                                        
 TITLE              VIP Dev                                                                                          
 MULTISITE          false                                                                                            
 PHP                8.4                                                                                              
 XDEBUG             enabled                                                                                          
 CRON               enabled                                                                                          
 WORDPRESS          trunk                                                                                            
 MU PLUGINS         /Users/user/mu-plugins                                           
 APP CODE           /Users/user/app-code                                    

 COMMAND LOG FILE   /Users/user/.local/share/vip/lando/logs/vip-dev-env-my-env-20260120-211348.log

Needs Automattic/lando-cli#170

============

This pull request updates the npm-shrinkwrap.json file with several dependency and metadata adjustments. The most notable changes include updating the version of the lando dependency, adding new modules, and correcting or adding peer and dev flags for various dependencies to improve package resolution and compatibility

Dependency updates and additions:

  • Updated the lando dependency to a new commit hash for github:automattic/lando-cli, ensuring the project uses the latest version from the repository.
  • Added new modules: @isaacs/balanced-match and @isaacs/brace-expansion, including their versioning, integrity, and engine requirements.

Peer and dev flag corrections:

  • Added or corrected the "peer": true flag for multiple dependencies, such as @babel/core, acorn, deep-is, eslint, ajv, and others, to accurately represent peer dependency relationships and prevent npm/yarn warnings. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25]
  • Added "dev": true to several dependencies to clarify their development-only status, such as @isaacs/cliui, ansi-regex, ansi-styles, string-width, strip-ansi, wrap-ansi, @pkgjs/parseargs, eastasianwidth, and emoji-regex. [1] [2] [3] [4] [5] [6] [7] [8]

These changes help ensure that the dependency tree is accurate, up-to-date, and that package managers handle peer and dev dependencies correctly, reducing potential install-time issues and improving maintainability.

Changelog Description

Added

  • Each Dev Env command execution now logs into separate log file and the file location is printed at the end of the execution. This is a quality-of-life improvement aimed at significantly reducing the friction around debugging Dev Env issues.

Pull request checklist

New release checklist

Steps to Test

Outline the steps to test and verify the PR here.

Example:

  1. Check out PR.
  2. Run npm run build
  3. Run various dev env commands, verify the logs working.

…and in one file with consistent formatting.

  - Add dynamic dev‑env log filenames (slug + timestamp) and wire bootstrapLando({ logFile }) across all dev‑env commands.
  - Update lando dependency in vip‑cli to new fork commit.
@github-actions
Copy link
Contributor

github-actions bot commented Jan 27, 2026

Dependency Review

The following issues were found:
  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 1 package(s) with unknown licenses.
See the Details below.

License Issues

package.json

PackageVersionLicenseIssue Type
landogithub:automattic/lando-cli#459ac2d44ac3db17719493e879d52178410ff70eNullUnknown License

OpenSSF Scorecard

PackageVersionScoreDetails
npm/lando github:automattic/lando-cli#459ac2d44ac3db17719493e879d52178410ff70e UnknownUnknown

Scanned Files

  • package.json

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

@rinatkhaziev rinatkhaziev merged commit b978ea1 into trunk Jan 29, 2026
18 of 19 checks passed
@rinatkhaziev rinatkhaziev deleted the unified-logger-pass-3a branch January 29, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants