twpayne / chezmoi

Manage your dotfiles across multiple diverse machines, securely.
https://www.chezmoi.io/
MIT License
12.85k stars 477 forks source link

GitHub Actions tests on macOS occasionally fail due to unexpected output from KeePassXC in open mode #3624

Closed twpayne closed 1 month ago

twpayne commented 6 months ago

Describe the bug

chezmoi test on macos on GitHub Actions occasionally fail due to unexpected output from KeePassXC in open mode, like in this run:

Run go test -race ./...
...
--- FAIL: TestKeepassxcTemplateFuncs (2.25s)
    --- FAIL: TestKeepassxcTemplateFuncs/open (0.86s)
        --- FAIL: TestKeepassxcTemplateFuncs/open/correct_password (0.[19](https://github.com/twpayne/chezmoi/actions/runs/8074261512/job/22059282447#step:9:20)s)
            keepassxctemplatefuncs_test.go:1[30](https://github.com/twpayne/chezmoi/actions/runs/8074261512/job/22059282447#step:9:31): Expected values to be equal:
                +show "test group/test entry" --attributes UserName --quiet --show-protected
                 test / username
                \ No newline at end of file

To reproduce

I don't know how to reproduce this. This occasionally fails on GitHub Actions but I haven't seen it locally on my macOS machine.

Expected behavior

The test should always pass.

Output of command with the --verbose flag

n/a

Output of chezmoi doctor

```console $ chezmoi doctor RESULT CHECK MESSAGE ok version v2.47.1, commit 1ce6b2eeb0caf75bd91883e5a968e713a26e7be2, built at 2024-03-03T00:47:52Z, built by Homebrew ok latest-version v2.47.1 ok os-arch darwin/arm64 ok uname Darwin MacBook-Air 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:34 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8103 arm64 ok go-version go1.22.0 (gc) ok executable /opt/homebrew/bin/chezmoi ok upgrade-method brew-upgrade ok config-file ~/.config/chezmoi/chezmoi.toml, last modified 2024-03-03T03:43:09+01:00 ok source-dir ~/.local/share/chezmoi is a git working tree (clean) ok suspicious-entries no suspicious entries ok working-tree ~/.local/share/chezmoi is a git working tree (clean) ok dest-dir ~ is a directory ok umask 022 ok cd-command found /bin/zsh ok cd-args /bin/zsh info diff-command not set ok edit-command found /opt/homebrew/bin/nvim ok edit-args /opt/homebrew/bin/nvim ok git-command found /opt/homebrew/bin/git, version 2.44.0 ok merge-command found /usr/bin/vimdiff ok shell-command found /bin/zsh ok shell-args /bin/zsh ok age-command found /opt/homebrew/bin/age, version 1.1.1 ok gpg-command found /opt/homebrew/bin/gpg, version 2.4.4 info pinentry-command not set ok 1password-command found /opt/homebrew/bin/op, version 2.25.0 info bitwarden-command bw not found in $PATH info bitwarden-secrets-command bws not found in $PATH info dashlane-command dcli not found in $PATH info doppler-command doppler not found in $PATH info gopass-command gopass not found in $PATH info keepassxc-command keepassxc-cli not found in $PATH info keepassxc-db not set info keeper-command keeper not found in $PATH info lastpass-command lpass not found in $PATH info pass-command pass not found in $PATH info passhole-command ph not found in $PATH info rbw-command rbw not found in $PATH info vault-command vault not found in $PATH info vlt-command vlt not found in $PATH info secret-command not set```

Additional context

These lines should remove the echoed command from the output, but for some reason I don't understand, the echoed command is still appearing in the output.

twpayne commented 1 month ago

I've not seen this for a while, so closing this for now.