Skip to content

ENT-13532: Fixed findlocaluser test#5960

Merged
larsewi merged 1 commit into
cfengine:masterfrom
victormlg:findlocalusers_tests_fix
Jan 16, 2026
Merged

ENT-13532: Fixed findlocaluser test#5960
larsewi merged 1 commit into
cfengine:masterfrom
victormlg:findlocalusers_tests_fix

Conversation

@victormlg

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread tests/acceptance/01_vars/02_functions/findlocalusers.cf Outdated
@victormlg victormlg force-pushed the findlocalusers_tests_fix branch 5 times, most recently from f284ce7 to dba961e Compare December 4, 2025 11:50
@larsewi

larsewi commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

Build Status

@victormlg victormlg force-pushed the findlocalusers_tests_fix branch from dba961e to 37fee76 Compare December 5, 2025 10:41

@larsewi larsewi 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.

FAIL (UNEXPECTED FAILURE) ./01_vars/02_functions/findlocalusers.cf
 ---snip---
R: /home/jenkins/workspace/testing-pr/label/PACKAGES_ia64_hpux_11.23/cfengine-3.27.0a.cca9c3a91/tests/acceptance/./01_vars/02_functions/findlocalusers.cf FAIL
R: {
  "root": {
    "dir": "/root",
    "gecos": "",
    "gid": 3,
    "shell": "/sbin/sh",
    "uid": 0
  }
}

@larsewi

larsewi commented Dec 8, 2025

Copy link
Copy Markdown
Contributor

Only acceptance tests (with exotics):
Build Status

@victormlg

Copy link
Copy Markdown
Contributor Author
Error Details
Error Details

FAIL (UNEXPECTED FAILURE) ./01_vars/02_functions/findlocalusers.cf

Stack Trace


2025-12-18T13:16:38CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/usr/bin/perl") because it could not be read
2025-12-18T13:16:38CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/bin/perl") because it could not be read
2025-12-18T13:16:39CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/usr/bin/perl") because it could not be read
2025-12-18T13:16:39CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/bin/perl") because it could not be read
2025-12-18T13:16:39CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/usr/bin/perl") because it could not be read
2025-12-18T13:16:39CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/bin/perl") because it could not be read
2025-12-18T13:16:40CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/usr/bin/perl") because it could not be read
2025-12-18T13:16:40CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/bin/perl") because it could not be read
2025-12-18T13:16:41CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/usr/bin/perl") because it could not be read
2025-12-18T13:16:41CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/bin/perl") because it could not be read
2025-12-18T13:16:41CST     info: Created directory "/home/jenkins/workspace/testing-pr/label/PACKAGES_ia64_hpux_11.23/cfengine-3.27.0a.587889069/tests/acceptance/workdir/__01_vars_02_functions_findlocalusers_cf/tmp/TESTDIR.cfengine/.", mode 0700
R: /home/jenkins/workspace/testing-pr/label/PACKAGES_ia64_hpux_11.23/cfengine-3.27.0a.587889069/tests/acceptance/./01_vars/02_functions/findlocalusers.cf FAIL
R: {
  "root": {
    "dir": "/root",
    "gecos": "",
    "gid": 3,
    "shell": "/sbin/sh",
    "uid": 0
  }
}
        


2025-12-18T13:16:38CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/usr/bin/perl") because it could not be read
2025-12-18T13:16:38CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/bin/perl") because it could not be read
2025-12-18T13:16:39CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/usr/bin/perl") because it could not be read
2025-12-18T13:16:39CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/bin/perl") because it could not be read
2025-12-18T13:16:39CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/usr/bin/perl") because it could not be read
2025-12-18T13:16:39CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/bin/perl") because it could not be read
2025-12-18T13:16:40CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/usr/bin/perl") because it could not be read
2025-12-18T13:16:40CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/bin/perl") because it could not be read
2025-12-18T13:16:41CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/usr/bin/perl") because it could not be read
2025-12-18T13:16:41CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/bin/perl") because it could not be read
2025-12-18T13:16:41CST     info: Created directory "/home/jenkins/workspace/testing-pr/label/PACKAGES_ia64_hpux_11.23/cfengine-3.27.0a.587889069/tests/acceptance/workdir/__01_vars_02_functions_findlocalusers_cf/tmp/TESTDIR.cfengine/.", mode 0700
R: /home/jenkins/workspace/testing-pr/label/PACKAGES_ia64_hpux_11.23/cfengine-3.27.0a.587889069/tests/acceptance/./01_vars/02_functions/findlocalusers.cf FAIL
R: {
  "root": {
    "dir": "/root",
    "gecos": "",
    "gid": 3,
    "shell": "/sbin/sh",
    "uid": 0
  }
}
       

