[AAP-73775] Add Hub to DAB consumers#986
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds a new GitHub Actions job Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ba6f429 to
f634f0f
Compare
a057f59 to
5111749
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/dab-consumers.yml:
- Around line 118-121: Remove the trailing space from the checkout path value
used with uses: actions/checkout@v4 — locate the step that sets path:
django-ansible-base (currently with a trailing space) and change it to path:
django-ansible-base so the checked-out directory name has no trailing whitespace
and sibling lookups (e.g., ../django-ansible-base) work correctly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Enterprise
Run ID: 8334256e-24bd-48f2-9cc7-955f6fdc49b5
📒 Files selected for processing (1)
.github/workflows/dab-consumers.yml
john-westcott-iv
left a comment
There was a problem hiding this comment.
📋 Code Review Summary
This PR adds a Hub (galaxy_ng) job to the dab-consumers workflow. However, the job has a critical gap: it never installs the local DAB checkout into the Hub test environment, meaning it tests against whatever DAB version galaxy_ng pins internally — not the current DAB commit.
Files Reviewed: 1 file
Comments Posted: 3 review comments
🔍 Issues Found
- 0 security/safety issues
- 1 correctness/logic issue (DAB not installed — defeats purpose of workflow)
- 2 code quality suggestions (missing EOF newline, SHA pinning)
Overall Assessment
Needs fix — The missing DAB installation is a blocking issue. Without it, this job does not accomplish what the dab-consumers workflow is designed to do (test current DAB against downstream consumers). Both AWX and EDA-server jobs explicitly install the local DAB; Hub needs to do the same.
General Feedback
- The job structure follows the existing pattern well (checkout DAB, checkout consumer, setup Python, run tests)
- Just needs the DAB installation step before running tox
- Consider SHA-pinning actions per the direction set in PR #987
john-westcott-iv
left a comment
There was a problem hiding this comment.
Approving with comments — please address the inline feedback (especially the DAB installation gap and missing EOF newline) before merging.
0d86b33 to
57a7062
Compare
|
confirming in ae94548 that Hub installs custom local DAB and that the galaxy_ng is using latest DAB commit |
57a7062 to
c56e0e2
Compare
|
Sonarcloud still complains with I'm inclined to mark this as false positive or safe |
john-westcott-iv
left a comment
There was a problem hiding this comment.
Re-Review Summary
Re-reviewing after updates. All previous comments have been addressed.
Files Reviewed: 1 file
Comments Posted: 0 new inline comments
Previous Comments Status
-
DAB installation gap (critical) — Resolved. The approach now uses
DJANGO_ANSIBLE_BASE_BRANCH: ${{ github.sha }}to pass the current DAB commit to galaxy_ng'ssetup.py, which installs DAB from that SHA. Author confirmed it works via CI run (ae94548). Companion galaxy_ng PR #474 is merged. -
Missing EOF newline — Resolved. Trailing newline is now present.
-
SHA pinning for actions — Acknowledged. Author clarified the team decision is to only pin SHAs for unofficial actions.
actions/checkoutandactions/setup-pythonare official GitHub actions.
SonarCloud Issue
The SonarCloud "C Security Rating" failure is about pip install --only-binary ':all:' tox==4.53.0 flagged as "Using dependencies without locking." This is a false positive — the version IS pinned to an exact version, and --only-binary prevents source builds. This is a standard CI pattern. Agree with the author that this should be marked safe in SonarCloud.
Overall Assessment
LGTM — Previous blocking concerns addressed. Approval stands.
|
|
DVCS PR Check Results: Could not find JIRA key(s) in PR title, branch name, or commit messages |



Description
Issue: https://redhat.atlassian.net/browse/AAP-73775
DAB consumers are missing Hub. This adds Hub to the list and runs unit test with current DAB.
How it works
galaxy_ngintohub/directorytox -e py312from thehub/directory withDJANGO_ANSIBLE_BASE_BRANCH: ${{ github.sha }}- latest commit on the branchsetup.pyreads theDJANGO_ANSIBLE_BASE_BRANCHenv var to determine which DAB commit toinstall:
pip install -e .(galaxy_ng) fetches and installs this PR'sversion of DAB directly instead of the default pinned commit
changes before they're merged
Requires https://github.com/ansible-automation-platform/galaxy_ng/pull/474 (done)
Type of Change
Self-Review Checklist
Summary by CodeRabbit