Skip to content

Commit

Permalink
agent logs?
Browse files Browse the repository at this point in the history
  • Loading branch information
t4lz committed Jan 3, 2025
1 parent 864739f commit c95d1f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,13 @@ jobs:
- run: kind load image-archive /tmp/test.tar
- run: |
cargo test --target=x86_64-unknown-linux-gnu -p tests steal_http_ipv6_traffic -- --ignored --test-threads=6
- name: fetch agent logs
if: ${{ failure() }}
run: |
kubectl logs -l app==mirrord --tail -1
kubectl get all
kubectl describe pods
docker exec minikube find /var/log/pods -print -exec cat {} \;
lint_markdown:
runs-on: ubuntu-24.04
Expand Down
2 changes: 1 addition & 1 deletion tests/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ pub async fn run_exec(
// minikube load image test:latest
let mut base_env = HashMap::new();
base_env.insert("MIRRORD_AGENT_IMAGE", "test");
// base_env.insert("MIRRORD_AGENT_TTL", "180"); // Uncomment for getting logs after failed tests
base_env.insert("MIRRORD_AGENT_TTL", "20");
base_env.insert("MIRRORD_CHECK_VERSION", "false");
base_env.insert("MIRRORD_AGENT_RUST_LOG", "warn,mirrord=debug");
base_env.insert("MIRRORD_AGENT_COMMUNICATION_TIMEOUT", "180");
Expand Down

0 comments on commit c95d1f7

Please sign in to comment.