Skip to content

Conversation

@AlexSkrypnyk
Copy link
Member

@AlexSkrypnyk AlexSkrypnyk commented Nov 17, 2025

Closes #1456

Summary by CodeRabbit

  • Chores
    • Adjusted the global deployment artifact builder to use a narrower, newer version range to align with expected behavior and improvements.
  • Tests
    • Updated unit tests for the deployment flow to reflect the revised artifact builder version constraint.

@coderabbitai
Copy link

coderabbitai bot commented Nov 17, 2025

Walkthrough

Updated the git-artifact version constraint from ^1 to ~1.1 in the artifact deployment script and adjusted the unit test expectation to match the new constraint.

Changes

Cohort / File(s) Summary
Dependency version constraint update
scripts/vortex/deploy-artifact.sh
Changed composer global require from drevops/git-artifact:^1 to drevops/git-artifact:~1.1, narrowing the resolved version range to 1.1.x.
Test expectation update
.vortex/tests/bats/unit/deploy-artifact.bats
Updated test to expect drevops/git-artifact:~1.1 instead of drevops/git-artifact:^1. No logic or flow changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Single-line dependency version change and corresponding test update; review for correct version syntax and CI passing.

Suggested labels

Confirmed

Poem

🐰 A tiny tweak, a gentle nudge,
From caret wild to tilde's grudge,
Versions locked to one-one-crew,
Deploys hop safe — a patch or two! 🥕

Pre-merge checks and finishing touches

✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly references issue #1456 and accurately describes the main change: pinning the git-artifact tool to a stable minor version (~1.1 instead of ^1).
Linked Issues check ✅ Passed The PR changes the git-artifact version constraint from ^1 to ~1.1, which targets issue #1456 about artifact deployment failures when branches no longer exist by using a stable minor version.
Out of Scope Changes check ✅ Passed All changes are directly related to resolving issue #1456: updating version constraints in deployment script and corresponding test expectations.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/1456-pin-git-artifact-to-tilde

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

@codecov
Copy link

codecov bot commented Nov 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.02%. Comparing base (de4b6a3) to head (59576c5).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2102   +/-   ##
========================================
  Coverage    70.02%   70.02%           
========================================
  Files           97       97           
  Lines         4898     4898           
  Branches        44       44           
========================================
  Hits          3430     3430           
  Misses        1468     1468           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@AlexSkrypnyk AlexSkrypnyk force-pushed the feature/1456-pin-git-artifact-to-tilde branch from 7d88b90 to 59576c5 Compare November 17, 2025 09:01
@github-actions github-actions bot temporarily deployed to commit November 17, 2025 09:04 Inactive
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: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7d88b90 and 59576c5.

📒 Files selected for processing (2)
  • .vortex/tests/bats/unit/deploy-artifact.bats (1 hunks)
  • scripts/vortex/deploy-artifact.sh (1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-08-08T12:02:24.652Z
Learnt from: AlexSkrypnyk
Repo: drevops/vortex PR: 1896
File: .vortex/tests/bats/unit/download-db-lagoon.bats:24-25
Timestamp: 2025-08-08T12:02:24.652Z
Learning: In .vortex/tests/bats/unit Bats tests using ../_helper.bash (run_steps), prefixing a STEPS entry with "- " denotes a negative assertion (the substring must NOT appear in output). Unprefixed entries are positive assertions. Example: "- Database dump refresh requested. Will create a new dump." asserts absence; "Database dump refresh requested. Will create a new dump." asserts presence.

Applied to files:

  • .vortex/tests/bats/unit/deploy-artifact.bats
📚 Learning: 2025-07-23T01:16:30.963Z
Learnt from: AlexSkrypnyk
Repo: drevops/vortex PR: 1816
File: .docker/cli.dockerfile:72-76
Timestamp: 2025-07-23T01:16:30.963Z
Learning: In the Vortex project, unauthenticated Composer installs should be allowed, so GitHub token secrets should not be marked as `required=true` in Docker build mounts. The conditional check `if [ -s /run/secrets/github_token ]` is the preferred approach to allow builds to proceed without a token when needed.

Applied to files:

  • scripts/vortex/deploy-artifact.sh
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
  • GitHub Check: build (1)
  • GitHub Check: build (0)
  • GitHub Check: vortex-test-workflow (2)
  • GitHub Check: vortex-test-common
  • GitHub Check: vortex-test-workflow (4)
  • GitHub Check: vortex-test-workflow (3)
  • GitHub Check: vortex-test-workflow (1)
  • GitHub Check: vortex-test-workflow (0)
  • GitHub Check: vortex-test-installer (8.4)
  • GitHub Check: vortex-test-installer (8.3)
  • GitHub Check: vortex-test-docs
🔇 Additional comments (1)
.vortex/tests/bats/unit/deploy-artifact.bats (1)

103-103: LGTM! Test expectation updated to match implementation.

The test expectation has been correctly updated from git-artifact:^1 to git-artifact:~1.1, maintaining consistency with the implementation change in scripts/vortex/deploy-artifact.sh line 82.


task "Installing artifact builder."
composer global require --dev -n --ansi --prefer-source --ignore-platform-reqs drevops/git-artifact:^1
composer global require --dev -n --ansi --prefer-source --ignore-platform-reqs drevops/git-artifact:~1.1
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Verify that git-artifact version 1.1.x exists and addresses the upstream issue.

The version constraint change from ^1 to ~1.1 is more restrictive and pins to the 1.1.x minor version. Please confirm that:

  1. Version 1.1.x of drevops/git-artifact exists and is stable
  2. It specifically addresses the branch deletion issue mentioned in upstream issue Fixed composer config + updates. #92
  3. There are no breaking changes or compatibility concerns between 1.0.x and 1.1.x

🏁 Script executed:

#!/bin/bash
# Check available versions of drevops/git-artifact on Packagist
curl -s https://repo.packagist.org/p2/drevops/git-artifact.json | jq -r '.packages["drevops/git-artifact"] | keys[]' | sort -V | tail -10

Length of output: 29


🌐 Web query:

Does drevops/git-artifact version 1.1 fix the issue where artifact deployment fails when the source branch no longer exists?

💡 Result:

Short answer: No — there is no drevops/git-artifact 1.1 release, so it cannot have fixed that bug.

Evidence:

  • Packagist lists available versions and shows 1.0.0 as the latest release (no 1.1). [1]
  • The project's GitHub repository is active (source/ tags) but no 1.1 release is published. [2]

If you want, I can: (a) search the repo issues/pull-requests for that specific "source branch no longer exists" failure and report whether a fix/PR exists, or (b) show how to work around the problem in CI.


Version constraint references non-existent release; composer install will fail.

The version constraint change to ~1.1 references a release that does not exist. Version 1.1 is not available on Packagist, with 1.0.0 being the latest release. The ~1.1 constraint will cause composer to fail during installation.

Update the constraint to target an existing version (e.g., ^1.0 for 1.0.0) or wait for an actual 1.1.x release before merging this change.

🤖 Prompt for AI Agents
In scripts/vortex/deploy-artifact.sh around line 82, the composer version
constraint uses ~1.1 which references a non-existent release and will cause
composer to fail; change the constraint to an existing version such as ^1.0 (or
the exact 1.0.0) so composer can install successfully, e.g., replace ~1.1 with
^1.0 (or pin 1.0.0) before merging.

@AlexSkrypnyk AlexSkrypnyk merged commit 4c4d264 into develop Nov 17, 2025
28 checks passed
@AlexSkrypnyk AlexSkrypnyk deleted the feature/1456-pin-git-artifact-to-tilde branch November 17, 2025 09:20
@github-project-automation github-project-automation bot moved this from BACKLOG to Release queue in Vortex Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Released in 1.34.0

Development

Successfully merging this pull request may close these issues.

Artifact deployment fails the CI job if the branch no longer exists.

2 participants