Project

General

Profile

action #101073

Smoke test of basic rust/cargo functionality size:S

Added by firstyear 3 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Low
Assignee:
Target version:
Start date:
2021-10-18
Due date:
% Done:

0%

Estimated time:

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:

History

#1 Updated by okurz 3 months 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

#2 Updated by coolo 3 months ago

You can't test "that online packages can be downloaded" in package tests

#3 Updated by cdywan 3 months 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?

#4 Updated by firstyear 3 months 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.

#5 Updated by cdywan 2 months 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

#6 Updated by okurz 2 months ago

  • Priority changed from Normal to Low

#7 Updated by cdywan 2 months ago

  • Status changed from Workable to In Progress
  • Assignee set to cdywan

#9 Updated by cdywan 2 months 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

#10 Updated by cdywan about 2 months ago

  • Status changed from In Progress to Feedback

#11 Updated by okurz about 2 months ago

https://openqa.opensuse.org/tests/2065318# will show the production validation results for Tumbleweed, currently running.

#12 Updated by okurz about 2 months 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?

#13 Updated by cdywan about 2 months 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.

Also available in: Atom PDF