-
Notifications
You must be signed in to change notification settings - Fork 43
setup_gitea | Mirror all branches from reference repository #690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
from change #690:
|
1 similar comment
|
from change #690:
|
📝 WalkthroughWalkthroughThe Gitea setup role was updated to push all branches to the Gitea server instead of a single branch. The Changes
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
1777098 to
deca425
Compare
|
from change #690:
|
1 similar comment
|
from change #690:
|
|
Build succeeded. ✔️ dci-rpm-build-el8 SUCCESS in 2m 48s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🔭 Outside diff range comments (1)
roles/setup_gitea/tasks/install.yml (1)
164-168:⚠️ Potential issueAvoid exposing credentials in the command and hard-coded paths
Passing user credentials directly in the URL can leak secrets (even withno_log) and pinning/usr/bin/gitmay not work on all hosts. Consider:
- Using Ansible’s
gitmodule with credentials handled via a credential helper ornetrc.- Removing the absolute path so it picks up
gitfrom the environment’sPATH.- Letting failures surface (remove
changed_when: false) and usefailed_whento catch errors.Let me know if you’d like a secure pattern example for credentials and error handling.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
roles/setup_gitea/README.md(0 hunks)roles/setup_gitea/defaults/main.yml(0 hunks)roles/setup_gitea/tasks/install.yml(1 hunks)
💤 Files with no reviewable changes (2)
- roles/setup_gitea/defaults/main.yml
- roles/setup_gitea/README.md
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Sanity Check (stable-2.17)
deca425 to
17b91ca
Compare
|
from change #690:
|
1 similar comment
|
from change #690:
|
|
Build succeeded. ✔️ dci-rpm-build-el8 SUCCESS in 2m 45s |
17b91ca to
6adabdf
Compare
|
from change #690:
|
1 similar comment
|
from change #690:
|
|
Build succeeded. ✔️ dci-rpm-build-el8 SUCCESS in 2m 45s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
roles/setup_gitea/tasks/install.yml (1)
172-176: Ensure cleanup always runs even on failures
The mirror temp directory is removed only after a successful push. If the push fails, the cleanup task will be skipped, leaving stray directories. Wrap the mirror‐clone/push steps in ablockwith analwayssection to guarantee cleanup:- block: # clone, remote add, push tasks… always: - name: Clean mirror temp dir ansible.builtin.file: path: "{{ _sg_mirror_repo.path }}" state: absent
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
roles/setup_gitea/README.md(0 hunks)roles/setup_gitea/defaults/main.yml(0 hunks)roles/setup_gitea/tasks/cleanup.yml(0 hunks)roles/setup_gitea/tasks/install.yml(1 hunks)
💤 Files with no reviewable changes (3)
- roles/setup_gitea/defaults/main.yml
- roles/setup_gitea/tasks/cleanup.yml
- roles/setup_gitea/README.md
🔇 Additional comments (1)
roles/setup_gitea/tasks/install.yml (1)
158-158: Verify correct branch used for mirror clone
The clone task now usesversion: "{{ sg_repo_branch }}". Ensuresg_repo_branchaccurately reflects the reference repository’s default branch and is always set whensg_repo_mirror_urlis provided.
|
This is ready for review |
|
retest |
|
from change #690:
|
1 similar comment
|
from change #690:
|
SUMMARY
ISSUE TYPE
Tests
Test-Hints: no-check