Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
90d13d0
Bump the actions-deps group with 5 updates (#1166)
dependabot[bot] Nov 2, 2026
0644743
Bump the nuget-deps group with 1 update (#1168)
dependabot[bot] Nov 2, 2026
9797ad2
Remove Unused Code Ahead of Expanding Test Coverage (#1170)
ptr727 Nov 2, 2026
fad69b4
Document Coverage Measurement and Declare Codecov Flags (#1172)
ptr727 Nov 2, 2026
039df1c
Add a CI Integration Coverage Job over a Synthetic Corpus (#1173)
ptr727 Nov 2, 2026
f2d6c9a
Run the Regression Harness Under Coverage on Request (#1178)
ptr727 Nov 2, 2026
a219600
Drop FFmpeg Progress Lines from Parsed Regression Errors (#1181)
ptr727 Nov 2, 2026
85a01c0
Skip Interlace Detection When the Decode Error Rate Is Exceeded (#1180)
ptr727 Nov 2, 2026
38a8b68
Keep MP4 Track Names and Snippet-Reachable Defects in Reduced Clips (…
ptr727 Nov 3, 2026
a382e3e
Add Unit Tests for Tool Info, Tool Info Schema, and 7-Zip Builder (#1…
ptr727 Nov 3, 2026
d98d35c
Add Unit Tests for Track and Closed Caption Property Edge Cases (#1186)
ptr727 Nov 3, 2026
d778eb4
Pass Cancellation into the Monitor and Add Monitor Tests (#1187)
ptr727 Nov 3, 2026
fc70c62
Remove Unreachable Branches and Unused Members Found by Coverage (#1189)
ptr727 Nov 3, 2026
98158e5
Add Sidecar Failure, Tool Change Logging, and Summarize Tests (#1190)
ptr727 Nov 3, 2026
02a0ae7
Log idet Counts on Every Interlace Scan (#1188)
ptr727 Nov 3, 2026
6971d21
Document How Codecov Carries a Flag Forward Across a Code Change (#1191)
ptr727 Nov 3, 2026
6c3e6ee
Bump the actions-deps group with 5 updates (#1195)
dependabot[bot] Nov 3, 2026
7a2e4a5
Bump the nuget-deps group with 1 update (#1197)
dependabot[bot] Nov 3, 2026
7478eb3
Run the Regression Harness on a Local Branch Image (#1200)
ptr727 Nov 3, 2026
dbbc9cc
Scan Interlacing Again After Repairing a File Whose Scan Was Skipped …
ptr727 Nov 3, 2026
5f15f24
Bump the actions-deps group with 5 updates (#1202)
dependabot[bot] Nov 4, 2026
9a432d8
Bump the actions-deps group with 5 updates (#1204)
dependabot[bot] Nov 5, 2026
143fc13
Bump the actions-deps group with 5 updates (#1206)
dependabot[bot] Nov 6, 2026
2bee72a
Commit the Registry-Rendered Agent Policy Files (#1209)
ptr727 Nov 6, 2026
14d555a
Merge remote-tracking branch 'origin/develop' into promote/develop-to…
ptr727 Nov 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
reviews:
auto_review:
enabled: true
base_branches:
- "^develop$"
auto_pause_after_reviewed_commits: 0
16 changes: 15 additions & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@
"dotnet-outdated"
],
"rollForward": false
},
"dotnet-coverage": {
"version": "18.12.0",
"commands": [
"dotnet-coverage"
],
"rollForward": false
},
"dotnet-reportgenerator-globaltool": {
"version": "5.5.12",
"commands": [
"reportgenerator"
],
"rollForward": false
}
}
}
}
43 changes: 43 additions & 0 deletions .github/actions/integration-coverage/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Integration coverage
description: Build the image from the checked-out tree, run its test commands under coverage over the synthetic corpus, check the results, and upload the coverage under the integration flag.

inputs:
codecov-token:
description: Codecov upload token, empty for a run that has none, such as a fork pull request.
required: false
default: ''

runs:
using: composite
steps:

- name: Setup .NET SDK step
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
dotnet-version: 10.x

# The image has no SDK, so the integration script mounts the restored dotnet-coverage into it.
- name: Restore .NET tools step
shell: bash
run: dotnet tool restore

# Single platform with --load, since the run needs the image locally and the smoke build pushes nothing.
- name: Build Docker image step
shell: bash
run: docker buildx build --load --pull --tag plexcleaner:integration --file ./Docker/Dockerfile .

- name: Run integration test step
shell: bash
run: ./RegressionTests/integration-test.sh plexcleaner:integration "$RUNNER_TEMP/integration"

# Best-effort like the validator's uploads, so a missing token never reds the gate.
# The report names its sources under /Builder, which codecov.yml's fixes rule maps to the repository root.
- name: Upload coverage to Codecov step
continue-on-error: true
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
token: ${{ inputs.codecov-token }}
files: ${{ runner.temp }}/integration/out/image.xml
disable_search: true
flags: integration
fail_ci_if_error: false
42 changes: 42 additions & 0 deletions .github/agent-policy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"$schema": "https://raw.githubusercontent.com/ptr727/ProjectTemplate/main/spec/agent-policy.schema.json",
"version": 1,
"review": {
"bots": {
"copilot": {
"trigger": "auto",
"bases": [
"@default"
],
"when": "on-open",
"rounds": "per-push",
"maxRounds": null,
"gate": true
},
"coderabbit": {
"trigger": "auto",
"bases": [
"@default",
"^develop$"
],
"when": "on-open",
"rounds": "per-push",
"maxRounds": null,
"gate": false,
"command": "review"
},
"qodo": {
"trigger": "auto",
"bases": [
"@default",
"^develop$"
],
"when": "on-open",
"rounds": "per-push",
"maxRounds": null,
"gate": false
}
}
},
"guard": {}
}
24 changes: 22 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,35 @@ jobs:
python-directories: |
RegressionTests

# The PR's integration run on the branch tip, so a publish never ships an image whose test commands fail (D1.7).
# It checks out github.sha, the commit publish builds, and uploads the branch's integration coverage.
integration:
name: Integration coverage job
needs: [plan]
if: ${{ needs.plan.outputs.publish == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code step
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.sha }}
- name: Run integration coverage step
uses: ./.github/actions/integration-coverage
with:
codecov-token: ${{ secrets.CODECOV_TOKEN }}

# Build, version, and publish the triggering branch: the multi-runtime PlexCleaner.7z and the multi-arch
# Docker image, then the GitHub release. Grants the write scopes the hub task needs, since it declares none
# of its own: contents: write for the release, and actions: write to delete the consumed release-asset-*
# transfer artifacts.
publish:
name: Publish project release job
needs: [plan, validate]
needs: [plan, validate, integration]
if: >-
${{ needs.plan.outputs.publish == 'true' && needs.validate.result == 'success' }}
${{ needs.plan.outputs.publish == 'true' && needs.validate.result == 'success'
&& needs.integration.result == 'success' }}
uses: ptr727/ProjectTemplate/.github/workflows/build-release-task.yml@df04adaee6c5928177535e40eb5b9310638f501e # 2.0.1343
secrets:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
Expand Down
55 changes: 49 additions & 6 deletions .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ permissions: {}
jobs:

# The repo builds one combined release target, executable plus Docker image, so one entry lists its paths (D1.1).
# The integration entry adds the paths only the integration run reads (D1.7).
changes:
name: Detect changed targets job
runs-on: ubuntu-latest
Expand All @@ -23,6 +24,7 @@ jobs:
pull-requests: read
outputs:
release: ${{ steps.filter.outputs.release }}
integration: ${{ steps.filter.outputs.integration }}
steps:
- name: Checkout code step
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand All @@ -44,6 +46,27 @@ jobs:
- 'Directory.Packages.props'
- 'global.json'
- 'version.json'
integration:
- 'PlexCleaner/**'
- 'PlexCleanerTests/**'
- 'Plugins/**'
- 'Samples/**'
- 'Docker/Dockerfile'
- 'Docker/*.sh'
- 'Docker/PlexCleaner.coverage.json'
- '.dockerignore'
- '.editorconfig'
- 'Directory.Build.props'
- 'Directory.Packages.props'
- 'global.json'
- 'version.json'
- '.config/dotnet-tools.json'
- '.github/actions/integration-coverage/**'
- 'codecov.yml'
- 'RegressionTests/check_results.py'
- 'RegressionTests/corpus_common.py'
- 'RegressionTests/integration-test.sh'
- 'RegressionTests/synthetic/**'

validate:
name: Validate sources job
Expand Down Expand Up @@ -81,12 +104,28 @@ jobs:
# On a pull_request event github.ref_name is the PR ref, so the logical branch reads base_ref first.
branch: ${{ github.base_ref || github.ref_name }}

# Builds the image this pull request ships and runs its test commands under coverage (D1.7).
integration:
name: Integration coverage job
needs: [changes]
if: github.event_name == 'workflow_dispatch' || needs.changes.outputs.integration == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code step
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Run integration coverage step
uses: ./.github/actions/integration-coverage
with:
codecov-token: ${{ secrets.CODECOV_TOKEN }}

# Single required status check, its name bound to the ruleset context (D1.5).
# A skipped smoke-build, an unchanged target, passes, and a failure or cancellation blocks.
# A skipped smoke-build or integration, an unchanged target, passes, and a failure or cancellation blocks.
check-workflow-status:
name: Check pull request workflow status job
runs-on: ubuntu-latest
needs: [changes, validate, smoke-build]
needs: [changes, validate, smoke-build, integration]
if: always()
steps:
- name: Check workflow results step
Expand All @@ -100,7 +139,11 @@ jobs:
exit 1
fi
done
if [[ "${{ needs.smoke-build.result }}" != "success" && "${{ needs.smoke-build.result }}" != "skipped" ]]; then
echo "::error::Job 'smoke-build' did not succeed (${{ needs.smoke-build.result }})."
exit 1
fi
for result in "smoke-build:${{ needs.smoke-build.result }}" "integration:${{ needs.integration.result }}"; do
name="${result%%:*}"
value="${result#*:}"
if [[ "$value" != "success" && "$value" != "skipped" ]]; then
echo "::error::Job '$name' did not succeed ($value)."
exit 1
fi
done
2 changes: 2 additions & 0 deletions .pr_agent.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[config]
disable_auto_feedback = false
Loading
Loading