Skip to content

Commit 09c043b

Browse files
Add 3.3 snapshot to compat tests, (#22183)
Fixed the "update-versions" script to include the latest 3.3 snapshot Fixed all of the many many issues with compat tests.
1 parent c3b8cc0 commit 09c043b

25 files changed

+379
-1905
lines changed

ci/BUILD

Lines changed: 0 additions & 1 deletion
This file was deleted.

ci/bash-lib.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ steps:
136136
shift
137137
build=$1
138138
shift
139+
140+
az extension add --name azure-devops --allow-preview true || true
141+
139142
az pipelines build queue \
140143
--definition-name $build \
141144
--org "https://dev.azure.com/digitalasset" \

ci/blackduck.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,8 @@ jobs:
209209
sed -i "s|blackduck_script_sha: $current|blackduck_script_sha: $latest|" ../ci/blackduck.yml
210210
git add ../ci/blackduck.yml
211211
212-
az extension add --name azure-devops --allow-preview true || true
213-
echo ${AZURE_DEVOPS_EXT_PAT} | az devops login --organization="https://dev.azure.com/digitalasset"
214-
trap "az devops logout" EXIT
215-
216212
open_pr "$branch" "bump blackduck script to ${latest:0:8}" "" "" "$(Build.SourceBranchName)"
217-
trigger_azure $(System.AccessToken) "PRs" --branch $branch
213+
trigger_azure $AZURE_DEVOPS_EXT_PAT "PRs" --branch $branch
218214
fi
219215
displayName: 'Bump Blackduck Script if needed'
220216
env:

ci/cron/daily-compat.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,8 @@ jobs:
159159
cd sdk
160160
eval "$(./dev-env/bin/dade-assist)"
161161
if [ "$(need_to_build)" == "true" ]; then
162-
branch="notices-update-$(Build.BuildId)"
163-
az extension add --name azure-devops
164-
trap "az devops logout" EXIT
165-
echo "$(System.AccessToken)" | az devops login --org "https://dev.azure.com/digitalasset"
166-
az pipelines build queue --branch "$branch" \
167-
--definition-name "PRs" \
168-
--org "https://dev.azure.com/digitalasset" \
169-
--project daml
162+
BRANCH="notices-update-$(Build.BuildId)"
163+
trigger_azure $AZURE_DEVOPS_EXT_PAT PRs --branch $BRANCH
170164
fi
171165
env:
172166
AZURE_DEVOPS_EXT_PAT: $(System.AccessToken)

ci/cron/wednesday.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
rotate
5252
git add .
5353
open_pr "$BRANCH" "$TITLE" "$BODY" "$PR_NUMBER"
54-
trigger_azure $(System.AccessToken) "PRs" --branch $BRANCH
54+
trigger_azure $AZURE_DEVOPS_EXT_PAT "PRs" --branch $BRANCH
5555
request_pr_review $(cat "$PR_NUMBER") "$NEXT_GH"
5656
env:
5757
AZURE_DEVOPS_EXT_PAT: $(System.AccessToken)

ci/prs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ jobs:
155155
REQUEST=$(git log -n1 --format="%(trailers:key=run-full-compat,valueonly)" $COMMIT)
156156
if [ $REQUEST == true ]; then
157157
# Unfortunately recovering the actual branch name is tricky
158-
trigger_azure $AZURE_TOKEN digital-asset.daml-daily-compat --commit-id $COMMIT --branch not-main
158+
trigger_azure $AZURE_DEVOPS_EXT_PAT digital-asset.daml-daily-compat --commit-id $COMMIT --branch not-main
159159
fi
160160
env:
161-
AZURE_TOKEN: $(System.AccessToken)
161+
AZURE_DEVOPS_EXT_PAT: $(System.AccessToken)
162162
displayName: "Trigger self-service compatibility test"
163163

sdk/bazel_tools/os_info.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ is_linux = is_linux_intel or is_linux_arm
1313
is_windows = cpu_value == "x64_windows"
1414
os_name = "macos" if is_darwin else "linux" if is_linux_intel or is_linux_arm else "windows"
1515
is_intel = is_windows or is_darwin or is_linux_intel
16+
os_arch = "x86_64" if is_windows or is_linux_intel else "arm64" if is_darwin_arm64 else "aarch64"
1617
"""
1718

1819
def _os_info_impl(repository_ctx):

sdk/ci/oracle_image

Lines changed: 0 additions & 1 deletion
This file was deleted.

sdk/compatibility/BUILD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,11 @@ os_name = "linux" if not is_windows else "windows"
150150
command_targets = {
151151
"install_from_version": [
152152
"0.0.0",
153+
"3.3.0-snapshot.20250930.0",
153154
],
154155
"build_from_version": [
155156
"0.0.0",
157+
"3.3.0-snapshot.20250930.0",
156158
],
157159
"install_with_custom_version_and_build": [
158160
"0.0.0",
@@ -200,6 +202,7 @@ command_post_failure_behaviours = {
200202
":new_cache",
201203
":old_cache",
202204
":releases-github-api.json",
205+
"@daml-sdk-3.3.0-snapshot.20250926.13852.1.v4f3223e3-tarball//file",
203206
"@head_sdk//:daml" if not is_windows else "@head_sdk//:daml.exe",
204207
"@head_sdk//:sdk-release-tarball-ce.tar.gz",
205208
],

sdk/compatibility/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ tests run on CI.
1818
We include the following SDK versions in our tests:
1919

2020
1. All stable SDK versions.
21-
2. All snapshots `x.y.z-snapshot-*` for which there is no stable release `x.y.z`
21+
2. Latest `3.3.X` snapshot.
2222
3. HEAD.
2323

2424
Since running all tests can be rather slow, we run them in a daily

0 commit comments

Comments
 (0)