Browse Source

CI: Fix symlinks to failed logs

Stop renaming files. Swift should be able to serve text/plain files
based on content, not extension.

Failed logs symlinks were broken because we stopped gzipping log
files and improperly rewrote the logic there.

Change-Id: Idddf51730821644948f51577807f5beaa18c6262
(cherry picked from commit 4a0182f15a)
(cherry picked from commit 067770667c)
tags/7.1.0^0
Radosław Piliszek Marcin Juszkiewicz 1 month ago
parent
commit
e1c0cb16e9
1 changed files with 0 additions and 13 deletions
  1. +0
    -13
      tests/playbooks/post.yml

+ 0
- 13
tests/playbooks/post.yml View File

@@ -55,19 +55,6 @@

# Parse build logs and extract pkg install info
tests/files/process_build_logs.py -l logs/build -b {{ base_distro }} > logs/packages-info.txt

# rename files to .txt; this is so that when displayed via
# logs.openstack.org clicking results in the browser shows the
# files, rather than trying to send it to another app or make you
# download it, etc.

# firstly, rename all .log files to .txt files
for f in $(find logs -name "*.log"); do
sudo mv $f ${f/.log/.txt}
done

# append .txt to all kolla config file
find logs/kolla_configs -type f -exec mv '{}' '{}'.txt \;
executable: /bin/bash
chdir: "{{ zuul.project.src_dir }}"



Loading…
Cancel
Save