Skip to content

Week 2 demo: Automatic network failure resilience testing - #2992

Merged
frankreyesgarcia merged 2 commits into
KTH:2026from
alforslu:2026
Sep 7, 2026
Merged

Week 2 demo: Automatic network failure resilience testing#2992
frankreyesgarcia merged 2 commits into
KTH:2026from
alforslu:2026

Conversation

@alforslu

@alforslu alforslu commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Assignment Proposal

Title

Automatic network failure resilience testing

Names and KTH ID

Deadline

  • Week 2

Category

  • Demo

Description

We will implement and demo network failure testing within a CI pipeline.

First we will create a basic app for blogging, which will be connected to an external database (PostgreSQL). The CI pipeline (automated tests using Github actions set to run tests on PUSH/PR) has two targets: One without resilience testing, and one with. The first target/job would pass PRs under normal conditions, since there is nothing inherently wrong with the code (and no latency etc., causing issues). Then, in the second target, we deliberately introduce latency and timeouts of variyng degree using Toxiproxy (https://github.com/shopify/toxiproxy). The point is to see that our integration tests catch lacking network error handling, and therefore denies the PR (marks it as having failed tests). After that we add some resilience to the application, i.e. timeout and retry handling and show that the tests then pass.

Relevance

When working with real world networking applications, problems will inevitabily occur with connection or external services. It is then crucial to test for these scenarios, and that the software can handle the issues that occur without breaking the rest of the program to ensure that it is resilient. This is relevant to DevOps since we test the resilience during CI, instead of discovering the issues after deploying to a real world scenario.

@github-actions github-actions Bot added the demo One of the task categories listed in README.md label Sep 7, 2026
@frankreyesgarcia frankreyesgarcia self-assigned this Sep 7, 2026
@frankreyesgarcia
frankreyesgarcia merged commit 51295a6 into KTH:2026 Sep 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

demo One of the task categories listed in README.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants