Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jszczerbinski committed Nov 21, 2024
1 parent 08e50b3 commit 3825909
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 51 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,21 @@ jobs:
CLOUD_PROVIDER: ${{ matrix.cloud_provider }}
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
run: ci/test_linux.sh
- name: Upload build log
uses: actions/upload-artifact@v4
with:
name: build log
path: build.log
- name: Upload warning report
uses: actions/upload-artifact@v4
with:
name: report
path: report.txt
- name: Upload warnings
uses: actions/upload-artifact@v4
with:
name: warnings
path: warnings.json
build-test-win:
name: Build-Test-Win
runs-on: windows-2019
Expand Down
40 changes: 0 additions & 40 deletions build.log

This file was deleted.

7 changes: 1 addition & 6 deletions ci/scripts/generate_warning_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
223 | size_t in_sizeOfBuffer, <- snippet
"""
message_re = re.compile(r"""(?P<file_path>[^:]*):(?P<line>\d+):(?:(?P<col>\d+):)?\s+warning:(?P<message>.*)\[(?P<flag>.*)\]""")
snippet_re = re.compile(r"""\s+\d+\s+\| (?P<snippet>.*)""")

class ParserState(enum.Enum):
MESSAGE = "MESSAGE"
Expand Down Expand Up @@ -69,11 +68,7 @@ def parse_warnings(path: str) -> List[CompilerWarning]:
continue

if state == ParserState.SNIPPET:
s_match = snippet_re.match(line)
if not s_match:
print("Missing snippet following {}".format(warning.snippet), file=stderr)
else:
warning.snippet = s_match.group("snippet")
warning.snippet = line
warning.source += line

state = ParserState.MESSAGE
Expand Down
4 changes: 1 addition & 3 deletions ci/scripts/warning_report.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/bin/bash

python3 ci/scripts/generate_warning_report.py --build-log ./build.log --load-warnings ci/scripts/warnings_baseline.json --dump-warnings warnings.json --report report.txt
cat report.txt
cat warnings.json
python3 ci/scripts/generate_warning_report.py --build-log build.log --load-warnings ci/scripts/warnings_baseline.json --dump-warnings warnings.json --report report.txt
4 changes: 2 additions & 2 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function zip_file()

local zip_file_name=$(get_zip_file_name "$component_name" "$component_version" "$build_type")

if [[ -z "$GITHUB_ACTIONS" ]] && [[ -n "$GIT_BRANCH" ]]; then
if [[ -n "$GIT_BRANCH" ]]; then
local f=$UTILS_DIR/../artifacts/$zip_file_name
rm -f $f
pushd $DEPENDENCY_DIR/
Expand All @@ -85,7 +85,7 @@ function zip_files()

local zip_file_name=$(get_zip_file_name "$component_name" "$component_version" "$build_type")

if [[ -z "$GITHUB_ACTIONS" ]] && [[ -n "$GIT_BRANCH" ]]; then
if [[ -n "$GIT_BRANCH" ]]; then
local f=$UTILS_DIR/../artifacts/$zip_file_name
rm -f $f
pushd $DEPENDENCY_DIR/
Expand Down

0 comments on commit 3825909

Please sign in to comment.