Skip to content

Audit cleanup: remove orphaned files, dead scripts, and stale references#2831

Open
CodingIsBliss wants to merge 3 commits intomainfrom
feature/audit-cleanup-unused-files
Open

Audit cleanup: remove orphaned files, dead scripts, and stale references#2831
CodingIsBliss wants to merge 3 commits intomainfrom
feature/audit-cleanup-unused-files

Conversation

@CodingIsBliss
Copy link
Collaborator

Summary

Comprehensive audit and cleanup of the Oryx repo, removing orphaned files, dead build scripts, stale references, and broken documentation links.

Total: 114 files changed, 7,473 lines removed

Commit 1: Remove orphaned vsts/ pipelines, dead build scripts, and stub workflow

  • Removed entire vsts/ folder (66 files) no ADO pipelines reference this GitHub repo's vsts/ directory; all ADO pipelines point to the internal AAPT-Antares-Oryx ADO repo
  • Removed dead build scripts only called from deleted vsts/ templates: buildBuildImageBases.sh, buildBuildpacksImages.sh
  • Removed stub .github/workflows/monitor-versions.yaml (superseded by automationTemplate.yaml)
  • Created missing build/generateConstants.sh (required by automationTemplate.yaml workflow)
  • Updated Oryx.sln, doc/architecture.md, doc/base_images.md

Commit 2: Second-pass cleanup remove additional dead files and stale code

  • Removed stale root files: CodeMaid.config, Detector.sln, CHANGELOG.md
  • Removed dead build scripts: buildSln.sh, buildTestBuildImages.sh, testBuildScriptGenerator.sh, testIntegration.sh, buildPlatformBinaries.sh
  • Removed orphaned generated constants: __dotNetCoreRunTimeVersions.sh, __dotNetCoreSdkVersions.sh, __phpVersions.sh, __functions.sh
  • Removed actions/oryx-dockerfile/ (stale since 2020)
  • Removed monitor_version_scripts/ (superseded by build/tools/Automation/)
  • Removed tests/images/ and tests/testRepo.sh
  • Removed doc/buildpack.md, build/release.txt

Commit 3: Fix stale references to deleted files

  • build/__variables.sh: removed 15 unused Dockerfile path variables and 3 stale ACR image names pointing to non-existent files
  • doc/architecture.md: replaced ~80 lines of broken Dockerfile links with pointers to actual directories
  • doc/base_images.md: removed broken githubRunner Dockerfile links and dead buildRunTimeImage.sh reference
  • README.md: removed broken buildBuildImages.sh reference
  • Oryx.sln: removed stale images\build\Dockerfile solution item
  • .dockerignore: removed stale vsts/ entry
  • DockerVolume.cs: updated comment referencing deleted vsts\scripts\
  • platforms/php: removed dead commented-out __phpVersions.sh references

Verification

Four verification passes were performed. Final pass confirmed:

  • All .md internal links resolve to existing files
  • Zero stale references to any deleted files/folders
  • All Oryx.sln project paths and solution items exist
  • All GH Actions workflow file references are valid
  • All build/__variables.sh path declarations point to existing files
  • All Dockerfile COPY/ADD sources are valid

Sarath chandra Bussa added 3 commits March 16, 2026 12:50
Audit findings:
- vsts/ folder: No ADO pipeline definitions point to GitHub Oryx's vsts/.
  All active ADO pipelines run against the internal AAPT-Antares-Oryx repo
  with OneBranch .pipelines/ YAML files. The entire vsts/ folder (66 files)
  is orphaned legacy code from the pre-OneBranch era.

- build/buildBuildImageBases.sh: Zero pipeline or workflow callers. Only
  referenced in (now-updated) documentation.

- build/buildBuildpacksImages.sh: Zero pipeline or workflow callers.
  Note: the buildpack CLI code in src/ and images/pack-builder/ are kept
  as they are part of the active product.

- .github/workflows/monitor-versions.yaml: Stub 'Hello World' placeholder
  that was never implemented. The corresponding ADO pipeline
  'Monitor-versions.yml' is also disabled (last run Oct 2024).

Fixes:
- Created build/generateConstants.sh which is referenced by the active
  automationTemplate.yaml GH Actions workflow but was missing from the repo.
  This script invokes SharedCodeGenerator to regenerate C#, Shell, and Go
  constant files from build/constants.yaml.

- Updated Oryx.sln to remove vsts solution folder references.
- Updated doc/architecture.md, doc/base_images.md, build/Readme.md to
  remove broken links and outdated vsts references.
- Fixed SharedCodeGenerator README path reference.

ADO pipeline status (AAPT-Antares-Oryx repo):
  Active: Buddy, Official, Publish-Binaries-Buddy, Publish-To-Prod,
          Publish-To-Stage, OryxTests
  Disabled: Antares-Oryx-Release-Binaries, Monitor-versions.yml,
            PRValidator (in \delete folder)
Root-level removals:
- CodeMaid.config: VS extension preference from 2019, no CI usage
- Detector.sln: Redundant (Oryx.sln already contains all its projects)
- CHANGELOG.md: Empty placeholder since 2019, never populated

Build script removals (all were only called from the deleted vsts/ pipelines):
- build/buildSln.sh: Trivial wrapper, unit-tests.yaml uses dotnet directly
- build/buildTestBuildImages.sh: Test image builder, no GH Actions caller
- build/testBuildScriptGenerator.sh: unit-tests.yaml handles this
- build/testIntegration.sh: ADO internal pipelines handle integration tests
- build/buildPlatformBinaries.sh: Zero references after vsts/ removal
- build/release.txt: Empty placeholder since 2019

Generated constant files with zero consumers:
- build/__dotNetCoreRunTimeVersions.sh: No file sources this
- build/__dotNetCoreSdkVersions.sh: No file sources this
- build/__phpVersions.sh: All references are commented out
- build/__functions.sh: Only caller was buildTestBuildImages.sh (removed)

Stale/superseded directories:
- actions/oryx-dockerfile/: GitHub Action untouched since 2020, references
  dead MCR image tag (cli-image-3-patch1) and @master (renamed to @main)
- monitor_version_scripts/: Superseded by build/tools/Automation/ (.NET tool
  running via automationTrigger.yaml GH Actions cron). The corresponding ADO
  pipeline Monitor-versions.yml has been disabled since Oct 2024.
- tests/images/build/: 4 Dockerfiles only consumed by the removed
  buildTestBuildImages.sh and dead __variables.sh entries

Other cleanups:
- Cleaned dead ORYXTESTS_* variables from build/__variables.sh
- Updated Oryx.sln: removed references to non-existent scripts (many were
  already missing from disk), added generateConstants.sh
- Removed doc/buildpack.md (7-year-old WIP stub with no real content)
Third-pass cleanup fixing broken references left after file removals:

- build/__variables.sh: remove 15 stale Dockerfile path variables and
  ACR image names pointing to non-existent files (Dockerfile,
  ltsVersions.Dockerfile, vso.*.Dockerfile, buildScriptGenerator,
  supportFiles, githubRunners.BuildPackDeps*, lts-versions/vso ACR names)
- doc/architecture.md: replace ~80 lines of broken Dockerfile links
  (ltsVersions.Dockerfile deleted, Dockerfile->full.Dockerfile, stale
  runtime template references) with pointers to the actual directories
- doc/base_images.md: remove broken links to deleted githubRunner
  Dockerfiles and non-existent buildRunTimeImage.sh
- README.md: remove broken buildBuildImages.sh reference
- Oryx.sln: remove stale images\build\Dockerfile solution item
- .dockerignore: remove stale vsts/ entry
- DockerVolume.cs: update comment referencing deleted vsts\scripts\
- platforms/php: remove dead commented-out __phpVersions.sh references
@CodingIsBliss CodingIsBliss requested a review from a team as a code owner March 16, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant