Skip to content

Commit

Permalink
add workflow timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfoxtyler committed Jan 13, 2025
1 parent 568869d commit fb3208f
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/cd-dgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ permissions:
jobs:
dgraph-build-amd64:
runs-on: warp-ubuntu-latest-x64-16x
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -121,6 +122,7 @@ jobs:

dgraph-build-arm64:
runs-on: warp-ubuntu-latest-arm64-16x
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -217,9 +219,11 @@ jobs:
with:
name: dgraph-standalone-arm64
path: dgraph-standalone-arm64.tar
dgraph-docker-image-and-manifests-push:

graph-docker-image-and-manifests-push:
needs: [dgraph-build-amd64, dgraph-build-arm64]
runs-on: warp-ubuntu-latest-x64-16x
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-dgraph-code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ permissions:
jobs:
dgraph-code-coverage:
runs-on: warp-ubuntu-latest-x64-4x
timeout-minutes: 60
steps:
- uses: actions/checkout@v4 # defaults to SHA of event that triggered workflow
- name: Set up Go
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-dgraph-core-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
dgraph-core-tests:
if: github.event.pull_request.draft == false
runs-on: warp-ubuntu-latest-x64-4x
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Set up Go
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-dgraph-core-upgrade-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
dgraph-upgrade-tests:
if: github.event.pull_request.draft == false
runs-on: warp-ubuntu-latest-x64-4x
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-dgraph-fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
fuzz-test:
if: github.event.pull_request.draft == false
runs-on: warp-ubuntu-latest-x64-4x
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Set up Go
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-dgraph-integration2-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
dgraph-integration2-tests:
if: github.event.pull_request.draft == false
runs-on: warp-ubuntu-latest-x64-4x
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-dgraph-jepsen-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ permissions:
jobs:
dgraph-jepsen-tests:
runs-on: warp-ubuntu-latest-x64-4x
timeout-minutes: 60
steps:
- name: Checkout dgraph repo
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-dgraph-ldbc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
dgraph-ldbc-tests:
if: github.event.pull_request.draft == false
runs-on: warp-ubuntu-latest-x64-4x
timeout-minutes: 10
steps:
- name: Checkout Dgraph
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-dgraph-load-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
dgraph-load-tests:
if: github.event.pull_request.draft == false
runs-on: warp-ubuntu-latest-x64-4x
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Set up Go
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-dgraph-oss-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
dgraph-oss-build:
if: github.event.pull_request.draft == false
runs-on: warp-ubuntu-latest-x64-4x
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Set up Go
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-dgraph-system-upgrade-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
dgraph-upgrade-tests:
if: github.event.pull_request.draft == false
runs-on: warp-ubuntu-latest-x64-4x
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-dgraph-systest-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
dgraph-systest-tests:
if: github.event.pull_request.draft == false
runs-on: warp-ubuntu-latest-x64-4x
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Set up Go
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-dgraph-tests-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
dgraph-tests:
if: github.event.pull_request.draft == false
runs-on: warp-ubuntu-latest-arm64-4x
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Set up Go
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:
jobs:
dgraph-upgrade-fixed-versions-tests:
runs-on: warp-ubuntu-latest-x64-4x
timeout-minutes: 720
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-dgraph-vector-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
dgraph-vector-tests:
if: github.event.pull_request.draft == false
runs-on: warp-ubuntu-latest-x64-4x
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Set up Go
Expand Down
8 changes: 3 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@
It's best to put the Dgraph repo somewhere in `$GOPATH`.

```bash
mkdir -p "$(go env GOPATH)/src/github.com/dgraph-io"
cd "$(go env GOPATH)/src/github.com/dgraph-io"
mkdir -p "$(go env GOPATH)/src/github.com/hypermodeinc"
cd "$(go env GOPATH)/src/github.com/hypermodeinc"
git clone https://github.com/hypermodeinc/dgraph.git
cd ./dgraph
make install
```

This will put the source code in a Git repo under `$GOPATH/src/github.com/dgraph-io/dgraph` and
This will put the source code in a Git repo under `$GOPATH/src/github.com/hypermodeinc/dgraph` and
compile the binaries to `$GOPATH/bin`.

### Setup Badger from source repo
Expand Down Expand Up @@ -198,8 +198,6 @@ yesterday.

- **Pull requests are welcome**, as long as you're willing to put in the effort to meet the
guidelines. After you fork dgraph, create your pull request against our `main` branch
- Contributors are required to execute our
[Individual Contributor License Agreement](https://cla-assistant.io/dgraph-io/dgraph)
- Aim for clear, well written, maintainable code
- Simple and minimal approach to features, like Go
- New features must include passing unit tests, and integration tests when appropriate
Expand Down

0 comments on commit fb3208f

Please sign in to comment.