Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
4181-gh-Filter-out-even-more-data-from-test-res...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 4181-gh-Filter-out-even-more-data-from-test-results.patch of Package erlang
From 840a470beedcd92ad27919a3034d24f856111510 Mon Sep 17 00:00:00 2001 From: Lukas Larsson <lukas@erlang.org> Date: Tue, 6 Sep 2022 15:14:21 +0200 Subject: [PATCH] gh: Filter out even more data from test results The ssl test logs are massive (600 MB) so we have to trim individual test logs in order to end up below the 10GB github limit. --- .github/scripts/sync-github-prs.es | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/scripts/sync-github-prs.es b/.github/scripts/sync-github-prs.es index bee6db7900..6560ae5e02 100755 --- a/.github/scripts/sync-github-prs.es +++ b/.github/scripts/sync-github-prs.es @@ -137,7 +137,21 @@ purge_suite(SuiteFilePath) -> end, filelib:wildcard(filename:join(SuiteDir,"*.html"))); _FailedTestcases -> io:format("Purging logs from: ~ts~n",[SuiteDir]), - ok + lists:foreach( + fun(File) -> + {ok, B} = file:read_file(File), + case re:run(B,"^=== Config value:",[multiline]) of + {match,_} -> + case re:run(B,"^=== successfully completed test case",[multiline]) of + {match, _} -> + file:write_file(File,Placeholder); + nomatch -> + ok + end; + nomatch -> + ok + end + end, filelib:wildcard(filename:join(SuiteDir,"*.html"))) end. ghapi(CMD) -> -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor