-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add linting for YAML and C++ files and fix violations. * Add Taskfile tasks to run linters. * Add GitHub workflow to run linters periodically and on commit.
- Loading branch information
1 parent
6eda3b5
commit 0b9e45c
Showing
17 changed files
with
984 additions
and
766 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,41 @@ | ||
name: "Bug Report" | ||
description: Report software deficiencies | ||
description: "Report software deficiencies" | ||
labels: ["bug"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Use this form to report any functional or performance bugs you've found in the software. | ||
- type: "markdown" | ||
attributes: | ||
value: | | ||
Use this form to report any functional or performance bugs you've found in the software. | ||
Be sure to check if your [issue](https://github.com/y-scope/log-surgeon/issues) has already been reported. | ||
Be sure to check if your [issue](https://github.com/y-scope/log-surgeon/issues) has already | ||
been reported. | ||
- type: textarea | ||
attributes: | ||
label: Bug | ||
description: "Describe what's wrong and if applicable, what you expected instead." | ||
validations: | ||
required: true | ||
- type: "textarea" | ||
attributes: | ||
label: "Bug" | ||
description: "Describe what's wrong and if applicable, what you expected instead." | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
attributes: | ||
label: log-surgeon version | ||
description: "The release version number or development commit hash that has the bug." | ||
placeholder: "Version number or commit hash" | ||
validations: | ||
required: true | ||
- type: "input" | ||
attributes: | ||
label: "log-surgeon version" | ||
description: "The release version number or development commit hash that has the bug." | ||
placeholder: "Version number or commit hash" | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Environment | ||
description: "The environment in which you're running log-surgeon." | ||
placeholder: "OS version, docker version, etc." | ||
validations: | ||
required: true | ||
- type: "textarea" | ||
attributes: | ||
label: "Environment" | ||
description: "The environment in which you're running log-surgeon." | ||
placeholder: "OS version, docker version, etc." | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Reproduction steps | ||
description: "List each step required to reproduce the bug." | ||
validations: | ||
required: true | ||
- type: "textarea" | ||
attributes: | ||
label: "Reproduction steps" | ||
description: "List each step required to reproduce the bug." | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
name: "Feature/Change Request" | ||
description: Request a feature or change | ||
description: "Request a feature or change" | ||
labels: ["enhancement"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Use this form to request a feature/change in the software, or the project as a whole. | ||
- type: "markdown" | ||
attributes: | ||
value: | | ||
Use this form to request a feature/change in the software, or the project as a whole. | ||
- type: textarea | ||
attributes: | ||
label: Request | ||
description: "Describe your request and why it's important." | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Possible implementation | ||
description: "Describe any implementations you have in mind." | ||
validations: | ||
required: true | ||
- type: "textarea" | ||
attributes: | ||
label: "Request" | ||
description: "Describe your request and why it's important." | ||
validations: | ||
required: true | ||
|
||
- type: "textarea" | ||
attributes: | ||
label: "Possible implementation" | ||
description: "Describe any implementations you have in mind." | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,41 @@ | ||
name: Build | ||
name: "Build" | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/build.yaml" | ||
- "CMakeLists.txt" | ||
- "examples/**/*" | ||
- "src/**/*" | ||
push: | ||
paths: | ||
- ".github/workflows/build.yaml" | ||
- "CMakeLists.txt" | ||
- "examples/**/*" | ||
- "src/**/*" | ||
workflow_call: | ||
|
||
concurrency: | ||
group: "${{github.workflow}}-${{github.ref}}" | ||
# Cancel in-progress jobs for efficiency | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest] | ||
build_type: [Release, Debug] | ||
runs-on: ${{ matrix.os }} | ||
os: ["macos-latest", "ubuntu-latest"] | ||
build_type: ["Debug", "Release"] | ||
runs-on: "${{matrix.os}}" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: "actions/checkout@v4" | ||
|
||
- run: "cmake -B ./build -DCMAKE_BUILD_TYPE=${{matrix.build_type}}" | ||
|
||
- run: "cmake --build ./build --config ${{matrix.build_type}}" | ||
|
||
- run: cmake -B ./build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | ||
- run: "cmake --install ./build --prefix ./install" | ||
|
||
- run: cmake --build ./build --config ${{ matrix.build_type }} | ||
- run: "cmake -S examples -B ./examples/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}}" | ||
|
||
- run: cmake --install ./build --prefix ./install | ||
- run: "cmake --build ./examples/build --config ${{matrix.build_type}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: "lint" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
schedule: | ||
# Run daily at 00:15 UTC (the 15 is to avoid periods of high load) | ||
- cron: "15 0 * * *" | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: "${{github.workflow}}-${{github.ref}}" | ||
# Cancel in-progress jobs for efficiency | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
strategy: | ||
matrix: | ||
os: ["macos-latest", "ubuntu-latest"] | ||
runs-on: "${{matrix.os}}" | ||
steps: | ||
- uses: "actions/checkout@v4" | ||
with: | ||
submodules: "recursive" | ||
|
||
- uses: "actions/setup-python@v5" | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: "Install task" | ||
run: "npm install -g @go-task/cli" | ||
|
||
- if: "matrix.os == 'macos-latest'" | ||
name: "Install coreutils (for md5sum)" | ||
run: "brew install coreutils" | ||
|
||
- name: "Run lint task" | ||
run: "task lint:check" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "tools/yscope-dev-utils"] | ||
path = tools/yscope-dev-utils | ||
url = https://github.com/y-scope/yscope-dev-utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: "3" | ||
|
||
includes: | ||
lint: "lint-tasks.yml" | ||
utils: "tools/yscope-dev-utils/taskfiles/utils.yml" | ||
|
||
vars: | ||
G_BUILD_DIR: "{{.ROOT_DIR}}/build" | ||
|
||
tasks: | ||
clean: "rm -rf '{{.G_BUILD_DIR}}'" | ||
|
||
init: | ||
internal: true | ||
silent: true | ||
run: "once" | ||
cmd: "mkdir -p '{{.G_BUILD_DIR}}'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
clang-format>=18.1.5 | ||
yamllint>=1.35.1 |
Oops, something went wrong.