Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .earthlyignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ search
stargate
wallets
webhooks
transaction-plane

# Operator tooling
components/operator/bin
3 changes: 3 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ github:
'ee/reconciliation':
- changed-files:
- any-glob-to-any-file: "ee/reconciliation/*"
'ee/transaction-plane':
- changed-files:
- any-glob-to-any-file: "ee/transaction-plane/*"
2 changes: 2 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ARG SEARCH_VERSION=v2.1.0
ARG ORCHESTRATION_VERSION=v2.4.0
ARG RECONCILIATION_VERSION=v2.2.1
ARG GATEWAY_VERSION=v2.1.0
ARG TRANSACTION_PLANE_VERSION=v0.2.0
Copy link
Contributor

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

🏁 Script executed:

#!/bin/bash
# Verify that the transaction-plane v0.2.0 release exists
# Check the HTTP status of the release download URL

# Try to get the release information via GitHub API
curl -s "https://api.github.com/repos/formancehq/transaction-plane/releases/tags/v0.2.0" | head -n 50

Repository: formancehq/stack

Length of output: 206


🏁 Script executed:

#!/bin/bash
# List available releases for transaction-plane
curl -s "https://api.github.com/repos/formancehq/transaction-plane/releases" | jq '.[] | {tag_name, published_at}' | head -50

Repository: formancehq/stack

Length of output: 128


🏁 Script executed:

#!/bin/bash
# Check the raw API response for releases
curl -s "https://api.github.com/repos/formancehq/transaction-plane/releases" | head -100

Repository: formancehq/stack

Length of output: 194


🏁 Script executed:

#!/bin/bash
# Check if the repository exists at all
curl -s "https://api.github.com/repos/formancehq/transaction-plane" | head -50

Repository: formancehq/stack

Length of output: 191


🏁 Script executed:

#!/bin/bash
# Search for transaction-plane in formancehq organization
curl -s "https://api.github.com/search/repositories?q=transaction-plane+org:formancehq" | jq '.items[].full_name'

Repository: formancehq/stack

Length of output: 42


🏁 Script executed:

#!/bin/bash
# Check the Earthfile context - look for other references to understand the pattern
git ls-files | grep -i earthfile | head -5

Repository: formancehq/stack

Length of output: 86


🏁 Script executed:

#!/bin/bash
# Read the main Earthfile to understand the context
cat -n Earthfile | head -30

Repository: formancehq/stack

Length of output: 968


🏁 Script executed:

#!/bin/bash
# Search for how TRANSACTION_PLANE_VERSION is used in the codebase
rg "TRANSACTION_PLANE_VERSION" -A 2 -B 2

Repository: formancehq/stack

Length of output: 742


🏁 Script executed:

#!/bin/bash
# Search for any other references to transaction-plane in the codebase
rg "transaction-plane" -i

Repository: formancehq/stack

Length of output: 422


The transaction-plane repository does not exist on GitHub. The Earthfile references a non-existent release at line 15. The build will fail when attempting to download openapi.yaml from https://github.com/formancehq/transaction-plane/releases/download/v0.2.0/openapi.yaml. Verify that the repository has been created and the v0.2.0 release exists before merging.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Earthfile` at line 15, The Earthfile uses ARG
TRANSACTION_PLANE_VERSION=v0.2.0 which points to a non-existent GitHub release
and causes the openapi.yaml download to fail; update the
TRANSACTION_PLANE_VERSION value to a valid existing release tag or change the
download URL to the correct repository/release, or remove/guard the download
step that fetches
https://github.com/formancehq/transaction-plane/releases/download/${TRANSACTION_PLANE_VERSION}/openapi.yaml;
verify the target repository and release exist before committing and ensure the
updated TRANSACTION_PLANE_VERSION is referenced consistently wherever used.


sources:
FROM core+base-image
Expand Down Expand Up @@ -43,6 +44,7 @@ build-final-spec:
RUN curl -L https://github.com/formancehq/wallets/releases/download/${WALLETS_VERSION}/openapi.yaml -o wallets.openapi.yaml
RUN curl -L https://github.com/formancehq/reconciliation/releases/download/${RECONCILIATION_VERSION}/openapi.yaml -o reconciliation.openapi.yaml
RUN curl -L https://github.com/formancehq/flows/releases/download/${ORCHESTRATION_VERSION}/openapi.yaml -o orchestration.openapi.yaml
RUN curl -L https://github.com/formancehq/transaction-plane/releases/download/${TRANSACTION_PLANE_VERSION}/openapi.yaml -o transaction-plane.openapi.yaml

WORKDIR /src/releases
RUN npm run build
Expand Down
4 changes: 4 additions & 0 deletions releases/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ tags:
- name: search.v1
- name: webhooks.v1
- name: wallets.v1
- name: transaction-plane.v1

components:
securitySchemes:
Expand Down Expand Up @@ -97,3 +98,6 @@ x-tagGroups:
- name: Reconciliation
tags:
- reconciliation.v1
- name: TransactionPlane
tags:
- transaction-plane.v1
9 changes: 9 additions & 0 deletions releases/openapi-merge.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,15 @@
"dispute": {
"prefix": "reconciliation"
}
},
{
"inputFile": "./../components/transaction-plane.openapi.yaml",
"pathModification": {
"prepend": "/api/transactionplane"
},
"dispute": {
"prefix": "transactionplane"
}
}
],
"output": "./build/generate.json"
Expand Down