-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
treewide: refresh hashes after move to use ZSTD as default
With the recent move to using ZSTD as the default compression format for packaging git repo clones we must refresh all of the hashes for the packages feed as well. Signed-off-by: Robert Marko <[email protected]>
- Loading branch information
0 parents
commit 2c7522e
Showing
199 changed files
with
20,712 additions
and
0 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,16 @@ | ||
Please make sure that the issue subject starts with `<package-name>: ` | ||
|
||
Also make sure that the package is maintained in this repository and not in base which should be submitted at https://bugs.openwrt.org or in the LuCI repository which should be submitted at https://github.com/openwrt/luci/issues. | ||
|
||
Issues related to releases below 18.06 and forks are not supported or maintained and will be closed. | ||
|
||
# Issue template (remove lines from top till here) | ||
|
||
Maintainer: @\<github-user> (find it by checking history of the package Makefile) | ||
Environment: (put here arch, model, OpenWrt version) | ||
|
||
Description: | ||
|
||
``` | ||
Format code blocks by wrapping them with pairs of ``` | ||
``` |
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,5 @@ | ||
Maintainer: me / @\<github-user> (find it by checking history of the package Makefile) | ||
Compile tested: (put here arch, model, OpenWrt version) | ||
Run tested: (put here arch, model, OpenWrt version, tests done) | ||
|
||
Description: |
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,6 @@ | ||
ARG ARCH=x86-64 | ||
FROM openwrt/rootfs:$ARCH | ||
|
||
ADD entrypoint.sh /entrypoint.sh | ||
|
||
CMD ["/entrypoint.sh"] |
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,91 @@ | ||
name: Check autorelease deprecation | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened, synchronize, converted_to_draft, ready_for_review, edited] | ||
|
||
jobs: | ||
build: | ||
name: Check autorelease deprecation | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 0 | ||
|
||
- name: Determine branch name | ||
run: | | ||
BRANCH="${GITHUB_BASE_REF#refs/heads/}" | ||
echo "Building for $BRANCH" | ||
echo "BRANCH=$BRANCH" >> $GITHUB_ENV | ||
- name: Determine changed packages | ||
run: | | ||
RET=0 | ||
# only detect packages with changes | ||
PKG_ROOTS=$(find . -name Makefile | \ | ||
grep -v ".*/src/Makefile" | \ | ||
sed -e 's@./\(.*\)/Makefile@\1/@') | ||
CHANGES=$(git diff --diff-filter=d --name-only origin/$BRANCH...) | ||
for ROOT in $PKG_ROOTS; do | ||
for CHANGE in $CHANGES; do | ||
if [[ "$CHANGE" == "$ROOT"* ]]; then | ||
if grep -q '$(AUTORELEASE)' "$ROOT/Makefile"; then | ||
CONTAINS_AUTORELEASE+="$ROOT" | ||
fi | ||
break | ||
fi | ||
done | ||
done | ||
if [ -n "$CONTAINS_AUTORELEASE" ]; then | ||
RET=1 | ||
cat > "$GITHUB_WORKSPACE/pr_comment.md" << EOF | ||
Please do no longer set *PKG_RELEASE* to *AUTORELEASE* as the | ||
feature is deprecated. Please use an integer instead. Below is a | ||
list of affected packages including correct *PKG_RELEASE*: | ||
EOF | ||
fi | ||
for ROOT in $CONTAINS_AUTORELEASE; do | ||
echo -n " - ${ROOT}Makefile: PKG_RELEASE:=" >> "$GITHUB_WORKSPACE/pr_comment.md" | ||
last_bump="$(git log --pretty=format:'%h %s' "$ROOT" | | ||
grep --max-count=1 -e ': [uU]pdate to ' -e ': [bB]ump to ' | | ||
cut -f 1 -d ' ')" | ||
if [ -n "$last_bump" ]; then | ||
echo -n $(($(git rev-list --count "$last_bump..HEAD" "$ROOT") + 2)) >> "$GITHUB_WORKSPACE/pr_comment.md" | ||
else | ||
echo -n $(($(git rev-list --count HEAD "$ROOT") + 2)) >> "$GITHUB_WORKSPACE/pr_comment.md" | ||
fi | ||
echo >> "$GITHUB_WORKSPACE/pr_comment.md" | ||
done | ||
exit $RET | ||
- name: Find Comment | ||
uses: peter-evans/find-comment@v2 | ||
if: ${{ failure() }} | ||
id: fc | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
comment-author: 'github-actions[bot]' | ||
|
||
- name: Create or update comment | ||
uses: peter-evans/create-or-update-comment@v2 | ||
if: ${{ failure() }} | ||
with: | ||
comment-id: ${{ steps.fc.outputs.comment-id }} | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body-file: 'pr_comment.md' | ||
edit-mode: replace |
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,26 @@ | ||
#!/bin/sh | ||
|
||
color_out() { | ||
printf "\e[0;$1m$PKG_NAME: %s\e[0;0m\n" "$2" | ||
} | ||
|
||
success() { | ||
color_out 32 "$1" | ||
} | ||
|
||
info() { | ||
color_out 36 "$1" | ||
} | ||
|
||
err() { | ||
color_out 31 "$1" | ||
} | ||
|
||
warn() { | ||
color_out 33 "$1" | ||
} | ||
|
||
err_die() { | ||
err "$1" | ||
exit 1 | ||
} |
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,43 @@ | ||
#!/bin/sh | ||
|
||
# not enabling `errtrace` and `pipefail` since those are bash specific | ||
set -o errexit # failing commands causes script to fail | ||
set -o nounset # undefined variables causes script to fail | ||
|
||
mkdir -p /var/lock/ | ||
|
||
opkg update | ||
|
||
[ -n "${CI_HELPER:=''}" ] || CI_HELPER="/ci/.github/workflows/ci_helpers.sh" | ||
|
||
for PKG in /ci/*.ipk; do | ||
tar -xzOf "$PKG" ./control.tar.gz | tar xzf - ./control | ||
# package name including variant | ||
PKG_NAME=$(sed -ne 's#^Package: \(.*\)$#\1#p' ./control) | ||
# package version without release | ||
PKG_VERSION=$(sed -ne 's#^Version: \(.*\)-[0-9]*$#\1#p' ./control) | ||
# package source contianing test.sh script | ||
PKG_SOURCE=$(sed -ne 's#^Source: .*/\(.*\)$#\1#p' ./control) | ||
|
||
echo "Testing package $PKG_NAME in version $PKG_VERSION from $PKG_SOURCE" | ||
|
||
opkg install "$PKG" | ||
|
||
export PKG_NAME PKG_VERSION CI_HELPER | ||
|
||
TEST_SCRIPT=$(find /ci/ -name "$PKG_SOURCE" -type d)/test.sh | ||
|
||
if [ -f "$TEST_SCRIPT" ]; then | ||
echo "Use package specific test.sh" | ||
if sh "$TEST_SCRIPT" "$PKG_NAME" "$PKG_VERSION"; then | ||
echo "Test successful" | ||
else | ||
echo "Test failed" | ||
exit 1 | ||
fi | ||
else | ||
echo "No test.sh script available" | ||
fi | ||
|
||
opkg remove "$PKG_NAME" --force-removal-of-dependent-packages --force-remove | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Test Formalities | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: Test Formalities | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 0 | ||
|
||
- name: Determine branch name | ||
run: | | ||
BRANCH="${GITHUB_BASE_REF#refs/heads/}" | ||
echo "Building for $BRANCH" | ||
echo "BRANCH=$BRANCH" >> $GITHUB_ENV | ||
- name: Test formalities | ||
run: | | ||
source .github/workflows/ci_helpers.sh | ||
RET=0 | ||
for commit in $(git rev-list HEAD ^origin/$BRANCH); do | ||
info "=== Checking commit '$commit'" | ||
if git show --format='%P' -s $commit | grep -qF ' '; then | ||
err "Pull request should not include merge commits" | ||
RET=1 | ||
fi | ||
author="$(git show -s --format=%aN $commit)" | ||
if echo $author | grep -q '\S\+\s\+\S\+'; then | ||
success "Author name ($author) seems ok" | ||
else | ||
err "Author name ($author) need to be your real name 'firstname lastname'" | ||
RET=1 | ||
fi | ||
subject="$(git show -s --format=%s $commit)" | ||
if echo "$subject" | grep -q -e '^[0-9A-Za-z,+/_-]\+: ' -e '^Revert '; then | ||
success "Commit subject line seems ok ($subject)" | ||
else | ||
err "Commit subject line MUST start with '<package name>: ' ($subject)" | ||
RET=1 | ||
fi | ||
body="$(git show -s --format=%b $commit)" | ||
sob="$(git show -s --format='Signed-off-by: %aN <%aE>' $commit)" | ||
if echo "$body" | grep -qF "$sob"; then | ||
success "Signed-off-by match author" | ||
else | ||
err "Signed-off-by is missing or doesn't match author (should be '$sob')" | ||
RET=1 | ||
fi | ||
done | ||
exit $RET |
Oops, something went wrong.