action #101073
closedSmoke test of basic rust/cargo functionality size:S
0%
Description
Motivation¶
It would be good to have a basic smoke test of rust/cargo functionality to ensure that it works correctly.
Acceptance criteria¶
- AC1: The test module is executed as usual openSUSE Tumbleweed test
Suggestions¶
- Add test to os-autoinst-distri-opensuse by creating a new test module, e.g. in tests/console/rust.pm
- The module could be done with something like:
zypper in cargo
cargo new testproject
cd testproject
echo 'uuid = "0.8"' >> Cargo.toml
cargo run
This checks:
- If rust/cargo can install properly for compilation.
- That new projects can be created
- That online packages can be downloaded
That the compiler works
Add the test module to https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/lib/main_common.pm#L1597 as well as a schedule file, e.g. in schedule
https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/schedule/functional/extra_tests_textmode.yamlCreate pull request and conduct verification runs
Ensure the test works as expected in https://openqa.opensuse.org/tests/overview?distri=opensuse&groupid=1&version=Tumbleweed
Updated by okurz about 3 years ago
- Project changed from openQA Project to QA
- Target version set to future
That's a good idea but IMHO is best suitable for a in-package test in https://build.opensuse.org/package/view_file/devel:languages:rust/rust/rust.spec?expand=1
Updated by coolo about 3 years ago
You can't test "that online packages can be downloaded" in package tests
Updated by livdywan about 3 years ago
coolo wrote:
You can't test "that online packages can be downloaded" in package tests
I assume OBS won't allow it.
That new projects can be created
What is "new projects"? Is this creating crates via CLI?
@firstyear Did you consider mocking the server access? You were also working on rustup, so maybe you could clarify what's already covered in OBS and what openQA needs to provide?
Updated by firstyear about 3 years ago
New projects could just be a new binary like in the example. The issue we saw an issue with libgit2 that broke the ability to download online dependencies, that's why I was hoping this could be tested so we don't run into the problem again.
Updated by livdywan almost 3 years ago
- Subject changed from Smoke test of basic rust/cargo functionality to Smoke test of basic rust/cargo functionality size:S
- Description updated (diff)
- Status changed from New to Workable
- Target version changed from future to Ready
Updated by livdywan almost 3 years ago
- Status changed from Workable to In Progress
- Assignee set to livdywan
Updated by livdywan almost 3 years ago
Updated by livdywan almost 3 years ago
cdywan wrote:
https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/13756
https://openqa.opensuse.org/tests/2064752#step/rust/9
Test seems to work, merged... let's see how this looks as part of the proper schedule
Updated by livdywan almost 3 years ago
- Status changed from In Progress to Feedback
Updated by okurz almost 3 years ago
https://openqa.opensuse.org/tests/2065318# will show the production validation results for Tumbleweed, currently running.
Updated by okurz almost 3 years ago
https://openqa.opensuse.org/tests/2065318# will show the production validation results for Tumbleweed, currently running.
all good: https://openqa.opensuse.org/tests/2065318#step/rust/11
Plan to do more or resolve?
Updated by livdywan almost 3 years ago
- Status changed from Feedback to Resolved
okurz wrote:
all good: https://openqa.opensuse.org/tests/2065318#step/rust/11
Plan to do more or resolve?
Nice. I'd consider this done. I also shared a job URL with @firstyear in chat.