Skip to content

fix: [AH-6078]: reject unknown migrate config keys, apply PUPPET/DEBIAN patterns, warn on CONDA date filters - #411

Open
sameeksha-harness wants to merge 3 commits into
harness:mainfrom
sameeksha-harness:fix/har-migrate-config-validation
Open

sameeksha-harness wants to merge 3 commits into
harness:mainfrom
sameeksha-harness:fix/har-migrate-config-validation

Conversation

@sameeksha-harness

@sameeksha-harness sameeksha-harness commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Fixes the 2 issues in migrate command listed below:

  • unknown config keys are silently accepted. A misspelled key in the migration config, such as includePattern instead of includePatterns, was ignored, so a narrowed migration turned into a migrate-everything run. Include/exclude patterns on PUPPET and DEBIAN were also accepted by validation but then ignored by the engine.

  • date filters can under-migrate index-seeded types. With a dateFilter, CONDA finds packages through repodata.json, which the date filter can drop. In-range packages can then be missed while the run still reports success.

@mohitsuman

Copy link
Copy Markdown
Collaborator

cosmos review

@augmentcode augmentcode Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deep Code Review Agent🐛

Review completed with 1 suggestion.

Reviewed commit: bd63990

default:
return false
}
return types.IsPackageLevelPatternFilterable(artifactType)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deep Code Review Agent🐛

Enabling the DEBIAN package-level path makes FilterFilesByPatternsPackageName match against pkg.Name, but extractDebianPackages and extractDebianSourcePackages populate that field with archive basenames such as nginx_1.24.0-1_amd64.deb and nginx_1.24.0-1.dsc, not the Debian package name. Consequently, includePatterns: [nginx] now silently migrates nothing, while excludePatterns: [nginx] leaves every nginx version eligible, contrary to the documented package-name filtering.

Severity: medium


🤖 Was this useful? React with 👍 or 👎

@mohitsuman

Copy link
Copy Markdown
Collaborator

cosmos review

@augmentcode augmentcode Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deep Code Review Agent🐛

Review completed with 0 suggestions.

Reviewed commit: bd63990

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.

3 participants