Skip to content

Commit

Permalink
Merge branch 'coredns:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
m-yosefpor authored Nov 25, 2023
2 parents 3d4d25b + 30b9ae1 commit 0efd306
Show file tree
Hide file tree
Showing 264 changed files with 9,512 additions and 3,768 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ initWorkingDir: &initWorkingDir
GOROOT=$(go env GOROOT)
sudo rm -r $(go env GOROOT)
sudo mkdir $GOROOT
LATEST=$(curl -s https://go.dev/VERSION?m=text)
LATEST=$(curl -s https://go.dev/VERSION?m=text | grep -v time)
curl https://dl.google.com/go/${LATEST}.linux-amd64.tar.gz | sudo tar xz -C $GOROOT --strip-components=1
integrationDefaults: &integrationDefaults
Expand All @@ -36,7 +36,7 @@ buildCoreDNSImage: &buildCoreDNSImage
command: |
cd ~/go/src/${CIRCLE_PROJECT_USERNAME}/coredns
make coredns SYSTEM="GOOS=linux" && \
docker build -t coredns . && \
DOCKER_BUILDKIT=1 docker build -t coredns . && \
kind load docker-image coredns
jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ issue first and "claim" it and get feedback before you invest a lot of time.

**If someone already opened a pull request, but you think the pull request has stalled and you would
like to open another pull request for the same or similar feature, get some of the maintainers (see
[CODEOWNERS](CODEOWNERS)) involved to resolve the situation and move things forward.**
[CODEOWNERS](../CODEOWNERS)) involved to resolve the situation and move things forward.**

If possible make a pull request as small as possible, or submit multiple pull request to complete a
feature. Smaller means: easier to understand and review. This in turn means things can be merged
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cifuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fuzz-seconds: 600
dry-run: false
- name: Upload Crash
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
if: failure() && steps.build.outcome == 'success'
with:
name: artifacts
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@3e7e3b32d0fb8283594bb0a76cc60a00918b0969
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@3e7e3b32d0fb8283594bb0a76cc60a00918b0969
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@3e7e3b32d0fb8283594bb0a76cc60a00918b0969
uses: github/codeql-action/analyze@v2
4 changes: 2 additions & 2 deletions .github/workflows/depsreview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@94145f3150bfabdc97540cbd5f7e926306ea7744
uses: actions/dependency-review-action@fde92acd0840415674c16b39c7d703fc28bc511e
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
RELEASE: ${{ github.event.inputs.release || github.event.release.tag_name }}
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/checkout@v4
- name: Build Docker Images
run: make VERSION=${RELEASE:1} DOCKER=coredns -f Makefile.docker release
- name: Show Docker Images
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/go.coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,24 @@ jobs:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a
uses: actions/setup-go@v4
with:
go-version: '1.18.0'
go-version: '~1.21.0'
id: go

- name: Check out code
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b

- name: Build
run: go build -v ./...

- name: Test With Coverage
run: |
go install github.com/fatih/faillint@latest
for d in request core coremain plugin test; do \
( cd $d; go test -coverprofile=cover.out -covermode=atomic -race ./...; [ -f cover.out ] && cat cover.out >> ../coverage.txt ); \
done
- name: Upload coverage to Codecov
uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
36 changes: 0 additions & 36 deletions .github/workflows/go.fmt.yml

This file was deleted.

38 changes: 19 additions & 19 deletions .github/workflows/go.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a
uses: actions/setup-go@v4
with:
go-version: '1.18.0'
go-version: '~1.21.0'
id: go

- name: Check out code
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b

- name: Build
run: go build -v ./...

Expand All @@ -30,15 +30,15 @@ jobs:
name: Test Plugins
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a
uses: actions/setup-go@v4
with:
go-version: '1.18.0'
go-version: '~1.21.0'
id: go

- name: Check out code
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b

- name: Build
run: go build -v ./...

Expand All @@ -49,33 +49,33 @@ jobs:
name: Test e2e
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a
uses: actions/setup-go@v4
with:
go-version: '1.18.0'
go-version: '~1.21.0'
id: go

- name: Check out code
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b

- name: Build
run: go build -v ./...

- name: Test
run: |
go install github.com/fatih/faillint || true
go install github.com/fatih/faillint@latest
( cd test; go test -race ./... )
test-makefile-release:
name: Test Makefile.release
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt-get install make curl

- name: Check out code
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b

- name: Test Makefile.release
run: make GITHUB_ACCESS_TOKEN=x -n release github-push -f Makefile.release

Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/go.tidy.yml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.18'
- uses: actions/checkout@v3
go-version: '~1.21.0'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v3.7.0
with:
version: v1.46.2
version: v1.52.2
6 changes: 3 additions & 3 deletions .github/workflows/make.doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
contents: write
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a
uses: actions/setup-go@v4
with:
go-version: '1.18.0'
go-version: '~1.21.0'

- name: Update Docs
run: |
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Release

on:
workflow_dispatch:
inputs:
commit:
description: "Commit (e.g., 52f0348)"
default: "master"

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.commit }}
- name: Set up info
run: |
set -x -e
VERSION=$(make -f Makefile.release version)
COMMIT=$(git rev-parse --quiet --verify ${{ github.event.inputs.commit }})
if [[ "$(git tag -l v${VERSION})" == "v${VERSION}" ]]; then
echo "v${VERSION} already released"
exit 1
fi
echo "commit=${COMMIT}" >> $GITHUB_OUTPUT
echo "version=${VERSION}" >> $GITHUB_OUTPUT
id: info
- name: Build release binary
run: make -f Makefile.release release
- name: Build release binary sha256
run: (cd release; for asset in `ls -A *tgz`; do sha256sum $asset > $asset.sha256; done)
- name: Remove hidden section
run: sed '/+++/,//d' notes/coredns-${{ steps.info.outputs.version}}.md > release.md
- name: Log release info
run: |
set -x -e
git log -1
echo ${{ steps.info.outputs.commit }}
echo ${{ steps.info.outputs.version }}
cat release.md
sha256sum release/*.tgz
- name: Draft release
uses: softprops/action-gh-release@v1
with:
body_path: release.md
name: v${{ steps.info.outputs.version }}
tag_name: v${{ steps.info.outputs.version }}
target_commitish: ${{ steps.info.outputs.commit }}
files: |
release/*.tgz
release/*.tgz.sha256
draft: true
25 changes: 0 additions & 25 deletions .github/workflows/reviewdog.yml

This file was deleted.

Loading

0 comments on commit 0efd306

Please sign in to comment.