Skip to content

Fix version comparison for acceptance tests#2619

Merged
mandre merged 2 commits intogophercloud:masterfrom
shiftstack:fix_version_comparison_acceptance_tests
May 22, 2023
Merged

Fix version comparison for acceptance tests#2619
mandre merged 2 commits intogophercloud:masterfrom
shiftstack:fix_version_comparison_acceptance_tests

Conversation

@mandre
Copy link
Copy Markdown
Contributor

@mandre mandre commented May 17, 2023

Some acceptance tests rely on a version comparison to conditionally skip tests. It turns out we were not consistently setting the relevant OS_BRANCH environment variable in all the jobs, meaning the version comparison would fail and skip the test.

This PR does two things:

  • consistently set the OS_BRANCH variable for all our acceptance jobs
  • fail the test when the required OS_BRANCH variable is not set

@mandre mandre marked this pull request as draft May 17, 2023 09:17
@mandre mandre force-pushed the fix_version_comparison_acceptance_tests branch from 8cedeaa to 7404b35 Compare May 17, 2023 10:22
@mandre mandre marked this pull request as ready for review May 17, 2023 10:23
@pierreprinetti
Copy link
Copy Markdown
Member

pierreprinetti commented May 17, 2023

Still not OK...

EDIT: depends on #2620

@mandre
Copy link
Copy Markdown
Contributor Author

mandre commented May 17, 2023

Still not OK... :(

/invoke.go:381:62: undefined: os.ErrProcessDone
note: module requires Go 1.18

This one, I'm fixing in #2620.

@mandre mandre force-pushed the fix_version_comparison_acceptance_tests branch from 7404b35 to d9cdd22 Compare May 17, 2023 14:25
A couple of functions rely on this environment variable being set.
@mandre mandre force-pushed the fix_version_comparison_acceptance_tests branch from d9cdd22 to 814ba35 Compare May 17, 2023 14:25
We want the tests to fail when the required `OS_BRANCH` environment
variable is not set.
@mandre mandre force-pushed the fix_version_comparison_acceptance_tests branch from 814ba35 to 72f853b Compare May 17, 2023 16:41
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage: 79.139%. Remained the same when pulling 72f853b on shiftstack:fix_version_comparison_acceptance_tests into 33412be on gophercloud:master.

@mandre mandre merged commit 88c3d40 into gophercloud:master May 22, 2023
@mandre mandre deleted the fix_version_comparison_acceptance_tests branch May 22, 2023 09:30
@mandre
Copy link
Copy Markdown
Contributor Author

mandre commented May 22, 2023

@pierreprinetti I'm assuming you meant to merge this PR. If not, let me know and I'll revert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants