Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ src/ # Error Tracker application source
amqp_utils.py # RabbitMQ/AMQP utilities
config.py # Configuration handling
utils.py # Shared utilities
populate-test-data.sh # Script to put test data into a local Cassandra (for development)
retracer/ # Symbolic retracer (turns addresses into stack frames)
config/ # Per-release retracer configuration
retracer.py # Retracer entry point
Expand Down Expand Up @@ -101,7 +102,7 @@ The application relies on:

### Test Architecture

There are two layers of testing:
There are multiple layers of testing:

1. **Unit/functional tests** (`src/tests/`) — pytest-based tests that require Cassandra, RabbitMQ, and Swift running locally. These test individual components (submission, retracing, Cassandra operations, OOPS processing).

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ errors:
./run-errors.sh
```

If you need test data in Cassandra, you can run the `./populate-test-data.sh` in that same folder.

From there, you can manually upload a crash with the following, from any folder
containing a `.crash` file with its corresponding `.upload` file:
```
Expand Down
5 changes: 4 additions & 1 deletion charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ links:
source:
- https://github.com/ubuntu/error-tracker/

# platforms:
# ubuntu@24.04:amd64:
base: ubuntu@24.04
platforms:
ubuntu@24.04:amd64:
amd64:

parts:
error-tracker:
Expand Down
3 changes: 1 addition & 2 deletions spread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ backends:
CONTAINER_NAME="error-tracker-${SPREAD_SYSTEM/./-}-${RANDOM}"
DISK="${DISK:-30}"
CPU="${CPU:-4}"
MEM="${MEM:-5}"
MEM="${MEM:-4}"

lxc launch --vm -e \
"${SPREAD_SYSTEM/-/:}" \
Expand Down Expand Up @@ -44,7 +44,6 @@ suites:
prepare: |
apt-get update
apt-get install -y --no-install-recommends docker.io
apt-get install -y --no-install-recommends linux-modules-extra-$(uname -r) zram-tools
apt-get install -y --no-install-recommends \
apport-retrace \
git \
Expand Down
Loading
Loading