Commit Graph

50 Commits

Author SHA1 Message Date
Miek Gieben
6496b19ea4 docker: test makefile and Dockerfile change (#4866)
The fix in 4b9bc138d9 breaks docker with

~~~
Step 2/9 : RUN sed -i.bak s@stable/update@stable-security/update@g /etc/apt/sources.list
 ---> Running in 29a0dbae5746
no status provided on response: unknown
~~~

So reverted here. This adds github workflows to test Makefile.docker
syntax as well. And small updates to the docker-coredns over in the
release repo.

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-09-16 15:51:10 -04:00
dependabot[bot]
9a3e4f6685 build(deps): bump codecov/codecov-action from 2.0.3 to 2.1.0 (#4860)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2.0.3 to 2.1.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v2.0.3...v2.1.0)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-13 07:15:08 -07:00
Miek Gieben
df92e8a8ca Spun out docker (#4859)
* Spun out docker

Remove docker from Makefile.release so we can actually release.
Unify the mips stuff, now that docker is gone.
Update the docs to reflect this.

See #4858

Signed-off-by: Miek Gieben <miek@miek.nl>

* Update test as well

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-09-13 14:47:46 +02:00
Yong Tang
8016f62771 Update golang version to 1.17 (#4852)
* Update golang version to 1.17

This PR updates golang version to 1.17 when applicable.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Remove `^` to avoid cache

This commit removes `^` to avoid cache in build system

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Change to 1.17.0

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2021-09-08 05:23:14 -07:00
dependabot[bot]
2aba89581f build(deps): bump codecov/codecov-action from 2.0.2 to 2.0.3 (#4836)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v2.0.2...v2.0.3)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-30 06:35:46 -07:00
Chris O'Haver
5aae49cee5 fix workflow indent (#4796)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-08-13 10:39:46 -04:00
Chris O'Haver
486dd900b4 use latest go 1.x available (#4794)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-08-10 16:37:58 +08:00
Chris O'Haver
5e7292b6cc Bump actions use go 1.16 (#4792)
* use go 1.16
* use ^ to allow latest minor/patch version available

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-08-09 21:50:00 +02:00
dependabot[bot]
ed33f010f3 build(deps): bump codecov/codecov-action from 1 to 2.0.2 (#4768)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 1 to 2.0.2.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v1...v2.0.2)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-26 06:20:32 -07:00
Yong Tang
5a8c067258 Enable dependabot scan on github actions (#4704)
Since we are using GitHub Actions in CoreDNS repo and we are already
using Dependabot for security/version scans on golang code,
it makes sense to enable security/version scans on GitHub Actions as well.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2021-06-21 08:46:56 +02:00
Yong Tang
c3cb6f00ee Fix timestamp issue for doc generating (#4683)
This PR will fix the issue of doc is not automated rendered
through GitHub Actions anymore.

It looks the issue is cause by the fact that in `fixup_file_mtime.sh`
is only fixing files on source (.md) side, not on target (man/*.[1|5|7])
side. As a result Makefile will skip the rendering of doc as
it assume everything will be update to date.

This should fix the issue we were facing.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2021-06-08 10:17:17 -07:00
Yong Tang
c996a26364 Add verbose log in GitHub Actions CI for make -f Makefile.doc (#4681)
Our GitHub Actions CI is having some issues with `make -f Makefile.doc`
as the related changes that should have triggered the build didn't
work for the past 3 months (since march).

This PR adds verbose to GitHub Actions CI to see if we can get more information.

Note this PR just add `set -x` to show detailed step. Will not impact anything else.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2021-06-08 09:26:38 -07:00
milgradesec
76eeae01ec Enable DependaBot (#4571)
* Create dependabot.yml

Signed-off-by: milgradesec <38557680+milgradesec@users.noreply.github.com>

* Update dependabot.yml

Signed-off-by: milgradesec <38557680+milgradesec@users.noreply.github.com>
2021-04-21 09:24:16 -07:00
Yong Tang
cedf6ffddc Disable CodeCov on commit push (#4572)
As commit push holds write access of GITHUB_TOKEN, we may
want to limit the scope of third-party test run.

This PR disable CodeCov on commit push. Pull request is still
ok.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2021-04-16 07:38:42 -07:00
Miek Gieben
1b2f0bef6f workflow: move committing workflows to schedule (#4529)
This moves all workflows that commit to a schedule, so that it _doesn't_
push into peoples PRs as that enlarges them and is just non-obvious.

They run throughout the week.

Also change the "user" we use for this, so that DCO believes it a real
email address (DCO is pretty stupid here). Update the authors target to
filter out this bot as well.

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-03-18 09:53:46 +01:00
Miek Gieben
5457cdcd4b workflow: sign commits (#4526)
This doesn't do much, but at least it doesn't litter PRs with non-signed
commits. This should keep the DCO clean(er)

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-03-17 14:16:17 +01:00
Miek Gieben
a2b34a233d workflow: guard against faillint failing (#4524)
So there is (and will always) be a disconnect between latest Go in the
workflow and the actual latest Go used by other utils. Faillint move to
go 1.16 features and for some reason this now borkes.

Add ||true to allow failling to not compile, this will skip that
particular test (so be it)

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-03-16 11:11:12 +01:00
Miek Gieben
c27605797b Use latest Go version (#4505)
Update go.mod to 1.16 and make the workflows default to the latest
available.

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-03-09 09:16:05 -08:00
Miek Gieben
1df7daf995 Point to github discussion in issue template (#4491)
A generic question might be more suited for a discussion, add pointer to
the issue template.

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-02-25 09:46:47 -08:00
Miek Gieben
9d3a84377c Makefile.release: do a complete dry-run (#4488)
Just dry-run all important targets.

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-02-24 10:03:16 -08:00
Miek Gieben
908622a664 Fix go-test yaml (#4481)
unsure why this only pops up, but the yaml was not correct for this
workflow. Randomly added whitespace until it parsed as proper yaml

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-02-23 14:12:00 +01:00
Miek Gieben
1db575a2ce A noop target to Makefile.release and run it in CI (#4462) 2021-02-13 05:03:22 -08:00
TimYin
2ab304078b modify the error url of DWF (#4425)
Signed-off-by: timyinshi <shiguangyin@inspur.com>
2021-01-26 17:21:56 +01:00
Yong Tang
619a0aedc0 Switch from actions/setup-go@v2-beta to actions/setup-go@v2 to fix the GitHub Actions set-env failure (#4302)
This PR switches from actions/setup-go@v2-beta to actions/setup-go@v2 to fix the
GitHub Actions `set-env` failure. Without this PR the following error shown up
(see https://github.com/coredns/coredns/runs/1423802307):
```
Error: Unable to process command '::set-env name=GOROOT::/opt/hostedtoolcache/go/1.15.5/x64' successfully.
7
Error: The `set-env` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
```

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2020-11-19 15:40:41 -05:00
Yong Tang
2845eaa916 Fix missing * in Go Fmt GitHub Actions (#4277)
Looks like one `*` is missing in Go Fmt GitHub Actions
and that causes the Actions not being triggered.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2020-11-11 07:43:46 +01:00
coredns-auto-trailing-whitespaces[bot]
dd078a982c auto remove trailing whitespaces 2020-11-07 18:57:52 +00:00
Yong Tang
37e3a81f25 Remove redundant '' as Linux does not need it.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2020-11-07 10:57:02 -08:00
Yong Tang
263423edad Setup GitHub Actions for auto remove trailing whitespaces (#4269)
* Setup GitHub Actions for auto remove trailing whitespaces

This PR setup GitHub Actions for auto remove trailing whitespaces,
if any non-go files are touched (.git directory are ignored)

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Remove TestTrailingWhitespace in presubmit tests

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* paths and paths-ignore are mutually exlcusive so only keep paths-ignore

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Remove redundent bufio import

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2020-11-07 10:53:20 -08:00
Yong Tang
67f2048bb0 Add GitHub Actions to gofmt -s -w all *.go files (#4268)
* Add GitHub Actions to  `gofmt -s -w` all `*.go` files

This PR adds GitHub Actions to  `gofmt -s -w` all `*.go` files,
if any `*.go` files are touched on each commit.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Change go-mod-fmt to go-fmt

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2020-11-06 17:44:11 +01:00
Miek Gieben
cd5ee7d1f0 Remove travis and move to github workflow (#4267)
Add github testing workflow, simplify the Makefile because that was
complex because of Travis. Remove the fuzzing, needs to be re-added when
that works properly with go modules (it has been disabled for quite some
time). Multiple builds and files have been added so these tests can all
run in parallel. Our testing now tests a couple of minutes, the codeql
is by far the more expensive.

Move metric's naming test to test/presubmit_test.go

Add longer sleep in the TestAutoAXFR.

Bye bye travis!

Closes: #4266

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-11-06 14:14:26 +01:00
Miek Gieben
57e6c56bfc Create codeql-analysis.yml (#4264)
Setup CodeQL to check are code - seems we're in the beta. (is this still beta?)
2020-11-05 16:06:32 +01:00
Miek Gieben
d6660f369e A question template (#4243)
We get many questions (which is fine), but those are neither a bug, nor
an enhancement. Just add generic question as an option.

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-10-27 14:55:34 +01:00
Olivier Lemasle
d371738149 Add DCO requirement in Contributing guidelines (#4008)
Signed-off-by: Olivier Lemasle <o.lemasle@gmail.com>
2020-07-14 18:38:57 +02:00
Ben Kochie
d4cac0c43a Move doc test to workflow (#3800)
Replace doc CI test with automatic workflow.

Signed-off-by: Ben Kochie <superq@gmail.com>
2020-03-31 16:18:10 +02:00
Miek Gieben
04292f1375 presubmit: add whitespace test in go (#3629)
Automatically submitted.
2020-01-28 11:13:11 +00:00
Michael Grosser
dd58f046de Use latest Github checkout action (#3627)
Signed-off-by: Michael Grosser <development@stp-ip.net>
2020-01-27 08:50:29 -08:00
Yong Tang
6cf1c086ac Update auto go mod tidy workflow to remove user association (#3517)
This PR updates go.tidy.yml, and use pseudo name
`coredns-auto-go-mod-tidy[bot]`, so that the commit
is not associated with real user. Otherwise
the commit history could be confusing.

This is similar to what `dependabot[bot]` is doing
for commits generated by bots.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2019-12-07 23:45:27 +00:00
Yong Tang
0a6100048d Setup GitHub Workflow for auto go tidy (#3512)
Setup GitHub Workflow for auto `go tidy`, when
- 'go.mod'
- 'go.sum'
- '.github/workflows/go.tidy.yml'
has been touched.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2019-12-07 15:49:38 +00:00
Yong Tang
bb077c0e49 Update GitHub template for CODE-OF-CONDUCT.md => .github/CODE_OF_CONDUCT.md (#3514)
This PR updates GitHub template for `CODE-OF-CONDUCT.md => `.github/CODE_OF_CONDUCT.md`,
to take advantage of GitHub feature in:

https://help.github.com/en/github/building-a-strong-community/adding-a-code-of-conduct-to-your-project

This PR also moves `SECURITY.md` to `.github/SECURITY.md` and alias it for consistency.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2019-12-07 15:45:27 +00:00
Miek Gieben
6cac0de83a Update github templates (#3510)
An ISSUE_TEMPLATE directory was added, meaning the ISSUE_TEMPLATE.md is
now obsolete. Remove stale.yml because not used. Symlink CONTRIBUTING.md
the other way around to get GitHub recognize it.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-12-07 04:04:14 -08:00
Zou Nengren
2503df9056 introduce issue and pull request templates (#3493)
* introduce issue and pull request templates

Signed-off-by: zouyee <zounengren@cmss.chinamobile.com>

* introduce issue and pull request templates

Signed-off-by: zouyee <zounengren@cmss.chinamobile.com>
2019-11-30 11:33:49 +01:00
Miek Gieben
ab4262d7eb Add CONTRIBUTING symlink (#2540)
symlink from within .github

This should be enough to show it in pull request; unless github has
something against symlinks.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-02-08 17:07:50 +00:00
Chris O'Haver
8b3e4e0687 Ask if the PR introduces backward incompatibility (#2538) 2019-02-08 16:30:17 +00:00
Chris O'Haver
35c5474660 Create ISSUE_TEMPLATE.md (#2297) 2018-11-13 15:32:40 +00:00
Miek Gieben
58d6991363 Update the pr template (#1862)
Add "Why is this needed".

I can get a description of what the PR does from the code changes,
answering the why question is more important.
2018-06-07 13:48:23 -07:00
Miek Gieben
f621870d9c Dont autoclose bugs (#1250) 2017-11-22 15:18:13 +00:00
Miek Gieben
4cedc8f902 extend stale-bot's deadline (#1224)
Add a note in about using the 'pinned' label for prevent stalebot from
closing your issue.
2017-11-13 10:16:38 +00:00
Miek Gieben
4fc381a491 Stalebot (#1165)
* stalebot: use wontfix-stalebot

I've added two new labels: wontfix-stalebot and pinned.

Wontfix-stalebot will be used by stalebot and pinned can be used to keep
issues open.

* later as well
2017-10-23 19:46:18 +01:00
Miek Gieben
25b2c538c1 probot: add 2 integrations (#1129)
close stale issues and stop the merging of PR with WIP in the name.
2017-10-02 20:12:55 +01:00
Yong Tang
6f874f0bd1 Add Pull Request templates (#1086)
This fix adds a Pull Request templates to be used.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-09-15 23:53:18 +01:00