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

snap-failure: run snapd with the correct keyring mode #15079

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

valentindavid
Copy link
Contributor

No description provided.

@valentindavid valentindavid added the Run nested The PR also runs tests inluded in nested suite label Feb 14, 2025
// KeyringMode=shared or make the re-seeding not initialize
// fdestate
cmd := runCmd(snapdPath, nil, []string{"SNAPD_REVERT_TO_REV=" + prevRev, "SNAPD_DEBUG=1"})
cmd := runCmd("systemd-run", []string{"--collect", "--wait", "--property=KeyringMode=shared", fmt.Sprintf("--setenv=SNAPD_REVERT_TO_REV=%s", prevRev), "--setenv=SNAPD_DEBUG=1", "--", snapdPath}, []string{})
Copy link
Contributor

Choose a reason for hiding this comment

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

--wait is from systemd 232+ and I think it should work with core18, but please double check --collect

Suggested change
cmd := runCmd("systemd-run", []string{"--collect", "--wait", "--property=KeyringMode=shared", fmt.Sprintf("--setenv=SNAPD_REVERT_TO_REV=%s", prevRev), "--setenv=SNAPD_DEBUG=1", "--", snapdPath}, []string{})
cmd := runCmd("systemd-run",
[]string{"--collect", "--wait",
"--property=KeyringMode=shared",
"--setenv=SNAPD_REVERT_TO_REV="+prevRev,
"--setenv=SNAPD_DEBUG=1",
"--", snapdPath,
}, []string{})

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bionic should have 237. And this should have been added in 236.

Copy link

github-actions bot commented Feb 14, 2025

Mon Feb 17 14:18:02 UTC 2025
The following results are from: https://github.com/canonical/snapd/actions/runs/13369309218

Failures:

Executing:

  • google-nested:ubuntu-20.04-64:tests/nested/manual/core20-fde-dbx
  • google-nested:ubuntu-22.04-64:tests/nested/manual/update-snapd-seed-and-factory-reset:tpm
  • google-nested:ubuntu-22.04-64:tests/nested/manual/muinstaller-real:seeded
  • google-nested:ubuntu-22.04-64:tests/nested/manual/muinstaller-real:partial
  • google-nested:ubuntu-22.04-64:tests/nested/manual/muinstaller-real:plain
  • google-nested:ubuntu-22.04-64:tests/nested/manual/core20-create-recovery
  • google-nested:ubuntu-22.04-64:tests/nested/manual/muinstaller-real:encrypted
  • google-nested:ubuntu-22.04-64:tests/nested/manual/muinstaller
  • google-nested:ubuntu-24.04-64:tests/nested/core/core20-fault-inject-on-refresh:kernel_reboot_auto_connect
  • google-nested:ubuntu-24.04-64:tests/nested/manual/kernel-modules-components:plain
  • google-nested:ubuntu-24.04-64:tests/nested/manual/muinstaller-real:partial
  • google-nested:ubuntu-24.04-64:tests/nested/manual/muinstaller-real:plain
  • google-nested:ubuntu-24.04-64:tests/nested/manual/muinstaller-core:install_optional_snap_and_comp
  • google-nested:ubuntu-24.04-64:tests/nested/manual/muinstaller-core:install_optional_all
  • google-core:ubuntu-core-24-64:tests/core/coredump-options
  • google:ubuntu-20.04-64:tests/main/lxd:snapd_cgroup_just_outside
  • google:ubuntu-20.04-64:tests/unit/go:gcc

Restoring:

  • google-nested:ubuntu-24.04-64:tests/nested/manual/muinstaller-core:install_optional_snap_and_comp
  • google-nested:ubuntu-24.04-64:tests/nested/manual/
  • google-nested:ubuntu-24.04-64
  • google-nested:ubuntu-24.04-64:tests/nested/manual/muinstaller-core:install_optional_all
  • google-nested:ubuntu-24.04-64:tests/nested/manual/
  • google-nested:ubuntu-24.04-64

@valentindavid valentindavid force-pushed the valentindavid/snap-failure-kerying-mode branch from 67e7f2c to 9a8abbf Compare February 17, 2025 11:34
@valentindavid valentindavid marked this pull request as ready for review February 17, 2025 11:34
Copy link

codecov bot commented Feb 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.80%. Comparing base (a272aac) to head (9a8abbf).
Report is 16 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #15079      +/-   ##
==========================================
- Coverage   78.07%   77.80%   -0.27%     
==========================================
  Files        1182     1166      -16     
  Lines      157743   156826     -917     
==========================================
- Hits       123154   122016    -1138     
- Misses      26943    27221     +278     
+ Partials     7646     7589      -57     
Flag Coverage Δ
unittests 77.80% <100.00%> (-0.27%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Run nested The PR also runs tests inluded in nested suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants