Skip to content

Commit c2b0f75

Browse files
authored
Port .github templates and checks to arrow-rs-object-store crate (#4)
* Copy over relevant CI jobs from arrow-rs * Update run_rat * Update object store tests * update rust workflow
1 parent 99cd4c7 commit c2b0f75

File tree

12 files changed

+631
-0
lines changed

12 files changed

+631
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
<!--
12+
A clear and concise description of what the bug is.
13+
-->
14+
15+
**To Reproduce**
16+
<!--
17+
Steps to reproduce the behavior:
18+
-->
19+
20+
**Expected behavior**
21+
<!--
22+
A clear and concise description of what you expected to happen.
23+
-->
24+
25+
**Additional context**
26+
<!--
27+
Add any other context about the problem here.
28+
-->
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
11+
<!--
12+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
13+
(This section helps Arrow developers understand the context and *why* for this feature, in addition to the *what*)
14+
-->
15+
16+
**Describe the solution you'd like**
17+
<!--
18+
A clear and concise description of what you want to happen.
19+
-->
20+
21+
**Describe alternatives you've considered**
22+
<!--
23+
A clear and concise description of any alternative solutions or features you've considered.
24+
-->
25+
26+
**Additional context**
27+
<!--
28+
Add any other context or screenshots about the feature request here.
29+
-->

.github/ISSUE_TEMPLATE/question.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Question
3+
about: Ask question about this project
4+
title: ''
5+
labels: question
6+
assignees: ''
7+
8+
---
9+
10+
**Which part is this question about**
11+
<!--
12+
Is it code base, library api, documentation or some other part?
13+
-->
14+
15+
**Describe your question**
16+
<!--
17+
A clear and concise description of what the question is.
18+
-->
19+
20+
**Additional context**
21+
<!--
22+
Add any other context about the problem here.
23+
-->

.github/dependabot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: cargo
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
target-branch: main
9+
labels: [ auto-dependencies, arrow ]
10+
- package-ecosystem: cargo
11+
directory: "/object_store"
12+
schedule:
13+
interval: daily
14+
open-pull-requests-limit: 10
15+
target-branch: main
16+
labels: [ auto-dependencies, object_store ]
17+
- package-ecosystem: "github-actions"
18+
directory: "/"
19+
schedule:
20+
interval: "daily"
21+
open-pull-requests-limit: 10
22+
labels: [ auto-dependencies ]

.github/pull_request_template.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Which issue does this PR close?
2+
3+
<!--
4+
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
5+
-->
6+
7+
Closes #.
8+
9+
# Rationale for this change
10+
11+
<!--
12+
Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
13+
Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.
14+
-->
15+
16+
# What changes are included in this PR?
17+
18+
<!--
19+
There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR.
20+
-->
21+
22+
# Are there any user-facing changes?
23+
24+
25+
<!--
26+
If there are user-facing changes then we may require documentation to be updated before approving the PR.
27+
-->
28+
29+
<!---
30+
If there are any breaking changes to public APIs, please call them out.
31+
-->

.github/workflows/audit.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: audit
19+
20+
concurrency:
21+
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
22+
cancel-in-progress: true
23+
24+
# trigger for all PRs that touch certain files and changes to main
25+
on:
26+
push:
27+
branches:
28+
- main
29+
pull_request:
30+
paths:
31+
- '**/Cargo.toml'
32+
- '**/Cargo.lock'
33+
34+
jobs:
35+
cargo-audit:
36+
name: Audit
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v4
40+
- name: Install cargo-audit
41+
run: cargo install cargo-audit
42+
- name: Run audit check
43+
run: cargo audit

.github/workflows/dev.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: dev
19+
20+
concurrency:
21+
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
22+
cancel-in-progress: true
23+
24+
# trigger for all PRs and changes to main
25+
on:
26+
push:
27+
branches:
28+
- main
29+
pull_request:
30+
31+
jobs:
32+
33+
rat:
34+
name: Release Audit Tool (RAT)
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v4
38+
- name: Setup Python
39+
uses: actions/setup-python@v5
40+
with:
41+
python-version: 3.8
42+
- name: Audit licenses
43+
run: ./dev/release/run-rat.sh .

.github/workflows/dev_pr.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: dev_pr
19+
20+
concurrency:
21+
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
22+
cancel-in-progress: true
23+
24+
# Trigger whenever a PR is changed (title as well as new / changed commits)
25+
on:
26+
pull_request_target:
27+
types:
28+
- opened
29+
- edited
30+
- synchronize
31+
32+
jobs:
33+
process:
34+
name: Process
35+
runs-on: ubuntu-latest
36+
permissions:
37+
contents: read
38+
pull-requests: write
39+
steps:
40+
- uses: actions/checkout@v4
41+
42+
- name: Assign GitHub labels
43+
if: |
44+
github.event_name == 'pull_request_target' &&
45+
(github.event.action == 'opened' ||
46+
github.event.action == 'synchronize')
47+
uses: actions/[email protected]
48+
with:
49+
repo-token: ${{ secrets.GITHUB_TOKEN }}
50+
configuration-path: .github/workflows/dev_pr/labeler.yml
51+
sync-labels: true

0 commit comments

Comments
 (0)