Skip to content

Commit

Permalink
Merge pull request #148 from sonroyaalmerol/fix-race-condition
Browse files Browse the repository at this point in the history
Separate parser instance for centralized mutex locking
  • Loading branch information
sonroyaalmerol committed Aug 28, 2024
2 parents 8cc11c3 + 31c5a35 commit 3c48521
Show file tree
Hide file tree
Showing 29 changed files with 2,255 additions and 2,232 deletions.
4 changes: 2 additions & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# These are supported funding model platforms
---
# These are supported funding model platforms
---
ko_fi: sonroyaalmerol
96 changes: 48 additions & 48 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
---
name: Bug/issue report
about: Report a bug
title: ''
labels: 'bug'
assignees: ''

---

## Describe the bug

<!-- A clear and concise description of what the bug is. -->

## To Reproduce

Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

## Expected behavior

<!-- A clear and concise description of what you expected to happen. -->

## Actual behavior

<!-- A clear and concise description of what you expected to happen. -->

## Screenshots

<!-- If applicable, add screenshots to help explain your problem. -->

## docker-compose.yml contents

```yaml
# docker-compose.yml contents here
```

## Container/Host Logs

```log
<!-- Insert logs here -->
```

## Additional context

---
name: Bug/issue report
about: Report a bug
title: ''
labels: 'bug'
assignees: ''

---

## Describe the bug

<!-- A clear and concise description of what the bug is. -->

## To Reproduce

Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

## Expected behavior

<!-- A clear and concise description of what you expected to happen. -->

## Actual behavior

<!-- A clear and concise description of what you expected to happen. -->

## Screenshots

<!-- If applicable, add screenshots to help explain your problem. -->

## docker-compose.yml contents

```yaml
# docker-compose.yml contents here
```

## Container/Host Logs

```log
<!-- Insert logs here -->
```

## Additional context

<!-- Add any other context about the problem here. -->
36 changes: 18 additions & 18 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: 'enhancement'
assignees: ''
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: 'enhancement'
assignees: ''
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
22 changes: 11 additions & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
32 changes: 16 additions & 16 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
## Context <!-- markdownlint-disable MD041 -->

* <!-- What do you want to achieve with this PR? -->

## Choices

* <!-- * Why did you solve it like this? -->

## Test instructions

1. <!-- 1. How did you test this PR? -->

## Checklist before requesting a review

* [ ] I have performed a self-review of my code
* [ ] I've added documentation about this change to the README.
## Context <!-- markdownlint-disable MD041 -->

* <!-- What do you want to achieve with this PR? -->

## Choices

* <!-- * Why did you solve it like this? -->

## Test instructions

1. <!-- 1. How did you test this PR? -->

## Checklist before requesting a review

* [ ] I have performed a self-review of my code
* [ ] I've added documentation about this change to the README.
* [ ] I've not introduced breaking changes.
76 changes: 38 additions & 38 deletions .github/workflows/developer.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
---
name: Developer image
on: # yamllint disable-line rule:truthy
push:
branches: [main]
paths-ignore:
- '**/README.md'

jobs:
push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Docker - Login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Docker - Metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ github.repository }}
tags: type=raw,value=dev
flavor: latest=false

- name: Docker - Build / Push
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
---
name: Developer image
on: # yamllint disable-line rule:truthy
push:
branches: [main]
paths-ignore:
- '**/README.md'

jobs:
push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Docker - Login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Docker - Metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ github.repository }}
tags: type=raw,value=dev
flavor: latest=false

- name: Docker - Build / Push
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
82 changes: 41 additions & 41 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
---
name: Linting
on: # yamllint disable-line rule:truthy
pull_request:
push:
branches:
- main

permissions:
contents: read

run-name: Pull request - ${{ github.event.pull_request.number }}
jobs:
dockerlint:
name: Lint - Docker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: Dockerfile

golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
# Require: The version of golangci-lint to use.
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
version: latest
args: "--out-format=colored-line-number"
---
name: Linting
on: # yamllint disable-line rule:truthy
pull_request:
push:
branches:
- main

permissions:
contents: read

run-name: Pull request - ${{ github.event.pull_request.number }}
jobs:
dockerlint:
name: Lint - Docker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: Dockerfile

golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
# Require: The version of golangci-lint to use.
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
version: latest
args: "--out-format=colored-line-number"
Loading

0 comments on commit 3c48521

Please sign in to comment.