Skip to content

Commit 1199641

Browse files
authored
ETCM-606 annotate test reports with slowest tests (#915)
1 parent 63012ca commit 1199641

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

.buildkite/pipeline.nix

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
{ cfg, pkgs, ... }:
22

33
with cfg.steps.commands;
4-
54
let
65
commonAttrs = {
76
retry.automatic = true;
87
agents.queue = "project42";
98
};
109
in
11-
1210
{
1311
steps.commands = {
1412
nixExpr = commonAttrs // {
@@ -97,6 +95,19 @@ in
9795
];
9896
};
9997

98+
annotate-test-reports = commonAttrs // {
99+
dependsOn = [ test-unit ];
100+
label = "annotate test reports";
101+
command = "junit-annotate";
102+
allowDependencyFailure = true;
103+
plugins = [{
104+
"junit-annotate#1.9.0" = {
105+
artifacts = "target/test-reports/*.xml";
106+
report-slowest = 50;
107+
};
108+
}];
109+
};
110+
100111
test-evm = commonAttrs // {
101112
dependsOn = [ compile ];
102113
label = "EVM tests";

ci-like/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM nixos/nix
2+
3+
RUN apk --update add git less openssh && \
4+
rm -rf /var/lib/apt/lists/* && \
5+
rm /var/cache/apk/*
6+
7+
RUN nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
8+
RUN nix-channel --update
9+
10+
RUN nix-build -A pythonFull '<nixpkgs>'
11+

ci-like/nix.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
sandbox = false
2+
experimental-features = nix-command flakes ca-references
3+
substituters = https://hydra.iohk.io https://cache.nixos.org https://mantis-ops.cachix.org
4+
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= mantis-ops.cachix.org-1:SornDcX8/9rFrpTjU+mAAb26sF8mUpnxgXNjmKGcglQ=

0 commit comments

Comments
 (0)