@victormlg victormlg force-pushed the findlocalusers_tests_fix branch 2 times, most recently from 6844001 to 6551247 Compare January 12, 2026 09:35
@larsewi

larsewi commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

Acceptance tests on HP-UX only:
Build Status

@victormlg

Copy link
Copy Markdown
Contributor Author
2026-01-12T07:00:32CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/usr/bin/perl") because it could not be read
2026-01-12T07:00:32CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/bin/perl") because it could not be read
2026-01-12T07:00:33CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/usr/bin/perl") because it could not be read
2026-01-12T07:00:33CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/bin/perl") because it could not be read
2026-01-12T07:00:33CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/usr/bin/perl") because it could not be read
2026-01-12T07:00:33CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/bin/perl") because it could not be read
2026-01-12T07:00:34CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/usr/bin/perl") because it could not be read
2026-01-12T07:00:34CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/bin/perl") because it could not be read
2026-01-12T07:00:35CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/usr/bin/perl") because it could not be read
2026-01-12T07:00:35CST     info: filestat bailing on link "/opt/perl/bin/perl" (original "/bin/perl") because it could not be read
2026-01-12T07:00:35CST     info: Created directory "/home/jenkins/workspace/testing-pr/label/PACKAGES_ia64_hpux_11.23/cfengine-3.27.0a.24ee7faaa/tests/acceptance/workdir/__01_vars_02_functions_findlocalusers_cf/tmp/TESTDIR.cfengine/.", mode 0700
R: /home/jenkins/workspace/testing-pr/label/PACKAGES_ia64_hpux_11.23/cfengine-3.27.0a.24ee7faaa/tests/acceptance/./01_vars/02_functions/findlocalusers.cf FAIL
R: {
  "root": {
    "dir": "/root",
    "gecos": "",
    "gid": 3,
    "shell": "/sbin/sh",
    "uid": 0
  }
}
R: {
  "dfrench": {
    "dir": "/home/dfrench",
    "gecos": "SO_Dana_French",
    "gid": 20,
    "shell": "/sbin/sh",
    "uid": 0
  },
  "root": {
    "dir": "/root",
    "gecos": "",
    "gid": 3,
    "shell": "/sbin/sh",
    "uid": 0
  }
}
R: {
}
R: $(test.ulist1)

Ticket: ENT-13532
Signed-off-by: Victor Moene <victor.moene@northern.tech>
@victormlg victormlg force-pushed the findlocalusers_tests_fix branch from 6551247 to 251986a Compare January 12, 2026 15:24
@victormlg

Copy link
Copy Markdown
Contributor Author

So apparently, there is a user with uid=0 that is not root on HP-UX. So I decided to remove the test finding user using their UID because I cannot be certain of any other uid than root.

@victormlg

Copy link
Copy Markdown
Contributor Author

@cf-bottom jenkins, please with exotics :)

@cf-bottom

Copy link
Copy Markdown

@victormlg

victormlg commented Jan 13, 2026

Copy link
Copy Markdown
Contributor Author

Trying again, with only acceptance tests on exotics:
Build Status

@victormlg

Copy link
Copy Markdown
Contributor Author

I think the failure is not related to the PR

@victormlg victormlg requested a review from larsewi January 15, 2026 16:38
@larsewi larsewi merged commit 1c5d206 into cfengine:master Jan 16, 2026
48 of 51 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