Skip to content

Test cleanup cherry-picks (3.27)#6137

Open
olehermanse wants to merge 22 commits into
cfengine:3.27.xfrom
olehermanse:3.27.x-cherry
Open

Test cleanup cherry-picks (3.27)#6137
olehermanse wants to merge 22 commits into
cfengine:3.27.xfrom
olehermanse:3.27.x-cherry

Conversation

@olehermanse
Copy link
Copy Markdown
Member

@olehermanse olehermanse commented May 19, 2026

TODO:

  • Understand why bootstrap policy run check is failing in masterfiles PR.
  • Decide on make pluck vs copying plucked.sub.cf from master.
  • Green in Jenkins.

Merge together:
#6137
cfengine/masterfiles#3157
https://github.com/cfengine/enterprise/pull/912

@olehermanse
Copy link
Copy Markdown
Member Author

This one will fail until I've made the PRs for the other repos.

@olehermanse
Copy link
Copy Markdown
Member Author

@cf-bottom jenkins, please

@olehermanse olehermanse marked this pull request as ready for review May 19, 2026 22:27
@cfengine cfengine deleted a comment from cf-bottom May 19, 2026
@olehermanse olehermanse force-pushed the 3.27.x-cherry branch 3 times, most recently from 4ec6977 to 2e6fe1d Compare May 19, 2026 23:07
@cfengine cfengine deleted a comment from cf-bottom May 19, 2026
@olehermanse olehermanse marked this pull request as draft May 19, 2026 23:21
@cfengine cfengine deleted a comment from cf-bottom May 19, 2026
…d JSON

These tests are not about trailing commas, so might as well make
them valid JSON.

Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit 884d40f)
We use .x.cf as a convention for invalid files, so might as
well standardize.

Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit 9ff7df8)
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit 210c807)
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit 4ce06f5)
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit 9e294cd)
This is a CFEngine policy file and should have a .cf file extension.
These definitions are necessary for cfengine lint to find when
it's looking for all the bodies and bundles defined in all .cf
policy files.

Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit ce3639b)
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit a5643af)
Created a follow-up:
https://northerntech.atlassian.net/browse/ENT-14034

Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit 71c998a)
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit 0bc51e1)
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit 60b6978)
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit d93f71f)
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit 0c3420a)
Some of these are overlapping, have misleading comments, and
are testing too much at the same time.

We want to make them easier to read and understand, and
put the parts specific to testing that you can put
invalid / future syntax inside macros in its own test(s).

Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit 96d35e7)
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit 8a25540)
cfengine lint generally considers empty files to be a problem,
because they could be the result of a failed transfer, failed
write, or similar. Thus, adding a comment here to avoid
having an empty .cf file.

Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit 3abc099)
Didn't change all of them - left the ones which seem like
the test is for testing ifvarclass specifically.

Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit 7bbf5af)
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit f5d8e6a)
The test using this file was removed in:
ef10f3b

13 years ago.

Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit 3af40f0)
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit 6390696)
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
(cherry picked from commit a23ea1e)
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
@cfengine cfengine deleted a comment from cf-bottom May 20, 2026
@olehermanse olehermanse marked this pull request as ready for review May 20, 2026 13:47
Ticket: none
Changelog: none
(cherry picked from commit a4689ef)
@cf-bottom
Copy link
Copy Markdown

@olehermanse olehermanse requested a review from nickanderson May 20, 2026 14:05
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.

5 participants