Skip to content

Add deploy markers configuration#22

Merged
LCSOGthb merged 1 commit into
mainfrom
deploy-markers-setup
Apr 5, 2026
Merged

Add deploy markers configuration#22
LCSOGthb merged 1 commit into
mainfrom
deploy-markers-setup

Conversation

@LCSOGthb

@LCSOGthb LCSOGthb commented Apr 5, 2026

Copy link
Copy Markdown
Owner

This PR adds Deploy Markers to your CircleCI configuration. Deploy Markers enable CircleCI to automatically track when deployments happen in your pipelines, giving you:

  • Deployment visibility in the CircleCI UI
  • Deployment frequency and success metrics
  • Better insights into your release pipeline
  • Integration with deployment tracking features
    Learn more about Deploy Markers in our documentation.

@vercel

vercel Bot commented Apr 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
airmerge Error Error Apr 5, 2026 9:46am

@LCSOGthb LCSOGthb merged commit 844988e into main Apr 5, 2026
9 of 19 checks passed
@LCSOGthb LCSOGthb deleted the deploy-markers-setup branch April 5, 2026 09:46
@coderabbitai

coderabbitai Bot commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: c298c0ec-3955-499c-b64c-6cba158f501c

📥 Commits

Reviewing files that changed from the base of the PR and between 40ecfae and a1027b9.

📒 Files selected for processing (1)
  • .circleci/config.yml

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Enhanced deployment automation with improved release planning and status monitoring, providing better visibility and reliability throughout the deployment process.

Walkthrough

The deploy job in CircleCI configuration now includes Release workflow automation. It adds a planning step using circleci run release plan and replaces simple deployment messaging with status tracking steps (RUNNING, SUCCESS, FAILED) via circleci run release update.

Changes

Cohort / File(s) Summary
CircleCI Release Workflow Integration
.circleci/config.yml
Added "Plan deployment" step with circleci run release plan and post-deployment status updates via circleci run release update to manage deployment state transitions (RUNNING, SUCCESS, FAILED), replacing previous simple deployment output.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 A deployment plan, so grand and true,
CircleCI's Release comes into view!
From RUNNING to SUCCESS, the status flows,
Watch the pipeline dance as the version grows! ✨

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch deploy-markers-setup

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@deepsource-io

deepsource-io Bot commented Apr 5, 2026

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 40ecfae...a1027b9 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
Ruby Apr 5, 2026 9:46a.m. Review ↗
Rust Apr 5, 2026 9:46a.m. Review ↗
JavaScript Apr 5, 2026 9:46a.m. Review ↗
Scala Apr 5, 2026 9:46a.m. Review ↗
Shell Apr 5, 2026 9:46a.m. Review ↗
Secrets Apr 5, 2026 9:46a.m. Review ↗
Terraform Apr 5, 2026 9:46a.m. Review ↗
Swift Apr 5, 2026 9:46a.m. Review ↗
SQL Apr 5, 2026 9:46a.m. Review ↗
Test coverage Apr 5, 2026 9:46a.m. Review ↗
C & C++ Apr 5, 2026 9:46a.m. Review ↗
C# Apr 5, 2026 9:46a.m. Review ↗
Ansible Apr 5, 2026 9:46a.m. Review ↗

@sonarqubecloud

sonarqubecloud Bot commented Apr 5, 2026

Copy link
Copy Markdown

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes. Give us feedback

@codacy-production codacy-production Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

While this PR successfully introduces the structure for CircleCI Deploy Markers, the implementation contains a significant logic error regarding the sequence of the deployment job steps. Currently, the 'RUNNING' status is signaled after the deployment has already completed, which invalidates deployment duration metrics and risks missing the status update entirely if the deployment fails.

Although Codacy analysis indicates the changes are technically 'Up to Standards', these logic issues and the use of hardcoded environment variables should be addressed before merging to ensure the deployment markers provide accurate data across different environments.

About this PR

  • The environment name in the 'Plan deployment' step is hardcoded to 'default'. This may cause conflicts or inaccurate reporting in multi-environment setups (e.g., staging vs production). Consider using an environment variable like $CIRCLE_BRANCH or a custom parameter for this value.

Test suggestions

  • Verify 'release plan' step correctly interpolates environment variables for version and component.
  • Verify status is updated to SUCCESS when the 'Deploy' step succeeds.
  • Verify status is updated to FAILED when the 'Deploy' step fails.
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify 'release plan' step correctly interpolates environment variables for version and component.
2. Verify status is updated to SUCCESS when the 'Deploy' step succeeds.
3. Verify status is updated to FAILED when the 'Deploy' step fails.

🗒️ Improve review quality by adding custom instructions

Comment thread .circleci/config.yml
- run:
name: Deploy
command: echo "Deploying application..."
- run:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 MEDIUM RISK

The 'Update deployment status to running' step is currently positioned after the 'Deploy' step. This means the deployment will only be marked as 'RUNNING' after the command has already finished. Furthermore, if the 'Deploy' step fails, the 'RUNNING' status will never be recorded, causing the release to jump from 'PLANNED' to 'FAILED'. Move this step to occur immediately after 'Plan deployment' but before the 'Deploy' step.

Try running the following prompt in your coding agent:

Move the 'Update deployment status to running' step in .circleci/config.yml to occur after 'Plan deployment' but before the 'Deploy' step.

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