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

tests: skip overlord tests on riscv64 due to timeouts. #10736

Merged

Conversation

stolowski
Copy link
Contributor

Temporary workaround to unblock riscv64 builds.

@stolowski stolowski added Simple 😃 A small PR which can be reviewed quickly Skip spread Indicate that spread job should not run labels Sep 6, 2021
@stolowski stolowski closed this Sep 6, 2021
@stolowski stolowski reopened this Sep 6, 2021
@@ -80,6 +81,11 @@ func fakePruneTicker() (w *ticker, restore func()) {
}

func (ovs *overlordSuite) SetUpTest(c *C) {
// temporary: skip due to timeouts on riscv64
if runtime.GOARCH == "riscv64" {
Copy link
Contributor

Choose a reason for hiding this comment

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

hm maybe we could set an env flag to skip those tests during the build? I sometimes saw those tests fail to OBS too (probably running in some low-resource VMs) and would happily reuse the flag if possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How about if runtime.GOARCH == "riscv64" || os.Getenv("SKIP_SLOW_TESTS") != "" { ?

Copy link
Contributor

Choose a reason for hiding this comment

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

SNAPD_SKIP_SLOW_TESTS maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@codecov-commenter
Copy link

codecov-commenter commented Sep 6, 2021

Codecov Report

Merging #10736 (bd0a7ec) into master (d726dc9) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10736      +/-   ##
==========================================
+ Coverage   78.37%   78.38%   +0.01%     
==========================================
  Files         887      887              
  Lines       99755    99751       -4     
==========================================
+ Hits        78182    78189       +7     
+ Misses      16670    16661       -9     
+ Partials     4903     4901       -2     
Flag Coverage Δ
unittests 78.38% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
snap/implicit.go 82.35% <0.00%> (-0.51%) ⬇️
overlord/ifacestate/handlers.go 64.77% <0.00%> (-0.02%) ⬇️
boot/systems.go 78.57% <0.00%> (ø)
wrappers/services.go 40.20% <0.00%> (+0.06%) ⬆️
cmd/snap/cmd_debug_state.go 70.64% <0.00%> (+0.45%) ⬆️
snap/info.go 86.90% <0.00%> (+0.46%) ⬆️
interfaces/apparmor/backend.go 80.16% <0.00%> (+0.52%) ⬆️
daemon/api_connections.go 93.58% <0.00%> (+0.53%) ⬆️
interfaces/dbus/backend.go 65.64% <0.00%> (+1.73%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d726dc9...bd0a7ec. Read the comment docs.

Copy link
Contributor

@MiguelPires MiguelPires left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@bboozzoo bboozzoo left a comment

Choose a reason for hiding this comment

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

LGTM

@stolowski stolowski merged commit b3c3e60 into canonical:master Sep 7, 2021
@stolowski stolowski deleted the skip-overlord-tests-on-riscv64 branch October 20, 2021 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Simple 😃 A small PR which can be reviewed quickly Skip spread Indicate that spread job should not run
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants