44 Commits

Author SHA1 Message Date
Thomas Jungblut
c27eedcf80 Add basic XFS powerfailure tests
This also introduces mkfs options, in case we need to accomodate for
non-default parameters here in the future.

Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2024-03-13 10:18:52 +01:00
dependabot[bot]
d17ee55b7a
build(deps): Bump golangci/golangci-lint-action from 3.7.0 to 4.0.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.7.0 to 4.0.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](3a91952989...3cfe3a4abb)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-12 14:12:44 +00:00
Wei Fu
32f6f6646f .github: enable robustness on arm64
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-01-04 21:35:20 +08:00
Wei Fu
68ab1a1207 *: run test-robustness with build
Add new recipe to build bbolt command so that we can ensure that
test-robustness recipe is using bbolt with gofail.

Since test-robustness requires root, move `sudo` into test-robustness
recipe. Otherwise, both bbolt binary and gofail code belongs to root
user.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-01-04 19:19:03 +08:00
Wei Fu
c61a3be3e8 *: introduce nightly run for robustness
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-01-02 21:29:51 +08:00
James Blair
2cd6213e4a
Remove workflow telemetry to reduce noise.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-12-28 09:14:03 +13:00
James Blair
53450a9f2b
Fix yamllint errors in workflow files.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-12-28 09:12:31 +13:00
James Blair
7cab486ea2
Reduce arm64 runner memory allocation to 8GB.
Based on memory consumption statistics for historic runs.

Signed-off-by: James Blair <mail@jamesblair.net>
2023-12-28 09:09:23 +13:00
dependabot[bot]
70aa6e651d
build(deps): Bump actions/github-script from 6.4.1 to 7.0.1
Bumps [actions/github-script](https://github.com/actions/github-script) from 6.4.1 to 7.0.1.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](d7906e4ad0...60a0d83039)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-18 14:30:46 +00:00
Ivan Valdes
a9cde4d6c8
github actions: add workflow telemetry to collect metrics
Signed-off-by: Ivan Valdes <ivan@vald.es>
2023-12-16 13:34:38 -08:00
Ivan Valdes
82cf0eda8c
github workflow: enable workflow approval
Allow to run GitHub workflows for Pull Requests that have the ok-to-test
label.

Signed-off-by: Ivan Valdes <ivan@vald.es>
2023-12-12 10:06:49 -08:00
dependabot[bot]
5ff325a6a3
build(deps): Bump actions/setup-go from 4 to 5
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 14:46:21 +00:00
Wei Fu
300e72ab8a tests/robustness: init with powerfailure case
Add `Robustness Test` pipeline for robustness test cases.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-08 09:48:57 +08:00
Wei Fu
b05bec2fe3 tests/*: introduce go-dmflakey
This commit is to add go-binding for go-dmflakey. It's used to simulate
powerfailure with common filesystems.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-07 08:55:33 +08:00
Ivan Valdes
607a0c3d08
github workflow: only run arm64 for etcd-io/bbolt
Skip running arm64 jobs that use actuated's runners for commits done in
forked repositories. These jobs will not run and eventually fail in
GitHub actions.

Signed-off-by: Ivan Valdes <ivan@vald.es>
2023-11-21 10:08:19 -08:00
Ivan Valdes
a7cb1eeffe
github wokflow: use large runner for race tests
Remove the resource limits from `GOGC`, and set the GitHub workflow to
run on a large runners for race tests (ubuntu 8 cores for amd64 and
coverage tests; actuated 8 cores for arm64).

Signed-off-by: Ivan Valdes <ivan@vald.es>
2023-11-17 11:51:27 -08:00
Mustafa Elbehery
f62e83b46d refactor goversion into one location
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
2023-11-13 15:38:10 +01:00
Mustafa Elbehery
e12728ab62 add: reusable github workflow template
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
2023-11-09 21:16:19 +01:00
Ivan Valdes
4d30431503
Enable arm64 runner
Signed-off-by: Ivan Valdes <ivan@vald.es>
2023-11-08 06:54:39 -08:00
Allen Ray
18ebb97451 Update to go1.21.1
Signed-off-by: Allen Ray <alray@redhat.com>
2023-09-15 09:26:06 -04:00
dependabot[bot]
686a2a3551
build(deps): Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 15:03:22 +00:00
dependabot[bot]
aafd6b26fd
build(deps): Bump golangci/golangci-lint-action from 3.6.0 to 3.7.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](639cd343e1...3a91952989)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-21 14:46:26 +00:00
James Blair
ed506da9fd
Update to golang 1.20 minor release.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-08-19 21:25:39 +12:00
James Blair
84572b19e4
Updated go to latest patch release 1.19.12.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-08-06 08:44:54 +12:00
James Blair
e1112bf01a
Updated go to latest patch release 1.19.11.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-07-13 21:14:38 +12:00
dependabot[bot]
df4062a434
build(deps): Bump golangci/golangci-lint-action from 3.5.0 to 3.6.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.5.0 to 3.6.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](5f1fec7010...639cd343e1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 15:03:11 +00:00
charles-chenzz
c8cb5273d9 update go to latest patch release 1.19.10
Signed-off-by: charles-chenzz <Rekles666@gmail.com>
2023-06-08 20:06:52 +08:00
dependabot[bot]
3b3316810d
build(deps): Bump golangci/golangci-lint-action from 3.4.0 to 3.5.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](08e2f20817...5f1fec7010)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-05 15:01:14 +00:00
James Blair
7f578facbe
Updated go to latest patch release 1.19.9.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-05-08 13:03:08 +12:00
dependabot[bot]
360067ce9e
Bump actions/setup-go from 3 to 4
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-20 15:06:32 +00:00
James Blair
4e41eab093
Updated go to 1.19.7
Go 1.17 is out of support, this brings bbolt in line with other etcd maintained projects and addresses CVEs with older versions of golang.

Signed-off-by: James Blair <mail@jamesblair.net>
2023-03-09 11:28:24 +13:00
dependabot[bot]
afa8b89da8 Bump golangci/golangci-lint-action from 3.3.1 to 3.4.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.3.1 to 3.4.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](0ad9a0988b...08e2f20817)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-29 10:58:20 +08:00
Benjamin Wang
f10bad3c8f support injecting failpoints and add failpoint github workflow
Implemented first demo "TestFailpoint_MapFail"

Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-16 20:32:16 +08:00
Benjamin Wang
df7540e2f4 security: add dependabot.yml
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-11 06:00:23 +08:00
Wei Fu
c1ce3b5ca8 .github: use GOGC=30 to prevent high resource usage
* Remove duplicate targets in Makefile
* Use GOGC=30 to prevent high resource usage

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-01-05 13:54:16 +08:00
Wei Fu
b7f2da4843 .github/Makefile: support EXTRA_TESTFLAGS for array freelist
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-01-04 20:05:20 +08:00
Wei Fu
5104c82310 .github: split test job into test-{linux/windows}
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-01-03 15:27:42 +08:00
Wei Fu
f8fa3644b5 .github: run coverage in individual job
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-01-03 14:57:15 +08:00
Wei Fu
99a93a69f2 Enable -race in github action
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-01-03 14:36:10 +08:00
Benjamin Wang
d04dc0c2d0 Support running workflow on Windows-latest
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-12-27 14:49:58 +08:00
Manuel Rüger
33c86c78ca .github: Enable lint
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-10-20 22:47:35 +02:00
Manuel Rüger
b2cf45b995 .github: Update actions to latest version
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-10-20 22:33:49 +02:00
Manuel Rüger
9b606419b1 Run gofmt
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-10-20 21:09:53 +02:00
Manuel Rüger
ff70d213eb .github: Move from travis to github actions 2022-03-26 00:30:46 +01:00