Project

General

Profile

Actions

action #101073

closed

Smoke test of basic rust/cargo functionality size:S

Added by firstyear over 2 years ago. Updated over 2 years 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:

Actions #1

Updated by okurz over 2 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

Actions #2

Updated by coolo over 2 years ago

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

Actions #3

Updated by livdywan over 2 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?

Actions #4

Updated by firstyear over 2 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.

Actions #5

Updated by livdywan over 2 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
Actions #6

Updated by okurz over 2 years ago

  • Priority changed from Normal to Low
Actions #7

Updated by livdywan over 2 years ago

  • Status changed from Workable to In Progress
  • Assignee set to livdywan
Actions #9

Updated by livdywan over 2 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

Actions #10

Updated by livdywan over 2 years ago

  • Status changed from In Progress to Feedback
Actions #11

Updated by okurz over 2 years ago

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

Actions #12

Updated by okurz over 2 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?

Actions #13

Updated by livdywan over 2 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.

Actions

Also available in: Atom PDF