-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #795 from nextcloud/release/0.9.3
Create Release 0.9.3
- Loading branch information
Showing
53 changed files
with
2,127 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Check for todo comments in the codebase | ||
author: Christian Wolf <github@christianwolf.email> | ||
description: < | ||
This is a github action to look out for any remaining todos in the code base. | ||
Any todo will be marked with a warning. | ||
|
||
inputs: | ||
path: | ||
description: The path to look for source files | ||
required: false | ||
default: '.' | ||
extension: | ||
description: The file extension to look for | ||
required: true | ||
default: php | ||
|
||
runs: | ||
using: 'composite' | ||
|
||
steps: | ||
- name: Add annotations | ||
shell: bash | ||
run: ./.github/actions/check-todo/check.sh "${{ inputs.path }}" "${{ inputs.extension }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# Looking for all files | ||
find "$1" -type f -name "*.$2" | while read line | ||
do | ||
file=$(echo "$line" | sed 's@^\./@@') | ||
|
||
grep -noE '(TODO|ToDo|@todo|XXX|FIXME|FixMe).*' "$line" | while read match | ||
do | ||
IFS=: read lineno msg <<< "$match" | ||
echo "::warning file=$file,line=$lineno::Found $msg" | ||
done | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#! /bin/sh | ||
|
||
# set -x | ||
|
||
deploy_path='.github/actions/deploy' | ||
|
||
major=$(cat "$deploy_path/major") | ||
minor=$(cat "$deploy_path/minor") | ||
patch=$(cat "$deploy_path/patch") | ||
|
||
version="$major.$minor.$patch" | ||
|
||
"$deploy_path/fill-in-data.sh" "$version" "$major" "$minor" "$patch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
#!/bin/env python | ||
|
||
import argparse | ||
import os.path | ||
import re | ||
|
||
parser = argparse.ArgumentParser() | ||
|
||
parser.add_argument('file', nargs=1, help='The log file to parse') | ||
args = parser.parse_args() | ||
|
||
logfile = args.file[0] | ||
if not os.path.isfile(logfile): | ||
print(f"The file {logfile} could not be found.") | ||
exit(1) | ||
|
||
detailsMatcher = re.compile("name='([^']*)' message='([^']*)'.*?details='\s*([^:]*):([0-9]+).*'") | ||
fileNameMatcher = re.compile("/nextcloud/custom_apps/cookbook/(.*)") | ||
def parseTestDetails(l): | ||
match = detailsMatcher.search(l) | ||
ret = {} | ||
ret['name'] = match.group(1) | ||
ret['message'] = match.group(2) | ||
ret['line'] = match.group(4) | ||
|
||
match2 = fileNameMatcher.match(match.group(3)) | ||
ret['file'] = match2.group(1) | ||
|
||
return ret | ||
|
||
def parseIgnoredLine(l): | ||
details = parseTestDetails(l) | ||
#print(l) | ||
#print(details) | ||
|
||
if details['message'] == '': | ||
message = f"The test {details['name']} is skipped." | ||
else: | ||
message = details['message'] | ||
|
||
print(f"::warning file={details['file']},line={details['line']}::{message}") | ||
|
||
def parseFailedLine(l): | ||
details = parseTestDetails(l) | ||
#print(l) | ||
#print(details) | ||
|
||
print(f"::error file={details['file']},line={details['line']}::{details['message']}") | ||
|
||
matchers = [ | ||
{ | ||
'regex': '^##teamcity\\[testIgnored', | ||
'fcn': parseIgnoredLine | ||
}, | ||
{ | ||
'regex': '^##teamcity\\[testFailed', | ||
'fcn': parseFailedLine | ||
} | ||
] | ||
|
||
for m in matchers: | ||
m['m'] = re.compile(m['regex']) | ||
|
||
|
||
def parseLine(l): | ||
for m in matchers: | ||
if m['m'].match(l): | ||
m['fcn'](l) | ||
return | ||
|
||
with open(logfile, 'r') as f: | ||
while True: | ||
l = f.readline() | ||
|
||
if not l: | ||
break | ||
|
||
parseLine(l) | ||
|
||
#print(l) | ||
|
||
#print(matchers) | ||
|
||
exit(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
FROM mariadb:10.1 | ||
FROM mariadb:10.5 | ||
|
||
LABEL maintainer="Christian Wolf <github@christianwolf.email>" | ||
|
||
|
Oops, something went wrong.