Skip to content

CI: Use noble image for QA tests#641

Merged
3v1n0 merged 11 commits intocanonical:mainfrom
3v1n0:ci-noble
Dec 3, 2024
Merged

CI: Use noble image for QA tests#641
3v1n0 merged 11 commits intocanonical:mainfrom
3v1n0:ci-noble

Conversation

@3v1n0
Copy link
Contributor

@3v1n0 3v1n0 commented Nov 18, 2024

That's the ubuntu version we're targetting so far, and so we should care
about having it working as expected when doing integration tests in
particular.

Regenerate the SSH golden files to match post-noble SSH server expectations.

UDENG-5316

@3v1n0 3v1n0 requested a review from a team as a code owner November 18, 2024 15:27
@codecov-commenter
Copy link

codecov-commenter commented Nov 18, 2024

Codecov Report

Attention: Patch coverage is 88.05970% with 8 lines in your changes missing coverage. Please review.

Project coverage is 83.26%. Comparing base (e9cc1e9) to head (8b6aad3).
Report is 16 commits behind head on main.

Files with missing lines Patch % Lines
pam/internal/pam_test/runner-utils.go 84.31% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #641      +/-   ##
==========================================
- Coverage   83.28%   83.26%   -0.03%     
==========================================
  Files          80       82       +2     
  Lines        8617     8653      +36     
  Branches       75       74       -1     
==========================================
+ Hits         7177     7205      +28     
- Misses       1112     1120       +8     
  Partials      328      328              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@3v1n0 3v1n0 force-pushed the ci-noble branch 2 times, most recently from c579afa to 671525e Compare November 18, 2024 17:37
@3v1n0 3v1n0 force-pushed the ci-noble branch 7 times, most recently from 53185eb to 572504e Compare November 25, 2024 11:54
Copy link
Member

@denisonbarbosa denisonbarbosa left a comment

Choose a reason for hiding this comment

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

LGTM!

@adombeck
Copy link
Contributor

I'm done with the review, everything looks good beside the small thing I remarked in #641 (comment)

3v1n0 added 2 commits December 2, 2024 13:25
Some tests golden files were not including the whole results, let's fix
them by increasing the terminal heights.
In this way we can check for them being in golden files in a reliable
way
@3v1n0 3v1n0 force-pushed the ci-noble branch 2 times, most recently from f2fa8fa to 8b6aad3 Compare December 2, 2024 15:57
@3v1n0 3v1n0 requested a review from adombeck December 2, 2024 15:58
Add an helper function to check that the golden files contains the final
pam runner results strings.

In this way we can ensure that the golden files sizes are big enough to
hold all the terminal contents.
3v1n0 added 8 commits December 2, 2024 22:50
Keep the values in a more readable way so that's clearer what's the test
outcome
We were missing an Enter, so the check was never completed, take the
occasion to also add a further check on password mismatch.
That's the ubuntu version we're targetting so far, and so we should care
about having it working as expected when doing integration tests in
particular.
When running as root or in a schroot we should not care about chrome
sandbox used by VHS, so let's ignore it.
These are not needed anymore as the libPAM leaks are fixed in noble
We don't need a docker image anymore now that we're depending on 24.04
@3v1n0 3v1n0 merged commit 08f72a9 into canonical:main Dec 3, 2024
3v1n0 added a commit that referenced this pull request Dec 19, 2024
We were relying on sleeping when running integration tests tapes, but
this is quite unreliable because:
 - Depends on the speed of the machine running the tests
- Using generous sleeping times implies slower tests (this saves around
10m on CI tests...)

So, use `Wait` commands from VHS
charmbracelet/vhs#257 to only send input once
the UI has the expected contents.

Added some `Wait+$Extensions` to make regular expressions easier to
maintain, and reducing complexity of the tape files.

Fix some potential races that I've found while testing this.

Based on #641 

UDENG-4964
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.

4 participants