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

Fix for issue #53274, test on Amazon Linux 1 #53323

Merged
merged 6 commits into from
Jun 6, 2019

Conversation

dmurphy18
Copy link
Contributor

What does this PR do?

Disable test_pkg tests for bash-completion on Amazon Linux 1, since it does not have that package.

What issues does this PR fix or reference?

#53274

Previous Behavior

Test failures due to lack of bash-completion.

New Behavior

Skip tests involving for bash-completion if platform is Amazon Linux 1.
There is no package for bash-completion on Amazon Linux 1

Tests written?

Yes - test fixed

Commits signed with GPG?

No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@dmurphy18 dmurphy18 added the v2019.2.1 unsupported version label May 30, 2019
@dmurphy18 dmurphy18 added this to the Priority milestone May 30, 2019
@@ -488,13 +489,17 @@ def test_pkg_009_latest_with_epoch(self):
if not pkgmgr_avail(self.run_function, self.run_function('grains.items')):
self.skipTest('Package manager is not available')

if (grains.get('os') == 'Amazon' and grains.get('osmajorrelease') != 2):
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't seem future proof. Maybe Amazon Linux 1 will support it in the future.

What if we test against a different package, that's available everywhere, like vim or something?

Copy link
Contributor Author

@dmurphy18 dmurphy18 May 31, 2019

Choose a reason for hiding this comment

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

Amazon Linux 1 reaches EOL June 20, 2020. I think it is a done OS at this point.
Updated to utilize bash-doc instead of bash-completion

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe to make it more future proof for all OSs, add a check to ensure the package exists, if it does not use bash-doc? what do you think about that approach @rares-pop

@dmurphy18 dmurphy18 added the bugfix-bckport will be be back-ported to an older release branch by creating a PR against that branch label May 31, 2019
@@ -506,6 +511,9 @@ def test_pkg_010_latest_with_epoch_and_info_installed(self):
if not pkgmgr_avail(self.run_function, self.run_function('grains.items')):
self.skipTest('Package manager is not available')

if (grains.get('os') == 'Amazon' and grains.get('osmajorrelease') != 2):
Copy link
Contributor

Choose a reason for hiding this comment

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

would it be possible to change the pkg name to something that is available on amazon linux 1, instead of skipping the test so we ensure we are also testing this on amazon linux 1? I believe it just needs to be a package that includes an epoch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I shall take a look at something else that we can install but typically would not be installed by default

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using bash-doc instead of unavailable bash-completion

@dmurphy18 dmurphy18 added the fixed-pls-verify fix is linked, bug author to confirm fix label Jun 3, 2019
@dmurphy18
Copy link
Contributor Author

re-run full all

@dmurphy18
Copy link
Contributor Author

re-run full all

@dmurphy18
Copy link
Contributor Author

re-run full all

@Ch3LL Ch3LL merged commit 18991f9 into saltstack:2019.2.1 Jun 6, 2019
@Ch3LL Ch3LL added ZZZ[Done]-back-ported-bf RETIRED The pull request has been back-ported to an older branch. and removed bugfix-bckport will be be back-ported to an older release branch by creating a PR against that branch labels Jun 11, 2019
@dmurphy18 dmurphy18 deleted the fix_53274 branch August 4, 2020 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed-pls-verify fix is linked, bug author to confirm fix v2019.2.1 unsupported version ZZZ[Done]-back-ported-bf RETIRED The pull request has been back-ported to an older branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants