Skip to content

ENT-14090: Stopped using system_owned in copy_from acceptance tests (3.24.x)#6132

Draft
larsewi wants to merge 1 commit into
cfengine:3.24.xfrom
larsewi:copy-from-tests-3.24.x
Draft

ENT-14090: Stopped using system_owned in copy_from acceptance tests (3.24.x)#6132
larsewi wants to merge 1 commit into
cfengine:3.24.xfrom
larsewi:copy-from-tests-3.24.x

Conversation

@larsewi
Copy link
Copy Markdown
Contributor

@larsewi larsewi commented May 18, 2026

After plucked.sub.cf was regenerated from masterfiles (commit a8a4aa2 on 3.24.x), the system_owned body sets group to sys (gid 3) on Solaris specifically. The destination file created by copy_from with preserve => "true" is opened with the agent's effective gid (0), so VerifyCopiedFileAttributes detects the mismatch against the source's gid and emits an extra Group of ... was 0, set to 3 log line that isn't in the .expected output. This caused 28_inform_testing/01_files/copy_from01.cf and copy_from03.cf to start failing on Solaris 11.

Switching the setup perms body to m("0644") keeps the mode-only behavior the test cares about and avoids changing source ownership, so the inherited gid on the destination matches and no spurious log line appears.

Build Status

After plucked.sub.cf was regenerated from masterfiles, system_owned
sets group to "sys" (gid 3) on Solaris specifically. The destination
file created by copy_from is created with the agent's effective gid
(0), causing VerifyCopiedFileAttributes to emit an extra "Group of
... was 0, set to 3" log line that wasn't in the expected output.
Use m() instead, which only sets mode and avoids the cross-platform
group difference.

Ticket: ENT-14090
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant