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

add tier-0 test case #486

Merged
merged 3 commits into from
Jul 24, 2024
Merged

add tier-0 test case #486

merged 3 commits into from
Jul 24, 2024

Conversation

pengshanyu
Copy link
Collaborator

We have several test cases for FFI, but we are missing some basic/simple sanity tests for qm, if it is installed properly and/or if environment started successfully.
This is a draft version. Since the naming of the test files and test methods are simple, I hope to use this version as a starting point for improving the sanity test.
We would like to name this test plan tier-0, but need to rename the current tier-0 first, so I temporarily named it tier-2

resolve #342

Copy link
Collaborator

@Yarboa Yarboa left a comment

Choose a reason for hiding this comment

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

Please add the tests to .packit.yaml
to be visible on github tests

plans/e2e/tier-2.fmf Outdated Show resolved Hide resolved
plans/e2e/tier-2.fmf Outdated Show resolved Hide resolved
tests/qm-sanity-test/test.sh Outdated Show resolved Hide resolved
tests/qm-sanity-test/test.sh Outdated Show resolved Hide resolved
tests/qm-sanity-test/test.sh Outdated Show resolved Hide resolved
tests/qm-sanity-test/test.sh Outdated Show resolved Hide resolved
@pengshanyu
Copy link
Collaborator Author

pengshanyu commented Jul 11, 2024

Please add the tests to .packit.yaml to be visible on github tests

Should I do it now in this PR or should I wait until this PR is merged before doing it?

@Yarboa
Copy link
Collaborator

Yarboa commented Jul 11, 2024

Please add the tests to .packit.yaml to be visible on github tests

Should I do it now in this PR or should I wait until this PR is merged before doing it?

MHO, if this new packit test introduced, why not let it run, this way we confirm that test merged are working

Now, i see you calked the tests tier-2
I think that current tier-0 tests should be renamed to a different name, like
multi-bluchi-agents, that is the real purpose of it, maybe we will remove it from tests later on.

tests/qm-sanity-test/test.sh Outdated Show resolved Hide resolved
tests/qm-sanity-test/test.sh Outdated Show resolved Hide resolved
tests/qm-sanity-test/test.sh Outdated Show resolved Hide resolved
@pengshanyu
Copy link
Collaborator Author

MHO, if this new packit test introduced, why not let it run, this way we confirm that test merged are working

Now, i see you calked the tests tier-2 I think that current tier-0 tests should be renamed to a different name, like multi-bluchi-agents, that is the real purpose of it, maybe we will remove it from tests later on.

Hi @Yarboa, I renamed current tier-0 tests to multi-bluechi-agents, but there are also tier-0 tests in qm-connectivity and qm-unit-files, how should they be renamed or do you want them to be tier-0 along with the sanity tests?

@Yarboa
Copy link
Collaborator

Yarboa commented Jul 16, 2024

MHO, if this new packit test introduced, why not let it run, this way we confirm that test merged are working
Now, i see you calked the tests tier-2 I think that current tier-0 tests should be renamed to a different name, like multi-bluchi-agents, that is the real purpose of it, maybe we will remove it from tests later on.

Hi @Yarboa, I renamed current tier-0 tests to multi-bluechi-agents, but there are also tier-0 tests in qm-connectivity and qm-unit-files, how should they be renamed or do you want them to be tier-0 along with the sanity tests?

qm-connectivity exist in new tier-0 but it could run in the test, since it checks for multi connectivity

related to qm-unit-files, i think it is already running in ffi

Please update the test of tier-0 similar to ffi tests
Please use this one
https://github.com/containers/qm/blob/main/.packit.yaml#L75

Please as you mentioned rename tier-0 tests as mentioned
and please enable old tier-0 for manual trigger only as per this
https://packit.dev/posts/manual-triggering#manual-only-triggering-of-jobs

@pengshanyu
Copy link
Collaborator Author

pengshanyu commented Jul 16, 2024

@Yarboa thank you for the reply.
qm-connectivity run with run-test-e2e
the new tier-0 test run with set-ffi-env-e2e
they are different test plan, I'm not sure how to run them both as tier-0 at one tmt run

.packit.yaml Outdated Show resolved Hide resolved
tests/qm-sanity-test/main.fmf Outdated Show resolved Hide resolved
tests/qm-sanity-test/test.sh Outdated Show resolved Hide resolved
Copy link
Collaborator

@Yarboa Yarboa left a comment

Choose a reason for hiding this comment

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

Very nice work @pengshanyu
Please see the comments above,
I would not choose to number the tests, but it is up to you

tests/qm-sanity-test/README.md Outdated Show resolved Hide resolved
.packit.yaml Show resolved Hide resolved
plans/e2e/multi-bluechi-agents.fmf Outdated Show resolved Hide resolved
plans/e2e/tier-0.fmf Show resolved Hide resolved
@Yarboa
Copy link
Collaborator

Yarboa commented Jul 19, 2024

/packit test --identifier qm-tier-0

@Yarboa
Copy link
Collaborator

Yarboa commented Jul 21, 2024

LGTM,
@pengshanyu well done
Please squash all comments, to have clean commits history before merge

@pengshanyu
Copy link
Collaborator Author

@Yarboa, thank you so much for the review. I added the Polarion-id.

Signed-off-by: pengshanyu <[email protected]>

delete blank Lines

Signed-off-by: pengshanyu <[email protected]>

trim trailing whitespace

Signed-off-by: pengshanyu <[email protected]>

update function name and implementation

Signed-off-by: pengshanyu <[email protected]>

added:check /var on ostree

Signed-off-by: pengshanyu <[email protected]>

rename old tier-0 to multi-bluechi-agents;rename sanity test to tier-0

Signed-off-by: pengshanyu <[email protected]>

trailing-whitespace

Signed-off-by: pengshanyu <[email protected]>

remove old tier 0

Signed-off-by: pengshanyu <[email protected]>

split sanity test to 6 tests

Signed-off-by: pengshanyu <[email protected]>

trailing-whitespace

Signed-off-by: pengshanyu <[email protected]>

not number the tests;add main.fmf;manual_trigger multi-bluechi-agents

Signed-off-by: pengshanyu <[email protected]>

correct typo

Signed-off-by: pengshanyu <[email protected]>

add polarion id

Signed-off-by: pengshanyu <[email protected]>
@Yarboa
Copy link
Collaborator

Yarboa commented Jul 23, 2024

/packit test --identifier qm-tier-0

@pengshanyu
Copy link
Collaborator Author

pengshanyu commented Jul 23, 2024

Hi @Yarboa , after this PR merged, we should also exclude this sanity test cases in the p-l-p test plan, right?

@Yarboa
Copy link
Collaborator

Yarboa commented Jul 23, 2024

/packit test --identifier e2e-multi-bluechi-agents

@Yarboa
Copy link
Collaborator

Yarboa commented Jul 23, 2024

/packit test --identifier e2e-multi-bluechi-agents

seems that tests is failing
need to check maybe we have an issue with default values
https://artifacts.dev.testing-farm.io/ea25bbf3-3563-4e9f-a7f4-5058fb393c4e/work-multi-bluechi-agentsg24c48ar/log.txt

plans/main.fmf Outdated Show resolved Hide resolved
Signed-off-by: pengshanyu <[email protected]>
@pengshanyu
Copy link
Collaborator Author

/packit test --identifier e2e-multi-bluechi-agents

Signed-off-by: pengshanyu <[email protected]>
@pengshanyu
Copy link
Collaborator Author

pengshanyu commented Jul 24, 2024

/packit test --identifier e2e-multi-bluechi-agents

Copy link
Collaborator

@Yarboa Yarboa left a comment

Choose a reason for hiding this comment

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

LGTM

@Yarboa Yarboa merged commit 0322896 into containers:main Jul 24, 2024
8 checks passed
@pengshanyu pengshanyu deleted the add-tier0-test branch July 25, 2024 05:06
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.

Create qm sanity tests
3 participants