Skip to content

Frontend charm integration tests fix with a self hosted runner - #80

Merged
mz2 merged 56 commits into
mainfrom
integration-test-fix-with-hosted-runners-sorry-paul
Dec 11, 2023
Merged

Frontend charm integration tests fix with a self hosted runner#80
mz2 merged 56 commits into
mainfrom
integration-test-fix-with-hosted-runners-sorry-paul

Conversation

@mz2

@mz2 mz2 commented Dec 11, 2023

Copy link
Copy Markdown
Contributor

Integration tests for the frontend charm now actually work also on GitHub!

The workflow is stable, with a dozen passes with no intermittent failures over the last few days.

It does however take ~10mins to run and I figured we would therefore not start running it on every commit to every branch (6+ mins of the time is taken by the microk8s setup -- we can drop this in a big way with custom images used for the CI runs when that becomes available). It runs on:

  • all branches once a PR review has been posted for the branch for which there is a PR open
  • all branches with a PR which touch resources under ./frontend/charm (the integration tests can capture failures also in resources outside that directory, hence the rule above also).
  • on the main branch
  • on version tagged commits
  • manually via workflow dispatch

The workflow was refactored to reuse two now introduced reusable composite actions in https://github.com/canonical/certification-github-workflows (the first PR to that repo should be reviewed and merged first before this goes in).

NOTE! When squashing this into main, please edit the commit message heavily down in volume since this contains a few months worth of desperate debugging attempts of these integration tests that continued to work locally just fine but failed to be executed specifically on GitHub up until now. I have simplified the version history with some squashing but since there are several merge commits there I didn't want to do anything more drastic than that.

(Re-posted this to supersede #54 -- @plars has gone on much deserved holidays and I had addressed all his valid concerns and questions, with the PR unfortunately left in "changes requested" state)

mz2 and others added 30 commits June 7, 2023 11:49
…n blocked status (more scenarios needed to actually relate the frontend to the backend).
…state where relation is not yet connected.

Simplified the charm logic, no _stored state needed (fetching the hostname and port from the relation's application data bag).
Let's try with the microk8s version and libpyjuju < 3.1 that seems to work for rout53-acme-operator where the integration test pipeline is pulled from
mz2 added 24 commits October 26, 2023 19:37
…:canonical/test_observer into integration-test-fix-with-hosted-runners
@mz2
mz2 requested a review from omar-selo December 11, 2023 14:44
@mz2
mz2 marked this pull request as ready for review December 11, 2023 14:44

@omar-selo omar-selo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@mz2
mz2 merged commit ebf80b7 into main Dec 11, 2023
@mz2
mz2 deleted the integration-test-fix-with-hosted-runners-sorry-paul branch December 11, 2023 15:20
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.

3 participants