Skip to content

Conversation

@red-hat-konflux
Copy link
Contributor

@red-hat-konflux red-hat-konflux bot commented Sep 6, 2025

This PR contains the following updates:

Package Change
quay.io/redhat-appstudio-tekton-catalog/task-buildah → quay.io/konflux-ci/tekton-catalog/task-buildah 0.2 -> 0.2
quay.io/redhat-appstudio-tekton-catalog/task-clair-scan → quay.io/konflux-ci/tekton-catalog/task-clair-scan 0.1 -> 0.1
quay.io/redhat-appstudio-tekton-catalog/task-clamav-scan → quay.io/konflux-ci/tekton-catalog/task-clamav-scan 0.1 -> 0.1
quay.io/redhat-appstudio-tekton-catalog/task-deprecated-image-check → quay.io/konflux-ci/tekton-catalog/task-deprecated-image-check 0.4 -> 0.4
quay.io/redhat-appstudio-tekton-catalog/task-git-clone → quay.io/konflux-ci/tekton-catalog/task-git-clone 0.1 -> 0.1
quay.io/redhat-appstudio-tekton-catalog/task-init → quay.io/konflux-ci/tekton-catalog/task-init 0.2 -> 0.2
quay.io/redhat-appstudio-tekton-catalog/task-inspect-image → quay.io/konflux-ci/tekton-catalog/task-inspect-image 0.1 -> 0.1
quay.io/redhat-appstudio-tekton-catalog/task-prefetch-dependencies → quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies 0.1 -> 0.1
quay.io/redhat-appstudio-tekton-catalog/task-sast-snyk-check → quay.io/konflux-ci/tekton-catalog/task-sast-snyk-check 0.2 -> 0.2
quay.io/redhat-appstudio-tekton-catalog/task-show-sbom → quay.io/konflux-ci/tekton-catalog/task-show-sbom 0.1 -> 0.1
quay.io/redhat-appstudio-tekton-catalog/task-source-build → quay.io/konflux-ci/tekton-catalog/task-source-build 0.1 -> 0.1
quay.io/redhat-appstudio-tekton-catalog/task-summary → quay.io/konflux-ci/tekton-catalog/task-summary 0.2 -> 0.2

This is a special PR that replaces quay.io/redhat-appstudio-tekton-catalog/task-buildah with the community suggested minimal stable replacement version.

This is a special PR that replaces quay.io/redhat-appstudio-tekton-catalog/task-clair-scan with the community suggested minimal stable replacement version.

This is a special PR that replaces quay.io/redhat-appstudio-tekton-catalog/task-clamav-scan with the community suggested minimal stable replacement version.

This is a special PR that replaces quay.io/redhat-appstudio-tekton-catalog/task-deprecated-image-check with the community suggested minimal stable replacement version.

This is a special PR that replaces quay.io/redhat-appstudio-tekton-catalog/task-git-clone with the community suggested minimal stable replacement version.

This is a special PR that replaces quay.io/redhat-appstudio-tekton-catalog/task-init with the community suggested minimal stable replacement version.

This is a special PR that replaces quay.io/redhat-appstudio-tekton-catalog/task-inspect-image with the community suggested minimal stable replacement version.

This is a special PR that replaces quay.io/redhat-appstudio-tekton-catalog/task-prefetch-dependencies with the community suggested minimal stable replacement version.

This is a special PR that replaces quay.io/redhat-appstudio-tekton-catalog/task-sast-snyk-check with the community suggested minimal stable replacement version.

This is a special PR that replaces quay.io/redhat-appstudio-tekton-catalog/task-show-sbom with the community suggested minimal stable replacement version.

This is a special PR that replaces quay.io/redhat-appstudio-tekton-catalog/task-source-build with the community suggested minimal stable replacement version.

This is a special PR that replaces quay.io/redhat-appstudio-tekton-catalog/task-summary with the community suggested minimal stable replacement version.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

To execute skipped test pipelines write comment /ok-to-test.

This PR has been generated by MintMaker (powered by Renovate Bot).

markturansky and others added 10 commits July 11, 2025 16:51
* fixes concurrent map write in integration test

* Add core framework for shared microservice patterns

- Create pkg/core/ with generic CRUD services, DAOs, and controllers
- Implement type-safe operations using Go generics
- Add event-driven architecture with OnUpsert/OnDelete handlers
- Migrate database utilities (Model, CreateFK) to core framework
- Update existing components to use core Meta type
- Maintain backward compatibility with existing code
- Add comprehensive testing and documentation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
* Integrate rh-trex-core library for enhanced error handling and controller framework

- Migrate TRex to use external rh-trex-core library dependency
- Add enhanced error handling with PII sanitization and constraint detection
- Implement dual controller system (legacy + core) for seamless transition
- Update GORM postgres driver to v1.5.9 for compatibility
- Remove internal pkg/core/ directory (now external library)
- Update CLAUDE.md with comprehensive core library integration documentation
- Add settings.local.json to .gitignore

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

* Remove settings.local.json from repository tracking

- Remove .claude/settings.local.json from git tracking (should be ignored)
- File is already properly configured in .gitignore

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
)

- Add ProjectCamelCase field to generator for dynamic API method names
- Update test template to use {{.ProjectCamelCase}} instead of hardcoded "RhTrex"
- Fix clone command to preserve rh-trex-core imports during project cloning
- Add toCamelCase() helper function for proper name conversion

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <[email protected]>
* Fix clone command to preserve rh-trex-core library imports

Prevent replacement of rh-trex-core imports during cloning by adding
exclusion conditions to avoid breaking core library dependencies.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

* Fix TRex clone command to preserve rh-trex-core dependencies

- Modify clone logic to use line-by-line replacement that preserves any line containing "rh-trex-core"
- Prevents cloned projects from breaking due to incorrect core library dependency replacement
- Update CLAUDE.md with comprehensive clone command documentation including the fix details
- Verified: complete clone → build → database → test workflow now works end-to-end

Fixes issue where cloned projects would fail to build with "module not found" errors for transformed core library paths.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
- Add INSTANTAPI.md: Complete Instant API workflow documentation
- Add CLONING.md: TRex cloning knowledge base with bug fixes
- Add MODEL.md: UML modeling guidelines for business domains
- Fix generator service locator registration in scripts/generator.go
- Fix clone command self-corruption in cmd/trex/clone/cmd.go
- Update CLAUDE.md with comprehensive development guidelines
- Add integration test helper improvements in test/helper.go

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <[email protected]>
- Fix generator service locator pattern matching to use proper comment markers
- Add automatic route and migration registration with comment markers
- Restructure documentation: move running instructions to RUNNING.md
- Update NEWMODEL.md Rule 0 to make any test failure fatal
- Fix ASCII architecture diagram alignment issues

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <[email protected]>
* Clean up failed entity generation and fix generator bugs

- Remove FamousLandmarks and DogPark artifacts from service locators and migrations
- Fix generator route registration template bug
- Comment out flaky racing test without advisory lock
- Update documentation for automatic continuation rules

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

* Fix duplicate migration ID bug in generator

Resolves critical issue where generating multiple entities rapidly
creates identical migration timestamps, causing gormigrate failures
and blocking integration tests.

Changes:
- Add seconds and microseconds to migration timestamp format
- Prevents collision when generating multiple entities in same minute
- Maintains backward compatibility with existing migration format

Before: 202507172225 (minute precision, causes duplicates)
After: 20250717223411200051 (microsecond precision, always unique)

Fixes identified through ocmai clone testing where 5 entities
(Circus, Performer, Animal, Act, Show) all received timestamp
202507172225, causing "Duplicated migration ID" error.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
* Complete framework extraction Phase 1 to rh-trex-core library

This commit implements Phase 1 of the framework extraction plan outlined in EXTRACTION.md,
creating a shared rh-trex-core library to resolve clone self-sufficiency issues.

## Framework Extraction Changes:

### Core Library Integration:
- Add rh-trex-core dependency with local replace directive
- Implement adapter pattern in pkg/db/transactions.go for interface compatibility
- Update imports to use core library components (transaction, context, factories)

### TRex Updates:
- Maintain backward compatibility through adapter interfaces
- Update factory pattern to use core library KSUID generation
- Preserve existing functionality while enabling shared framework

### Test Entity Cleanup:
- Remove TestEntity references from presenters, routes, controllers
- Clean up OpenAPI specifications and regenerate
- Ensure clean build with make test passing

## Technical Achievements:

### Problem Solved:
- ✅ Clone self-sufficiency: Core database components now shared via rh-trex-core
- ✅ Consistent ID generation: KSUID factories shared across all projects
- ✅ Framework reusability: Critical components available for all TRex clones

### Validation Results:
- ✅ All unit tests pass (make test)
- ✅ OpenAPI generation successful
- ✅ Clone generation preserves core library dependencies
- ✅ Build compatibility maintained

## Next Steps:
- Phase 2: Extract auth, logging, and utility components
- Validate ocmai clone with updated framework
- Complete framework extraction as outlined in EXTRACTION.md

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

* Refactor cloning system to standalone script

Move clone command from trex binary to standalone cloner.go script. This prevents scripts from being included in cloned projects and provides cleaner separation.

Changes:
- Move cmd/trex/clone/cmd.go to scripts/cloner.go
- Remove clone command and imports from main.go
- Update CLAUDE.md documentation for new cloning approach
- Delete unused openapitools.json file
- Clean up service locator formatting in types.go

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

* Implement plugin architecture with auto-discovery service registry

Major refactor to consolidate entity logic into single plugin files with automatic framework registration. This eliminates manual framework editing when adding new entities and provides true drop-in functionality.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
* Complete framework extraction Phase 1 to rh-trex-core library

This commit implements Phase 1 of the framework extraction plan outlined in EXTRACTION.md,
creating a shared rh-trex-core library to resolve clone self-sufficiency issues.

- Add rh-trex-core dependency with local replace directive
- Implement adapter pattern in pkg/db/transactions.go for interface compatibility
- Update imports to use core library components (transaction, context, factories)

- Maintain backward compatibility through adapter interfaces
- Update factory pattern to use core library KSUID generation
- Preserve existing functionality while enabling shared framework

- Remove TestEntity references from presenters, routes, controllers
- Clean up OpenAPI specifications and regenerate
- Ensure clean build with make test passing

- ✅ Clone self-sufficiency: Core database components now shared via rh-trex-core
- ✅ Consistent ID generation: KSUID factories shared across all projects
- ✅ Framework reusability: Critical components available for all TRex clones

- ✅ All unit tests pass (make test)
- ✅ OpenAPI generation successful
- ✅ Clone generation preserves core library dependencies
- ✅ Build compatibility maintained

- Phase 2: Extract auth, logging, and utility components
- Validate ocmai clone with updated framework
- Complete framework extraction as outlined in EXTRACTION.md

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

* Refactor cloning system to standalone script

Move clone command from trex binary to standalone cloner.go script. This prevents scripts from being included in cloned projects and provides cleaner separation.

Changes:
- Move cmd/trex/clone/cmd.go to scripts/cloner.go
- Remove clone command and imports from main.go
- Update CLAUDE.md documentation for new cloning approach
- Delete unused openapitools.json file
- Clean up service locator formatting in types.go

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

* Enhance thread safety and service management patterns

- Add mutex protection to service registry and advisory locks
- Update plugin templates with improved service accessor patterns
- Clean up OpenAPI spec by removing test entity references
- Improve test framework to handle various field types properly

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

* Enhance TRex cloning and entity generation workflow

- Update INSTANTAPI.md with Phase 2 entity generation process
- Improve cloner.go with auto-detection and comprehensive replacements
- Add project auto-detection to generator.go with better UX feedback
- Ensure SQL-safe naming for database variables in clones

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
│                                                                                                                                                                                                                                                                                                                            │
│   Major improvements to TRex:                                                                                                                                                                                                                                                                                              │
│   - Reorganize scattered documentation into user-journey-based structure in /docs/                                                                                                                                                                                                                                         │
│   - Implement plugin architecture with auto-registration, eliminating manual service locator edits                                                                                                                                                                                                                         │
│   - Enhance entity generator with complete CRUD plugin generation                                                                                                                                                                                                                                                          │
│   - Improve cloning script for cleaner new project creation                                                                                                                                                                                                                                                                │
│   - Update CLAUDE.md with modern AI assistance patterns                                                                                                                                                                                                                                                                    │
│   - Add comprehensive guides for all user workflows                                                                                                                                                                                                                                                                        │
│                                                                                                                                                                                                                                                                                                                            │
│   The plugin architecture resolves previous service locator bugs and enables                                                                                                                                                                                                                                               │
│   atomic entity management. Documentation now follows progressive disclosure                                                                                                                                                                                                                                               │
│   with clear user paths from getting started to production deployment.                                                                                                                                                                                                                                                     │
│                                                                                                                                                                                                                                                                                                                            │
│   🤖 Generated with [Claude Code](https://claude.ai/code)                                                                                                                                                                                                                                                                  │
│                                                                                                                                                                                                                                                                                                                            │
│   Co-Authored-By: Claude <[email protected]>
@red-hat-konflux red-hat-konflux bot force-pushed the konflux/references-replacement/main branch from ef24528 to 0f407e6 Compare September 13, 2025 08:49
@red-hat-konflux red-hat-konflux bot force-pushed the konflux/references-replacement/main branch from 0f407e6 to faa26bb Compare September 27, 2025 08:45
redhat-appstudio-tekton-catalog is deprecated, replace the references
with equivalent konflux-ci/tekton-catalog references
@red-hat-konflux
Copy link
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

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