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

Log out the underlying format command when logging at debug level #292

Closed
brianmcgee opened this issue May 16, 2024 · 0 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@brianmcgee
Copy link
Member

V1 does this, which can be helpful when diagnosing setup issues.

[DEBUG] running cd "/home/zowoq/infra" && "/nix/store/24gsl189ax1av9j2lnm9ph4a0n5x3gbs-actionlint-1.7.0/bin/actionlint" "/home/zowoq/infra/.github/workflows/darwin.yml" "/home/zowoq/infra/.github/workflows/flake-updates.yml" "/home/zowoq/infra/.github/workflows/labels.yml" "/home/zowoq/infra/.github/workflows/pages.yml" "/home/zowoq/infra/.github/workflows/repo-list.yml"
[DEBUG] running cd "/home/zowoq/infra" && "/run/current-system/sw/bin/sh" "-eucx" "/nix/store/n71q16zhv897m64i5wgyd6kzjhljanmk-ruff-0.4.4/bin/ruff check --fix \"$@\"\n/nix/store/n71q16zhv897m64i5wgyd6kzjhljanmk-ruff-0.4.4/bin/ruff format \"$@\"\n" "--" "/home/zowoq/infra/hosts/build02/supervisor.py" "/home/zowoq/infra/hosts/build02/supervisor_test.py" "/home/zowoq/infra/tasks.py"
[DEBUG] running cd "/home/zowoq/infra" && "/nix/store/26v8454mhbwqhsj47i465p8hh19kq4dh-hclfmt-2.20.1/bin/hclfmt" "-w" "/home/zowoq/infra/terraform/cloudflare.tf" "/home/zowoq/infra/terraform/cloudflare_nix-community_org.tf" "/home/zowoq/infra/terraform/hydra-projects.tf" "/home/zowoq/infra/terraform/locals.tf" "/home/zowoq/infra/terraform/terraform_backend.tf" "/home/zowoq/infra/terraform/terraform_cloud.tf" "/home/zowoq/infra/terraform/terraform_providers.tf"
[DEBUG] running cd "/home/zowoq/infra" && "/nix/store/h3bhzvz9ipglcybbcvkxvm4vg9lwvqg4-bash-5.2p26/bin/bash" "-eucx" "# to allow recursive globbing\nshopt -s globstar\ncd \".\"\nexport PYTHONPATH=\"/nix/store/k3701zl6gmx3la7y4dnflcvf3xfy88kh-python3-3.11.9/lib/python3.11/site-packages:/nix/store/n8sgv2zjvs7j5wn648ijy4lkq63xw86n-python3.11-deploykit-1.1.1/lib/python3.11/site-packages:/nix/store/aviqwm90s769bpg5q0xdn2rlnb8zbg1g-python3.11-invoke-2.2.0/lib/python3.11/site-packages\"\n/nix/store/xhp7vrjm9kixkrzscl4yf9j233ln4dnw-python3.11-mypy-1.9.0/bin/mypy   **/tasks.py\n" "/home/zowoq/infra/tasks.py"
[DEBUG] running cd "/home/zowoq/infra" && "/nix/store/xrbfpwv4m13h1p71lia39hkxp47ywj2c-prettier-3.2.5/bin/prettier" "--write" "--write" "--prose-wrap" "never" "/home/zowoq/infra/.github/dependabot.yml" "/home/zowoq/infra/.github/labeler.yml" "/home/zowoq/infra/.github/settings.yml" "/home/zowoq/infra/.github/workflows/darwin.yml" "/home/zowoq/infra/.github/workflows/flake-updates.yml" "/home/zowoq/infra/.github/workflows/labels.yml" "/home/zowoq/infra/.github/workflows/pages.yml" "/home/zowoq/infra/.github/workflows/repo-list.yml" "/home/zowoq/infra/.sops.yaml" "/home/zowoq/infra/README.md" "/home/zowoq/infra/devdoc/hosts.md" "/home/zowoq/infra/devdoc/onboarding.md" "/home/zowoq/infra/docs/administrators.md" "/home/zowoq/infra/docs/community-builder.md" "/home/zowoq/infra/docs/contact.md" "/home/zowoq/infra/docs/continuous-integration.md" "/home/zowoq/infra/docs/dns.md" "/home/zowoq/infra/docs/faq.md" "/home/zowoq/infra/docs/index.md" "/home/zowoq/infra/docs/monitoring.md" "/home/zowoq/infra/docs/namespace-actions.md" "/home/zowoq/infra/docs/nur-update.md" "/home/zowoq/infra/docs/open-collective.md" "/home/zowoq/infra/docs/security.md" "/home/zowoq/infra/docs/sponsors.md" "/home/zowoq/infra/docs/update-bot.md" "/home/zowoq/infra/mkdocs.yml"
[DEBUG] running cd "/home/zowoq/infra" && "/run/current-system/sw/bin/sh" "-eucx" "/nix/store/8hql021xr3hb7p3462rps5s6kxmvx4c4-deadnix-1.2.1/bin/deadnix --edit \"$@\"\n\nfor i in \"$@\"; do\n  /nix/store/677nv6rhmn1cxni9w6aai9m6xm5r6bcw-statix-0.5.8/bin/statix fix \"$i\"\ndone\n\n/nix/store/2mzdw2f4342aj7rylr2xqr6y5f07c9dl-nixpkgs-fmt-1.3.0/bin/nixpkgs-fmt \"$@\"\n" "--" "/home/zowoq/infra/dev/shell.nix" "/home/zowoq/infra/dev/treefmt.nix" "/home/zowoq/infra/flake.nix" "/home/zowoq/infra/hosts/build01/configuration.nix" "/home/zowoq/infra/hosts/build02/configuration.nix" "/home/zowoq/infra/hosts/build02/nixpkgs-update-backup.nix" "/home/zowoq/infra/hosts/build02/nixpkgs-update.nix" "/home/zowoq/infra/hosts/build02/supervisor_test.nix" "/home/zowoq/infra/hosts/build03/builders.nix" "/home/zowoq/infra/hosts/build03/configuration.nix" "/home/zowoq/infra/hosts/build03/postgresql.nix" "/home/zowoq/infra/hosts/build04/configuration.nix" "/home/zowoq/infra/hosts/darwin01/builders.nix" "/home/zowoq/infra/hosts/darwin01/configuration.nix" "/home/zowoq/infra/hosts/darwin02/configuration.nix" "/home/zowoq/infra/hosts/darwin03/configuration.nix" "/home/zowoq/infra/hosts/web02/configuration.nix" "/home/zowoq/infra/hosts/web02/gandi.nix" "/home/zowoq/infra/modules/darwin/builder.nix" "/home/zowoq/infra/modules/darwin/common/apfs-cleanup.nix" "/home/zowoq/infra/modules/darwin/common/default.nix" "/home/zowoq/infra/modules/darwin/common/reboot.nix" "/home/zowoq/infra/modules/darwin/common/telegraf.nix" "/home/zowoq/infra/modules/darwin/common/upgrade-diff.nix" "/home/zowoq/infra/modules/darwin/community-builder/default.nix" "/home/zowoq/infra/modules/darwin/community-builder/packages.nix" "/home/zowoq/infra/modules/darwin/community-builder/users.nix" "/home/zowoq/infra/modules/darwin/hercules-ci/default.nix" "/home/zowoq/infra/modules/darwin/remote-builder.nix" "/home/zowoq/infra/modules/nixos/buildbot.nix" "/home/zowoq/infra/modules/nixos/builder.nix" "/home/zowoq/infra/modules/nixos/common/comin.nix" "/home/zowoq/infra/modules/nixos/common/default.nix" "/home/zowoq/infra/modules/nixos/common/reboot.nix" "/home/zowoq/infra/modules/nixos/common/security.nix" "/home/zowoq/infra/modules/nixos/common/sops-nix.nix" "/home/zowoq/infra/modules/nixos/common/telegraf.nix" "/home/zowoq/infra/modules/nixos/common/users.nix" "/home/zowoq/infra/modules/nixos/community-builder/default.nix" "/home/zowoq/infra/modules/nixos/community-builder/packages.nix" "/home/zowoq/infra/modules/nixos/community-builder/users.nix" "/home/zowoq/infra/modules/nixos/disko-raid.nix" "/home/zowoq/infra/modules/nixos/disko-zfs.nix" "/home/zowoq/infra/modules/nixos/github-org-backup.nix" "/home/zowoq/infra/modules/nixos/hercules-ci/default.nix" "/home/zowoq/infra/modules/nixos/hydra.nix" "/home/zowoq/infra/modules/nixos/monitoring/alert-rules.nix" "/home/zowoq/infra/modules/nixos/monitoring/default.nix" "/home/zowoq/infra/modules/nixos/monitoring/hosts.nix" "/home/zowoq/infra/modules/nixos/monitoring/matrix-hook.nix" "/home/zowoq/infra/modules/nixos/monitoring/prometheus.nix" "/home/zowoq/infra/modules/nixos/monitoring/telegraf.nix" "/home/zowoq/infra/modules/nixos/nur-update.nix" "/home/zowoq/infra/modules/nixos/remote-builder.nix" "/home/zowoq/infra/modules/nixos/watch-store.nix" "/home/zowoq/infra/modules/shared/builder.nix" "/home/zowoq/infra/modules/shared/known-hosts.nix" "/home/zowoq/infra/modules/shared/nix-daemon.nix" "/home/zowoq/infra/modules/shared/remote-builder.nix" "/home/zowoq/infra/modules/shared/telegraf.nix" "/home/zowoq/infra/terraform/shell.nix" "/home/zowoq/infra/users/adisbladis.nix" "/home/zowoq/infra/users/lib.nix" "/home/zowoq/infra/users/mic92.nix" "/home/zowoq/infra/users/ryantm.nix" "/home/zowoq/infra/users/zimbatm.nix" "/home/zowoq/infra/users/zowoq.nix"
[DEBUG] running cd "/home/zowoq/infra" && "/nix/store/zc53l5c7vhjq78z71zf86frdj0yvxbls-editorconfig-checker-3.0.1/bin/editorconfig-checker" "/home/zowoq/infra/.github/dependabot.yml" "/home/zowoq/infra/.github/labeler.yml" "/home/zowoq/infra/.github/settings.yml" "/home/zowoq/infra/.github/workflows/darwin.yml" "/home/zowoq/infra/.github/workflows/flake-updates.yml" "/home/zowoq/infra/.github/workflows/labels.yml" "/home/zowoq/infra/.github/workflows/pages.yml" "/home/zowoq/infra/.github/workflows/repo-list.yml" "/home/zowoq/infra/.sops.yaml" "/home/zowoq/infra/LICENSE" "/home/zowoq/infra/README.md" "/home/zowoq/infra/dev/shell.nix" "/home/zowoq/infra/dev/treefmt.nix" "/home/zowoq/infra/devdoc/hosts.md" "/home/zowoq/infra/devdoc/onboarding.md" "/home/zowoq/infra/devdoc/repo_list" "/home/zowoq/infra/docs/CNAME" "/home/zowoq/infra/docs/Logo_namespace_filled_lightbg.png" "/home/zowoq/infra/docs/administrators.md" "/home/zowoq/infra/docs/community-builder.md" "/home/zowoq/infra/docs/contact.md" "/home/zowoq/infra/docs/continuous-integration.md" "/home/zowoq/infra/docs/dns.md" "/home/zowoq/infra/docs/faq.md" "/home/zowoq/infra/docs/index.md" "/home/zowoq/infra/docs/monitoring.md" "/home/zowoq/infra/docs/namespace-actions.md" "/home/zowoq/infra/docs/nix-community-logo.png" "/home/zowoq/infra/docs/nix-community-logo.svg" "/home/zowoq/infra/docs/nur-update.md" "/home/zowoq/infra/docs/open-collective.md" "/home/zowoq/infra/docs/security.md" "/home/zowoq/infra/docs/sponsors.md" "/home/zowoq/infra/docs/update-bot.md" "/home/zowoq/infra/flake.lock" "/home/zowoq/infra/flake.nix" "/home/zowoq/infra/hosts/build01/configuration.nix" "/home/zowoq/infra/hosts/build01/secrets.yaml" "/home/zowoq/infra/hosts/build02/configuration.nix" "/home/zowoq/infra/hosts/build02/gitconfig.txt" "/home/zowoq/infra/hosts/build02/nixpkgs-update-backup.nix" "/home/zowoq/infra/hosts/build02/nixpkgs-update.nix" "/home/zowoq/infra/hosts/build02/packages-with-update-script.nix" "/home/zowoq/infra/hosts/build02/secrets.yaml" "/home/zowoq/infra/hosts/build02/supervisor.py" "/home/zowoq/infra/hosts/build02/supervisor_test.nix" "/home/zowoq/infra/hosts/build02/supervisor_test.py" "/home/zowoq/infra/hosts/build03/builders.nix" "/home/zowoq/infra/hosts/build03/configuration.nix" "/home/zowoq/infra/hosts/build03/postgresql.nix" "/home/zowoq/infra/hosts/build03/secrets.yaml" "/home/zowoq/infra/hosts/build04/configuration.nix" "/home/zowoq/infra/hosts/build04/secrets.yaml" "/home/zowoq/infra/hosts/darwin01/builders.nix" "/home/zowoq/infra/hosts/darwin01/configuration.nix" "/home/zowoq/infra/hosts/darwin01/secrets.yaml" "/home/zowoq/infra/hosts/darwin02/configuration.nix" "/home/zowoq/infra/hosts/darwin03/configuration.nix" "/home/zowoq/infra/hosts/web02/configuration.nix" "/home/zowoq/infra/hosts/web02/gandi.nix" "/home/zowoq/infra/hosts/web02/secrets.yaml" "/home/zowoq/infra/inv" "/home/zowoq/infra/mkdocs.yml" "/home/zowoq/infra/modules/darwin/builder.nix" "/home/zowoq/infra/modules/darwin/common/apfs-cleanup.nix" "/home/zowoq/infra/modules/darwin/common/default.nix" "/home/zowoq/infra/modules/darwin/common/reboot.nix" "/home/zowoq/infra/modules/darwin/common/telegraf.nix" "/home/zowoq/infra/modules/darwin/common/upgrade-diff.nix" "/home/zowoq/infra/modules/darwin/community-builder/default.nix" "/home/zowoq/infra/modules/darwin/community-builder/keys/0x4A6F" "/home/zowoq/infra/modules/darwin/community-builder/keys/anthonyroussel" "/home/zowoq/infra/modules/darwin/community-builder/keys/artturin" "/home/zowoq/infra/modules/darwin/community-builder/keys/chayleaf" "/home/zowoq/infra/modules/darwin/community-builder/keys/corngood" "/home/zowoq/infra/modules/darwin/community-builder/keys/delroth" "/home/zowoq/infra/modules/darwin/community-builder/keys/dotlambda" "/home/zowoq/infra/modules/darwin/community-builder/keys/ember" "/home/zowoq/infra/modules/darwin/community-builder/keys/emilylange" "/home/zowoq/infra/modules/darwin/community-builder/keys/emilytrau" "/home/zowoq/infra/modules/darwin/community-builder/keys/fab" "/home/zowoq/infra/modules/darwin/community-builder/keys/figsoda" "/home/zowoq/infra/modules/darwin/community-builder/keys/glepage" "/home/zowoq/infra/modules/darwin/community-builder/keys/hexa" "/home/zowoq/infra/modules/darwin/community-builder/keys/jade" "/home/zowoq/infra/modules/darwin/community-builder/keys/janik" "/home/zowoq/infra/modules/darwin/community-builder/keys/jopejoe1" "/home/zowoq/infra/modules/darwin/community-builder/keys/jtojnar" "/home/zowoq/infra/modules/darwin/community-builder/keys/julienmalka" "/home/zowoq/infra/modules/darwin/community-builder/keys/k900" "/home/zowoq/infra/modules/darwin/community-builder/keys/kenji" "/home/zowoq/infra/modules/darwin/community-builder/keys/kranzes" "/home/zowoq/infra/modules/darwin/community-builder/keys/lily" "/home/zowoq/infra/modules/darwin/community-builder/keys/ma27" "/home/zowoq/infra/modules/darwin/community-builder/keys/matthewcroughan" "/home/zowoq/infra/modules/darwin/community-builder/keys/nicoo" "/home/zowoq/infra/modules/darwin/community-builder/keys/pennae" "/home/zowoq/infra/modules/darwin/community-builder/keys/phaer" "/home/zowoq/infra/modules/darwin/community-builder/keys/pinpox" "/home/zowoq/infra/modules/darwin/community-builder/keys/puckipedia" "/home/zowoq/infra/modules/darwin/community-builder/keys/raitobezarius" "/home/zowoq/infra/modules/darwin/community-builder/keys/sgo" "/home/zowoq/infra/modules/darwin/community-builder/keys/stephank" "/home/zowoq/infra/modules/darwin/community-builder/keys/sternenseemann" "/home/zowoq/infra/modules/darwin/community-builder/keys/teto" "/home/zowoq/infra/modules/darwin/community-builder/keys/toonn" "/home/zowoq/infra/modules/darwin/community-builder/keys/winter" "/home/zowoq/infra/modules/darwin/community-builder/packages.nix" "/home/zowoq/infra/modules/darwin/community-builder/users.nix" "/home/zowoq/infra/modules/darwin/hercules-ci/default.nix" "/home/zowoq/infra/modules/darwin/hercules-ci/secrets.yaml" "/home/zowoq/infra/modules/darwin/remote-builder.nix" "/home/zowoq/infra/modules/nixos/buildbot.nix" "/home/zowoq/infra/modules/nixos/builder.nix" "/home/zowoq/infra/modules/nixos/common/comin.nix" "/home/zowoq/infra/modules/nixos/common/default.nix" "/home/zowoq/infra/modules/nixos/common/reboot.nix" "/home/zowoq/infra/modules/nixos/common/security.nix" "/home/zowoq/infra/modules/nixos/common/sops-nix.nix" "/home/zowoq/infra/modules/nixos/common/telegraf.nix" "/home/zowoq/infra/modules/nixos/common/users.nix" "/home/zowoq/infra/modules/nixos/community-builder/default.nix" "/home/zowoq/infra/modules/nixos/community-builder/keys/0x4A6F" "/home/zowoq/infra/modules/nixos/community-builder/keys/a-kenji" "/home/zowoq/infra/modules/nixos/community-builder/keys/binarycat" "/home/zowoq/infra/modules/nixos/community-builder/keys/bobby285271" "/home/zowoq/infra/modules/nixos/community-builder/keys/ckie" "/home/zowoq/infra/modules/nixos/community-builder/keys/fgaz" "/home/zowoq/infra/modules/nixos/community-builder/keys/flokli" "/home/zowoq/infra/modules/nixos/community-builder/keys/glepage" "/home/zowoq/infra/modules/nixos/community-builder/keys/hexchen" "/home/zowoq/infra/modules/nixos/community-builder/keys/janik" "/home/zowoq/infra/modules/nixos/community-builder/keys/jtojnar" "/home/zowoq/infra/modules/nixos/community-builder/keys/lewo" "/home/zowoq/infra/modules/nixos/community-builder/keys/lily" "/home/zowoq/infra/modules/nixos/community-builder/keys/matthewcroughan" "/home/zowoq/infra/modules/nixos/community-builder/keys/matthiasbeyer" "/home/zowoq/infra/modules/nixos/community-builder/keys/networkexception" "/home/zowoq/infra/modules/nixos/community-builder/keys/nicoo" "/home/zowoq/infra/modules/nixos/community-builder/keys/pinpox" "/home/zowoq/infra/modules/nixos/community-builder/keys/raitobezarius" "/home/zowoq/infra/modules/nixos/community-builder/keys/schmittlauch" "/home/zowoq/infra/modules/nixos/community-builder/keys/stephank" "/home/zowoq/infra/modules/nixos/community-builder/keys/teto" "/home/zowoq/infra/modules/nixos/community-builder/keys/winter" "/home/zowoq/infra/modules/nixos/community-builder/packages.nix" "/home/zowoq/infra/modules/nixos/community-builder/users.nix" "/home/zowoq/infra/modules/nixos/disko-raid.nix" "/home/zowoq/infra/modules/nixos/disko-zfs.nix" "/home/zowoq/infra/modules/nixos/github-org-backup.nix" "/home/zowoq/infra/modules/nixos/hercules-ci/default.nix" "/home/zowoq/infra/modules/nixos/hercules-ci/secrets.yaml" "/home/zowoq/infra/modules/nixos/hydra.nix" "/home/zowoq/infra/modules/nixos/monitoring/alert-rules.nix" "/home/zowoq/infra/modules/nixos/monitoring/default.nix" "/home/zowoq/infra/modules/nixos/monitoring/hosts.nix" "/home/zowoq/infra/modules/nixos/monitoring/matrix-hook.nix" "/home/zowoq/infra/modules/nixos/monitoring/prometheus.nix" "/home/zowoq/infra/modules/nixos/monitoring/telegraf.nix" "/home/zowoq/infra/modules/nixos/nur-update.nix" "/home/zowoq/infra/modules/nixos/remote-builder.nix" "/home/zowoq/infra/modules/nixos/watch-store.nix" "/home/zowoq/infra/modules/shared/builder.nix" "/home/zowoq/infra/modules/shared/known-hosts.nix" "/home/zowoq/infra/modules/shared/nix-daemon.nix" "/home/zowoq/infra/modules/shared/remote-builder.nix" "/home/zowoq/infra/modules/shared/telegraf.nix" "/home/zowoq/infra/pyproject.toml" "/home/zowoq/infra/secrets.yaml" "/home/zowoq/infra/tasks.py" "/home/zowoq/infra/terraform/cloudflare.tf" "/home/zowoq/infra/terraform/cloudflare_nix-community_org.tf" "/home/zowoq/infra/terraform/hydra-projects.tf" "/home/zowoq/infra/terraform/locals.tf" "/home/zowoq/infra/terraform/secrets.yaml" "/home/zowoq/infra/terraform/shell.nix" "/home/zowoq/infra/terraform/terraform_backend.tf" "/home/zowoq/infra/terraform/terraform_cloud.tf" "/home/zowoq/infra/terraform/terraform_providers.tf" "/home/zowoq/infra/users/adisbladis.nix" "/home/zowoq/infra/users/keys/adisbladis" "/home/zowoq/infra/users/keys/mic92" "/home/zowoq/infra/users/keys/ryantm" "/home/zowoq/infra/users/keys/zimbatm" "/home/zowoq/infra/users/keys/zowoq" "/home/zowoq/infra/users/lib.nix" "/home/zowoq/infra/users/mic92.nix" "/home/zowoq/infra/users/ryantm.nix" "/home/zowoq/infra/users/zimbatm.nix" "/home/zowoq/infra/users/zowoq.nix"

We probably don't want to log out 1024 paths, maybe replace the paths in the args list with <PATHS> if they are greater than a certain size for brevity.

@brianmcgee brianmcgee added the enhancement New feature or request label May 16, 2024
@brianmcgee brianmcgee self-assigned this May 16, 2024
brianmcgee added a commit that referenced this issue May 17, 2024
@mergify mergify bot closed this as completed in 3c264c6 May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant