Skip to content

Added a fix for DCO failure#1675

Merged
aayushchouhan09 merged 1 commit intonoobaa:masterfrom
aayushchouhan09:dco-fix
Aug 14, 2025
Merged

Added a fix for DCO failure#1675
aayushchouhan09 merged 1 commit intonoobaa:masterfrom
aayushchouhan09:dco-fix

Conversation

@aayushchouhan09
Copy link
Member

@aayushchouhan09 aayushchouhan09 commented Aug 14, 2025

Explain the changes

  1. Commit did not have a sign-off signature which is failing DCO.

Issues: Fixed #xxx / Gap #xxx

  1. Added the -s flag to the commit command to include a sign-off.
  2. Fixed Gap:
    Added github workflow to automatic update noobaa-core image tag #1642
    Added monthly scheduling and automation of container image tag #1658

Testing Instructions:

  1. Run the workflow.

Summary by CodeRabbit

  • Chores
    • Continuous integration now appends a Signed-off-by line to automated commits generated by the workflow.
    • This change standardizes commit metadata for automated updates.
    • No impact on application features, behavior, or performance.
    • Public APIs and user-facing functionality remain unchanged.
    • Build, test, and release processes continue to operate as before.

Signed-off-by: Aayush Chouhan <achouhan@redhat.com>
@coderabbitai
Copy link

coderabbitai bot commented Aug 14, 2025

Walkthrough

The GitHub Actions workflow .github/workflows/update-noobaa-core-tag.yml was updated to add the -s flag to the git commit command, ensuring commits are signed off. No other steps or control flow were changed.

Changes

Cohort / File(s) Summary
GitHub Actions workflow
.github/workflows/update-noobaa-core-tag.yml
Changed git commit invocation from git commit -m to git commit -s -m to include a Signed-off-by line; no other modifications.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested labels

size/M

Suggested reviewers

  • tangledbytes
  • liranmauda
  • dannyzaken
  • Neon-White

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
.github/workflows/update-noobaa-core-tag.yml (1)

49-56: Optionally verify the DCO sign-off before pushing.

A lightweight guard can prevent pushing if, for any reason, the sign-off is missing.

Apply this diff within the step to add a verification guard:

       git checkout -B update-core-tag-${{ steps.generate_tag.outputs.container_image_tag }}
       git add pkg/options/options.go
-      git commit -s -m "chore: update noobaa-core image tag to ${{ steps.generate_tag.outputs.container_image_tag }}"
+      git commit -s -m "chore: update noobaa-core image tag to ${{ steps.generate_tag.outputs.container_image_tag }}"
+      # Verify DCO sign-off is present
+      if ! git log -1 --pretty=%B | grep -qi '^Signed-off-by:'; then
+        echo "DCO sign-off not found; aborting push"
+        exit 1
+      fi
       git push origin update-core-tag-${{ steps.generate_tag.outputs.container_image_tag }}
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3f5f580 and ab5864b.

📒 Files selected for processing (1)
  • .github/workflows/update-noobaa-core-tag.yml (1 hunks)
🔇 Additional comments (1)
.github/workflows/update-noobaa-core-tag.yml (1)

55-55: Sign-off added to commit resolves DCO failure.

Adding -s ensures a proper "Signed-off-by" trailer matching the configured bot identity, which should satisfy DCO checks.

@aayushchouhan09 aayushchouhan09 merged commit de1d328 into noobaa:master Aug 14, 2025
16 checks passed
@aayushchouhan09 aayushchouhan09 deleted the dco-fix branch August 14, 2025 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants