Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
7b98188
initial fix for no cqn error
PujaDeshmukh17 Jul 29, 2026
3726e23
Ut
PujaDeshmukh17 Jul 29, 2026
c34468e
Added logs
PujaDeshmukh17 Jul 30, 2026
167fdf5
Create action.yml
vibhutikumar07 Jul 21, 2026
b9ec0cf
Create deploy-central-snapshot.yml
vibhutikumar07 Jul 21, 2026
c0730ff
Remove artifact upload/download from snapshot workflow
vibhutikumar07 Jul 21, 2026
d329a04
Update pom.xml
vibhutikumar07 Jul 21, 2026
9a55a38
Add deploy-central-snapshot profile to sdm/pom.xml child module
vibhutikumar07 Jul 21, 2026
137f0ea
Updated the workflow
vibhutikumar07 Jul 29, 2026
959d010
Removed run on push
vibhutikumar07 Jul 29, 2026
91d5984
Fix snapshot deploy: disable central-publishing-plugin extension in d…
vibhutikumar07 Jul 30, 2026
d9d0327
Add push trigger for RBSDMS-NoCqnSnapshot-feature branch
vibhutikumar07 Jul 31, 2026
9eea686
updated snapshot version in pom to 1.9.3-SNAPSHOT
vibhutikumar07 Jul 31, 2026
89ecf74
Changes for no cqn error
PujaDeshmukh17 Aug 5, 2026
2150f03
Create attachment
PujaDeshmukh17 Aug 6, 2026
86af5d8
Adding more logs for debugging
PujaDeshmukh17 Aug 6, 2026
0bdd5b3
Update pom.xml
PujaDeshmukh17 Aug 7, 2026
1cfceff
sdm version update for integration tests
PujaDeshmukh17 Aug 7, 2026
f8bcdc7
Update pom.xml with sdm version
PujaDeshmukh17 Aug 10, 2026
8127aff
Change log for 1.9.3
PujaDeshmukh17 Aug 10, 2026
18e321d
Merge remote-tracking branch 'refs/remotes/origin/RBSDMS-NoCqnSnapsho…
PujaDeshmukh17 Aug 10, 2026
5cc28fc
Fix for isActiveEntity
PujaDeshmukh17 Aug 12, 2026
c2553ab
snapshot version
PujaDeshmukh17 Aug 12, 2026
c491a56
check for isActiveEntity
PujaDeshmukh17 Aug 12, 2026
9f29ba5
pom version for deploy
PujaDeshmukh17 Aug 12, 2026
e0390aa
snapshot pom version
PujaDeshmukh17 Aug 12, 2026
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
86 changes: 86 additions & 0 deletions .github/actions/deploy-central-snapshot/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: Deploy Snapshot to Central Portal
description: "Deploys a Maven SNAPSHOT package to Sonatype Central Portal Snapshots repository."

inputs:
user:
description: "Sonatype Central Portal username (same as Maven Central)"
required: true
password:
description: "Sonatype Central Portal password (same as Maven Central)"
required: true
pgp-pub-key:
description: "The public pgp key ID (optional for snapshots but recommended)"
required: false
pgp-private-key:
description: "The private pgp key (optional for snapshots but recommended)"
required: false
pgp-passphrase:
description: "The passphrase for pgp (optional for snapshots but recommended)"
required: false

runs:
using: composite
steps:
- name: "Setup Java"
uses: actions/setup-java@v4
with:
distribution: 'sapmachine'
java-version: '21'
cache: maven
server-id: central
server-username: CENTRAL_USER
server-password: CENTRAL_PASSWORD

- name: "Import GPG Key (if provided)"
if: ${{ inputs.pgp-private-key != '' }}
run: |
set +x
echo "::add-mask::$PGP_PRIVATE_KEY"
echo "::add-mask::$PASSPHRASE"
echo "$PGP_PRIVATE_KEY" | gpg --batch --passphrase "$PASSPHRASE" --import
shell: bash
env:
PGP_PRIVATE_KEY: ${{ inputs.pgp-private-key }}
PASSPHRASE: ${{ inputs.pgp-passphrase }}

- name: "Verify SNAPSHOT version"
run: |
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "Current version: $VERSION"
if [[ ! "$VERSION" == *-SNAPSHOT ]]; then
echo "Error: Version $VERSION is not a SNAPSHOT version!"
echo "Central Portal Snapshots repository only accepts SNAPSHOT versions."
exit 1
fi
echo "✅ Version $VERSION is a valid SNAPSHOT"
shell: bash

- name: "Deploy Snapshot to Central Portal"
run: |
set +x
echo "::add-mask::$CENTRAL_USER"
echo "::add-mask::$CENTRAL_PASSWORD"
[ -n "$GPG_PASSPHRASE" ] && echo "::add-mask::$GPG_PASSPHRASE"
[ -n "$GPG_PUB_KEY" ] && echo "::add-mask::$GPG_PUB_KEY"
echo "🚀 Deploying SNAPSHOT to Sonatype Central Portal..."
if [ -n "$GPG_PASSPHRASE" ] && [ -n "$GPG_PUB_KEY" ]; then
mvn -B -ntp --show-version \
-Dmaven.install.skip=true \
-Dmaven.test.skip=true \
-Dgpg.passphrase="$GPG_PASSPHRASE" \
-Dgpg.keyname="$GPG_PUB_KEY" \
clean deploy -P deploy-central-snapshot
else
mvn -B -ntp --show-version \
-Dmaven.install.skip=true \
-Dmaven.test.skip=true \
-Dgpg.skip=true \
clean deploy -P deploy-central-snapshot
fi
echo "✅ Snapshot deployed successfully!"
shell: bash
env:
CENTRAL_USER: ${{ inputs.user }}
CENTRAL_PASSWORD: ${{ inputs.password }}
GPG_PASSPHRASE: ${{ inputs.pgp-passphrase }}
GPG_PUB_KEY: ${{ inputs.pgp-pub-key }}
125 changes: 125 additions & 0 deletions .github/workflows/deploy-central-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
name: Deploy Snapshot to Central Portal

env:
JAVA_VERSION: '21'

on:
# Manual trigger - select any branch from GitHub UI
workflow_dispatch:
inputs:
sign_artifacts:
description: 'Sign artifacts with GPG'
required: false
default: 'true'
type: choice
options:
- 'true'
- 'false'

# Auto-trigger on push to testing branch
push:
branches:
- RBSDMS-NoCqnSnapshot-feature


permissions:
contents: read
packages: read

jobs:
verify-snapshot:
runs-on: ubuntu-latest
outputs:
is_snapshot: ${{ steps.check.outputs.is_snapshot }}
version: ${{ steps.check.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}
cache: maven

- name: Check version is SNAPSHOT
id: check
run: |
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "version=$VERSION" >> $GITHUB_OUTPUT
if [[ "$VERSION" == *-SNAPSHOT ]]; then
echo "is_snapshot=true" >> $GITHUB_OUTPUT
echo "✅ Version $VERSION is a SNAPSHOT"
else
echo "is_snapshot=false" >> $GITHUB_OUTPUT
echo "❌ Version $VERSION is NOT a SNAPSHOT - deployment will be skipped"
fi

build:
runs-on: ubuntu-latest
needs: verify-snapshot
if: needs.verify-snapshot.outputs.is_snapshot == 'true'
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}
cache: maven

- name: Build
run: |
echo "🔨 Building SNAPSHOT version: ${{ needs.verify-snapshot.outputs.version }}"
mvn clean install -P unit-tests -DskipIntegrationTests
echo "✅ Build completed successfully!"

deploy:
name: Deploy Snapshot to Central Portal
runs-on: ubuntu-latest
needs: [verify-snapshot, build]
if: needs.verify-snapshot.outputs.is_snapshot == 'true' && needs.build.result == 'success'
environment: maven-central
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Deploy Snapshot (with GPG signing)
if: github.event.inputs.sign_artifacts != 'false'
uses: ./.github/actions/deploy-central-snapshot
with:
user: ${{ secrets.CENTRAL_REPOSITORY_USER }}
password: ${{ secrets.CENTRAL_REPOSITORY_PASS }}
pgp-pub-key: ${{ secrets.PGP_PUB_KEY }}
pgp-private-key: ${{ secrets.PGP_PRIVATE_KEY }}
pgp-passphrase: ${{ secrets.PGP_PASSPHRASE }}

- name: Deploy Snapshot (without GPG signing)
if: github.event.inputs.sign_artifacts == 'false'
uses: ./.github/actions/deploy-central-snapshot
with:
user: ${{ secrets.CENTRAL_REPOSITORY_USER }}
password: ${{ secrets.CENTRAL_REPOSITORY_PASS }}

- name: Summary
if: success()
run: |
echo "## 🚀 Snapshot Deployed to Central Portal" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "**Version:** ${{ needs.verify-snapshot.outputs.version }}" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "**Repository:** https://central.sonatype.com/repository/maven-snapshots/" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Usage" >> $GITHUB_STEP_SUMMARY
echo '```xml' >> $GITHUB_STEP_SUMMARY
echo '<repositories>' >> $GITHUB_STEP_SUMMARY
echo ' <repository>' >> $GITHUB_STEP_SUMMARY
echo ' <id>central-snapshots</id>' >> $GITHUB_STEP_SUMMARY
echo ' <url>https://central.sonatype.com/repository/maven-snapshots/</url>' >> $GITHUB_STEP_SUMMARY
echo ' <snapshots><enabled>true</enabled></snapshots>' >> $GITHUB_STEP_SUMMARY
echo ' </repository>' >> $GITHUB_STEP_SUMMARY
echo '</repositories>' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
The format is based on [Keep a Changelog](http://keepachangelog.com/).

## Version 1.9.3

### Fixed
- Fix `Invalid CQN: Element 'SDM_READONLY_CONTEXT.uploadStatus' does not exist` error during `draftActivate` on deeply nested entities (5+ levels deep or entities with many compositions). The internal `SDM_READONLY_CONTEXT` wrapper key used to preserve `uploadStatus` across handler phases was being removed using plain `Map.values()` traversal, which cannot traverse all composition data in deeply nested CDS structures. The removal now uses `CdsDataProcessor` (the same model-driven traversal used when setting the key), ensuring the wrapper is correctly cleaned up regardless of entity depth or breadth.

## Version 1.9.2

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion app/single-tenant/personal-space/demoapp/db/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<dependency>
<groupId>com.sap.cds</groupId>
<artifactId>sdm</artifactId>
<version>1.0.0-RC1</version>
<version>1.9.4-SNAPSHOT</version>
</dependency>
</dependencies>

Expand Down
30 changes: 29 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</developers>

<properties>
<revision>1.9.2</revision>
<revision>1.9.4.1-SNAPSHOT</revision>
<java.version>17</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
Expand Down Expand Up @@ -346,6 +346,34 @@
</plugins>
</build>
</profile>
<profile>
<id>deploy-central-snapshot</id>
<!-- Override distributionManagement to use Central Portal snapshots -->
<distributionManagement>
<snapshotRepository>
<id>central</id>
<name>Sonatype Central Portal Snapshots</name>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
</snapshotRepository>
<!-- Intentionally empty to prevent accidental release deployment -->
<repository>
<id>disabled-release</id>
<url>file:///dev/null</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<extensions>false</extensions>
<configuration>
<skipPublishing>true</skipPublishing>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<distributionManagement>
<snapshotRepository>
Expand Down
14 changes: 14 additions & 0 deletions sdm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,20 @@
</plugins>
</build>
</profile>
<profile>
<id>deploy-central-snapshot</id>
<distributionManagement>
<snapshotRepository>
<id>central</id>
<name>Sonatype Central Portal Snapshots</name>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
</snapshotRepository>
<repository>
<id>disabled-release</id>
<url>file:///dev/null</url>
</repository>
</distributionManagement>
</profile>
</profiles>

<dependencies>
Expand Down
Loading
Loading