Skip to content

CFE-4605: Fixed getgroups test for AIX, solaris and suse 15#5950

Merged
larsewi merged 1 commit into
cfengine:masterfrom
victormlg:getgroups_bug
Dec 5, 2025
Merged

CFE-4605: Fixed getgroups test for AIX, solaris and suse 15#5950
larsewi merged 1 commit into
cfengine:masterfrom
victormlg:getgroups_bug

Conversation

@victormlg

Copy link
Copy Markdown
Contributor

No description provided.

@larsewi

larsewi commented Nov 18, 2025

Copy link
Copy Markdown
Contributor

Build Status

@larsewi

larsewi commented Nov 18, 2025

Copy link
Copy Markdown
Contributor

Solaris

Stack Trace

2025-11-18T14:42:19+0100     info: filestat bailing on link "/perl5/5.12/bin/perl" (original "/bin/perl") because it could not be read
2025-11-18T14:42:19+0100     info: filestat bailing on link "/perl5/5.12/bin/perl" (original "/bin/perl") because it could not be read
2025-11-18T14:42:20+0100     info: filestat bailing on link "/perl5/5.12/bin/perl" (original "/bin/perl") because it could not be read
2025-11-18T14:42:20+0100     info: filestat bailing on link "/perl5/5.12/bin/perl" (original "/bin/perl") because it could not be read
2025-11-18T14:42:21+0100     info: filestat bailing on link "/perl5/5.12/bin/perl" (original "/bin/perl") because it could not be read
2025-11-18T14:42:22+0100     info: Created directory "/export/home/jenkins/workspace/testing-pr/label/PACKAGES_sparc64_solaris_11/cfengine-3.27.0a.18f05d614/tests/acceptance/workdir/__01_vars_02_functions_getgroups_cf/tmp/TESTDIR.cfengine/.", mode 0700
R: /export/home/jenkins/workspace/testing-pr/label/PACKAGES_sparc64_solaris_11/cfengine-3.27.0a.18f05d614/tests/acceptance/./01_vars/02_functions/getgroups.cf FAIL

AIX

Stack Trace

2025-11-18T09:13:19CST     info: Created directory "/home/jenkins/workspace/testing-pr/label/PACKAGES_ppc64_aix_71/cfengine-3.27.0a.18f05d614/tests/acceptance/workdir/__01_vars_02_functions_getgroups_cf/tmp/TESTDIR.cfengine/.", mode 0700
R: /home/jenkins/workspace/testing-pr/label/PACKAGES_ppc64_aix_71/cfengine-3.27.0a.18f05d614/tests/acceptance/./01_vars/02_functions/getgroups.cf FAIL

@larsewi

larsewi commented Nov 25, 2025

Copy link
Copy Markdown
Contributor

Build Status

@larsewi

larsewi commented Nov 26, 2025

Copy link
Copy Markdown
Contributor

There was some conflicts. Can you squash the merge commit?

@craigcomstock craigcomstock left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This test doesn't read well for me due to the concat(nth(splitstring expressions with seemingly random integers.

You could improve it by adding a comment near each type of var you create explaining what it should contain and maybe an example.

Comment thread tests/acceptance/01_vars/02_functions/getgroups.cf Outdated
nth(splitstring("$(this)", ":", 2), 0), "@(group_entries)"
);
# slice out the 3 first entries: root, bin, daemon
# filter out root, bin, daemon

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Instead of filtering out... why don't you create the actual result dynamically by some shell scripting and compare that to the getgroups() output?

@victormlg victormlg changed the title CFE-4605: Fixed getgroups test for AIX and solaris CFE-4605: Fixed getgroups test for AIX, solaris and suse 15 Dec 4, 2025
Ticket: CFE-4605
Changelog: Made the test for getgroups() more robust and fixed it for AIX and solaris
Signed-off-by: Victor Moene <victor.moene@northern.tech>
@larsewi

larsewi commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

@cf-bottom Jenkins with exotics please :)

@cf-bottom

Copy link
Copy Markdown

@victormlg

Copy link
Copy Markdown
Contributor Author

Alright, I triggered a build:

Build Status

(with exotics)

Jenkins: https://ci.cfengine.com/job/pr-pipeline/13126/

Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-13126/

The error is not related

@larsewi larsewi merged commit 73cae13 into cfengine:master Dec 5, 2025
12 checks passed
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.

4 participants