diff --git a/.github/workflows/auto-assign-issue.yml b/.github/workflows/auto-assign-issue.yml deleted file mode 100644 index dfd53d919..000000000 --- a/.github/workflows/auto-assign-issue.yml +++ /dev/null @@ -1,21 +0,0 @@ -# auto-assign-issue (https://github.com/marketplace/actions/auto-assign-issue) -name: Issue assignment - -on: - issues: - types: [opened] - -permissions: - issues: write - -jobs: - auto-assign: - runs-on: ubuntu-latest - steps: - - uses: pozil/auto-assign-issue@v2 - if: "contains(github.event.issue.labels.*.name, 'status: needs triage')" - with: - # Weighted assignments - assignees: arthanson:3, jeremystretch:3, DanSheps - numOfAssignee: 1 - abortIfPreviousAssignees: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4be03742..71ddf30e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,9 +20,12 @@ jobs: runs-on: ubuntu-latest env: NETBOX_CONFIGURATION: netbox.configuration_testing + DD_CIVISIBILITY_AGENTLESS_ENABLED: "true" + DD_API_KEY: ${{ secrets.DD_API_KEY }} + DD_ENV: ci-gha strategy: matrix: - python-version: ['3.10', '3.11', '3.12'] + python-version: ['3.12'] node-version: ['18.x'] services: redis: @@ -94,7 +97,5 @@ jobs: run: scripts/verify-bundles.sh - name: Run tests - run: coverage run --source="netbox/" netbox/manage.py test netbox/ --parallel + run: ddtrace-run netbox/manage.py test netbox/ --parallel --pattern --pattern "test_models.py" - - name: Show coverage report - run: coverage report --skip-covered --omit '*/migrations/*,*/tests/*' diff --git a/.github/workflows/close-incomplete-issues.yml b/.github/workflows/close-incomplete-issues.yml deleted file mode 100644 index 4d31d735e..000000000 --- a/.github/workflows/close-incomplete-issues.yml +++ /dev/null @@ -1,32 +0,0 @@ -# close-stale-issues (https://github.com/marketplace/actions/close-stale-issues) -name: Close incomplete issues - -on: - schedule: - - cron: '15 4 * * *' - workflow_dispatch: - -permissions: - actions: write - issues: write - -jobs: - stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v9 - with: - close-issue-message: > - This issue is being closed as no further information has been provided. If - you would like to revisit this topic, please first modify your original post - to include all the requested detail, and then ask that the issue be reopened. - days-before-stale: 7 - days-before-close: 7 - only-issue-labels: 'status: revisions needed' - operations-per-run: 100 - remove-stale-when-updated: false - stale-issue-label: 'pending closure' - stale-issue-message: > - This is a reminder that additional information is needed in order to further - triage this issue. If the requested details are not provided, the issue will - soon be closed automatically. diff --git a/.github/workflows/close-stale-issues.yml b/.github/workflows/close-stale-issues.yml deleted file mode 100644 index b02ffdacd..000000000 --- a/.github/workflows/close-stale-issues.yml +++ /dev/null @@ -1,52 +0,0 @@ -# close-stale-issues (https://github.com/marketplace/actions/close-stale-issues) -name: Close stale issues/PRs - -on: - schedule: - - cron: '0 4 * * *' - workflow_dispatch: - -permissions: - actions: write - issues: write - pull-requests: write - -jobs: - stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v9 - with: - # General parameters - operations-per-run: 100 - remove-stale-when-updated: false - - # Issue parameters - close-issue-message: > - This issue has been automatically closed due to lack of activity. In an - effort to reduce noise, please do not comment any further. Note that the - core maintainers may elect to reopen this issue at a later date if deemed - necessary. - days-before-issue-stale: 90 - days-before-issue-close: 30 - exempt-issue-labels: 'status: accepted,status: backlog,status: blocked' - stale-issue-label: 'pending closure' - stale-issue-message: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. NetBox - is governed by a small group of core maintainers which means not all opened - issues may receive direct feedback. **Do not** attempt to circumvent this - process by "bumping" the issue; doing so will result in its immediate closure - and you may be barred from participating in any future discussions. Please see - our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md). - - # Pull request parameters - close-pr-message: > - This PR has been automatically closed due to lack of activity. - days-before-pr-stale: 15 - days-before-pr-close: 15 - stale-pr-label: 'pending closure' - stale-pr-message: > - This PR has been automatically marked as stale because it has not had - recent activity. It will be closed automatically if no further action is - taken. diff --git a/.github/workflows/lock-threads.yml b/.github/workflows/lock-threads.yml deleted file mode 100644 index 0f3636784..000000000 --- a/.github/workflows/lock-threads.yml +++ /dev/null @@ -1,23 +0,0 @@ -# lock-threads (https://github.com/marketplace/actions/lock-threads) -name: Lock threads - -on: - schedule: - - cron: '0 3 * * *' - workflow_dispatch: - -permissions: - issues: write - pull-requests: write - discussions: write - -jobs: - lock: - runs-on: ubuntu-latest - steps: - - uses: dessant/lock-threads@v5 - with: - issue-inactive-days: 90 - pr-inactive-days: 30 - discussion-inactive-days: 180 - issue-lock-reason: 'resolved' diff --git a/.github/workflows/update-translation-strings.yml b/.github/workflows/update-translation-strings.yml deleted file mode 100644 index bcd68c887..000000000 --- a/.github/workflows/update-translation-strings.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Update translation strings - -on: - schedule: - - cron: '0 5 * * *' - workflow_dispatch: - -permissions: - contents: write - -env: - LOCALE: "en" - -jobs: - makemessages: - runs-on: ubuntu-latest - env: - NETBOX_CONFIGURATION: netbox.configuration_testing - - steps: - - name: Check out repo - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: 3.11 - - - name: Install system dependencies - run: sudo apt install -y gettext - - - name: Install Python dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - - name: Run makemessages - run: python netbox/manage.py makemessages -l ${{ env.LOCALE }} - - - name: Commit changes - uses: EndBug/add-and-commit@v9 - with: - add: 'netbox/translations/' - default_author: github_actions - message: 'Update source translation strings' diff --git a/requirements.txt b/requirements.txt index dad3deb53..e38406621 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +ddtrace==2.9.2 Django==5.0.7 django-cors-headers==4.4.0 django-debug-toolbar==4.3.0