Skip to content

Commit be5b61b

Browse files
authored
3.0 sync (#14359)
2 parents 94d301b + ce2f41e commit be5b61b

File tree

174 files changed

+4515
-8599
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+4515
-8599
lines changed

.pipelines/containerSourceData/scripts/PublishContainers.sh

Lines changed: 48 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,52 @@ function acr_login {
9292
# $1: image name
9393
function oras_attach {
9494
local image_name=$1
95+
local max_retries=3
96+
local retry_count=0
97+
98+
while [ $retry_count -lt $max_retries ]; do
99+
echo "+++ Attempting to attach lifecycle annotation to $image_name (attempt $((retry_count + 1))/$max_retries)"
100+
101+
if oras attach \
102+
--artifact-type "application/vnd.microsoft.artifact.lifecycle" \
103+
--annotation "vnd.microsoft.artifact.lifecycle.end-of-life.date=$END_OF_LIFE_1_YEAR" \
104+
"$image_name"; then
105+
echo "+++ Successfully attached lifecycle annotation to $image_name"
106+
return 0
107+
else
108+
retry_count=$((retry_count + 1))
109+
if [ $retry_count -lt $max_retries ]; then
110+
echo "+++ Failed to attach lifecycle annotation to $image_name. Retrying in 5 seconds..."
111+
sleep 5
112+
else
113+
echo "+++ Failed to attach lifecycle annotation to $image_name after $max_retries attempts"
114+
return 1
115+
fi
116+
fi
117+
done
118+
}
119+
120+
# Detach the end-of-life annotation from the container image.
121+
# $1: image name
122+
function oras_detach {
123+
local image_name=$1
124+
lifecycle_manifests=$(oras discover -o json --artifact-type "application/vnd.microsoft.artifact.lifecycle" "$image_name")
125+
manifests=$(echo "$lifecycle_manifests" | jq -r '.manifests')
126+
127+
if [[ -z $manifests ]]; then
128+
echo "+++ No lifecycle manifests found for $image_name"
129+
return
130+
fi
95131

96-
oras attach \
97-
--artifact-type "application/vnd.microsoft.artifact.lifecycle" \
98-
--annotation "vnd.microsoft.artifact.lifecycle.end-of-life.date=$END_OF_LIFE_1_YEAR" \
99-
"$image_name"
132+
echo "+++ Found lifecycle manifests for $image_name: $manifests"
133+
# Loop through the manifests and delete them.
134+
manifest_count=$(echo "$manifests" | jq length)
135+
for (( i=0; i<manifest_count; i++ )); do
136+
digest=$(echo "$lifecycle_manifests" | jq -r ".manifests[$i].digest")
137+
echo "Deleting manifest with digest: $digest"
138+
imageNameWithoutTag=${image_name%:*}
139+
oras manifest delete --force "$imageNameWithoutTag@$digest"
140+
done
100141
}
101142

102143
function create_multi_arch_tags {
@@ -191,6 +232,7 @@ function create_multi_arch_tags {
191232
echo "+++ push $full_multiarch_tag tag"
192233
docker manifest push "$full_multiarch_tag"
193234
echo "+++ $full_multiarch_tag tag pushed successfully"
235+
oras_detach "$full_multiarch_tag"
194236
oras_attach "$full_multiarch_tag"
195237

196238
# Save the multi-arch tag to a file.
@@ -281,6 +323,7 @@ do
281323
docker image tag "$amd64_image" "$amd64_retagged_image_name"
282324
docker rmi "$amd64_image"
283325
docker image push "$amd64_retagged_image_name"
326+
oras_detach "$amd64_retagged_image_name"
284327
oras_attach "$amd64_retagged_image_name"
285328

286329
if [[ $ARCHITECTURE_TO_BUILD == *"ARM64"* ]]; then
@@ -289,6 +332,7 @@ do
289332
docker image tag "$arm64_image" "$arm64_retagged_image_name"
290333
docker rmi "$arm64_image"
291334
docker image push "$arm64_retagged_image_name"
335+
oras_detach "$arm64_retagged_image_name"
292336
oras_attach "$arm64_retagged_image_name"
293337
fi
294338

.pipelines/templates/PackageTestResultsAnalysis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ parameters:
3232
default: "$(Agent.TempDirectory)"
3333

3434
steps:
35-
- bash: pip3 install --user junit_xml==1.9
35+
# TODO: the "--index-url" argument must be removed once accessing internal ADO feeds from fork PR checks is supported.
36+
- bash: pip3 install --user junit_xml==1.9 --index-url https://pypi.org/simple
3637
retryCountOnTaskFailure: 3
3738
displayName: "Install Python dependencies"
3839

.pipelines/templates/ToolchainBuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ steps:
4141
buildRepoRoot: ${{ parameters.buildRepoRoot }}
4242

4343
- bash: |
44-
if [[ -n ${{ parameters.dailyBuildID }} ]]; then
44+
if [[ -n "${{ parameters.dailyBuildID }}" ]]; then
4545
daily_build_id_arg="DAILY_BUILD_ID=${{ parameters.dailyBuildID }}"
4646
fi
4747
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"PyGreSQL-5.2.2.tar.gz": "8c6c56f95cf08337075be0930a1d28333624ebcd6180cf888c59d3e2887f32ce"
3+
"PyGreSQL-6.0.1.tar.gz": "57e44af29c7443641ca65e549e568848946f937597cf19064bbfadc4e5e53bfb"
44
}
55
}

SPECS-EXTENDED/PyGreSQL/PyGreSQL.spec

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1+
%global with_tests 0
2+
13
Vendor: Microsoft Corporation
24
Distribution: Azure Linux
35
%global srcname PyGreSQL
46

57
Name: %{srcname}
6-
Version: 5.2.2
7-
Release: 3%{?dist}
8+
Version: 6.0.1
9+
Release: 1%{?dist}
810
Summary: Python client library for PostgreSQL
911

1012
URL: http://www.pygresql.org/
1113
License: PostgreSQL
1214

13-
Source0: https://github.com/PyGreSQL/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
15+
Source0: https://github.com/PyGreSQL/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
1416

1517
BuildRequires: gcc
1618
BuildRequires: libpq-devel
@@ -58,12 +60,18 @@ find -type f -exec chmod 644 {} +
5860
%files -n python3-pygresql
5961
%license docs/copyright.rst
6062
%doc docs/*.rst
61-
%{python3_sitearch}/*.so
62-
%{python3_sitearch}/*.py
63-
%{python3_sitearch}/__pycache__/*.py{c,o}
63+
%{python3_sitearch}/pg/*.so
64+
%{python3_sitearch}/pg/*.py
65+
%{python3_sitearch}//pg/__pycache__/*.py{c,o}
66+
%{python3_sitearch}/pg/_pg.pyi
67+
%{python3_sitearch}/pg/py.typed
68+
%{python3_sitearch}/pgdb/*.py
69+
%{python3_sitearch}/pgdb/__pycache__/*.py{c,o}
70+
%{python3_sitearch}/pgdb/py.typed
6471
%{python3_sitearch}/*.egg-info
6572

66-
73+
# Requires postgresql-test-rpm-macros which is not provided by postgresql in Azure Linux.
74+
%if 0%{?with_tests}
6775
%check
6876
%postgresql_tests_run
6977

@@ -76,9 +84,12 @@ dbport = $PGPORT
7684
EOF
7785

7886
%{__python3} setup.py test
79-
87+
%endif
8088

8189
%changelog
90+
* Wed Sep 25 2024 jyoti kanase <[email protected]> - 6.0.1-1
91+
- Update to 6.0.1
92+
8293
* Thu Aug 31 2023 Pawel Winogrodzki <[email protected]> - 5.2.2-3
8394
- Disabling missing test dependency.
8495
- License verified.

SPECS-EXTENDED/cim-schema/cim-schema.spec

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ Distribution: Azure Linux
3838
%global update 1
3939

4040
Name: cim-schema
41-
Url: http://www.dmtf.org/
41+
Url: https://www.dmtf.org/
4242
Summary: Common Information Model (CIM) Schema
4343
Version: %{major}.%{minor}.%{update}
44-
Release: 6%{?dist}
44+
Release: 7%{?dist}
4545
License: LicenseRef-DMTF
46-
Source0: http://www.dmtf.org/standards/cim/cim_schema_v%{major}%{minor}%{update}/cim_schema_%{version}Experimental-MOFs.zip
47-
Source1: http://www.dmtf.org/standards/cim/cim_schema_v%{major}%{minor}%{update}/cim_schema_%{version}Experimental-Doc.zip
46+
Source0: https://www.dmtf.org/standards/cim/cim_schema_v%{major}%{minor}%{update}/cim_schema_%{version}Experimental-MOFs.zip
47+
Source1: https://www.dmtf.org/standards/cim/cim_schema_v%{major}%{minor}%{update}/cim_schema_%{version}Experimental-Doc.zip
4848
Source2: LICENSE
4949
BuildArch: noarch
5050

@@ -63,7 +63,7 @@ provides the actual model descriptions.
6363

6464
Authors:
6565
--------
66-
DTMF <http://www.dmtf.org/about/contact>
66+
DTMF <https://www.dmtf.org/about/contact>
6767

6868
%description docs
6969
Common Information Model (CIM) schema documentation.
@@ -88,19 +88,22 @@ ln -s cimv%{version} $RPM_BUILD_ROOT/$MOFDIR/cim-current
8888
ln -s cim_schema_%{version}.mof $RPM_BUILD_ROOT/$MOFDIR/cim-current/CIM_Schema.mof
8989
install -d $RPM_BUILD_ROOT/usr/bin
9090
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}
91-
cp -a %{SOURCE2} $RPM_BUILD_ROOT/%{_docdir}/%{name}
91+
cp -a %{SOURCE2} .
9292

9393
%files
9494
%dir %{_datarootdir}/mof
9595
%dir %{_datarootdir}/mof/cimv%{version}
9696
%{_datarootdir}/mof/cimv%{version}/*
9797
%{_datarootdir}/mof/cim-current
98-
%doc %{_docdir}/%{name}/LICENSE
98+
%license LICENSE
9999

100100
%files docs
101101
%doc ../%{name}-docs/*
102102

103103
%changelog
104+
* Thu Jun 19 2025 Kshitiz Godara <[email protected]> - 2.54.1-7
105+
- Address issues introduced by PR 11486
106+
104107
* Tue Dec 17 2024 Akarsh Chaudhary <[email protected]> - 2.54.1-6
105108
- Initial Azure Linux import from Fedora 41 (license: MIT).
106109
- License verified
-3.23 MB
Binary file not shown.
-2.06 MB
Binary file not shown.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
-----BEGIN PGP SIGNATURE-----
2+
3+
iQIzBAABCgAdFiEE1oEe063uuEQa9aqPRSi2zZ5h7yYFAmaf2n8ACgkQRSi2zZ5h
4+
7ya1EA//X+R/lKh8Pq7hvC90foSIsyH2mFptwtR+piKfH3aMwsszhMDpqgEb1KFa
5+
rLf44UQv4ZJWSKBx3K7g5TTIm3mYRUaU7yZIcl3/F5XS6/LHaFzIlPqWIqhd4eAS
6+
h8eP64echKJfkSVZka0T+WAOV9vsWSeGBLmWBSQN1G6iLpW2iz+ntmv6qb5LCE5+
7+
v/L5lr0/nG4lumAW3rPagysMm2kiJxRZSz7K6hjxa2B61mLo1e8iQfdDohO0h7ok
8+
4y2qsowKnYlrnKlLGSlDKG3AJ4jkU4HJQ5hUYJ6odUxOOxSdDUfe60CcdeKg0rvw
9+
p5LoROJ8UIRqSvZuw2s/xoZKjTNhZsW5mRVl2w4gbA07VibNYj5iM3BLeKcdaITX
10+
nQmeVaS3EZeeAflStkh9uFmTOhuvtwl/ZZa3ksAjYlHjwhjyK2QBpw4wGjuwJdL8
11+
QMWqjMduBMB1+3IiIGyaoBaMaW2BoP/ESec4p6W8spxNh8KnaOycwtvRLHK2aMfx
12+
JRsEw1MdjxtRDA3HJDqxXfTAHVQHrb82e0BUMvztfFPpZouPXTGGmFDMwccqMOj4
13+
FK6rEufrnJqDoAbT8msRH3L78ls+Xw2npBFf9UK+mRLFAtq9iMDAB/Ku8bOURoNb
14+
CsKF+nSG4AAAusZP4H5qvnMB/XrSuzYH+9Z2KLiAjUMwspSniVc=
15+
=yn9V
16+
-----END PGP SIGNATURE-----
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"Signatures": {
3-
"facter-4.2.13.gem": "a4f293b585176b080c8f10e9adb7a4d1cfd484268dfef518b162a0422450264c"
3+
"facter-4.8.0.gem": "0950375502fc2ec8a0e55d89d4610be639f6ce5418ab6c5df2205e90e6af6084",
4+
"facter-4.8.0.gem.asc": "53cb68dcba913b796bfb85ab07ee2598fab4d344e335a068e9d66e22f8f219a5",
5+
"puppet-gpg-signing-key-20250406.pub": "4d5a9c73f97235eebe8c69f728aa2efcc8e1ee02282f972efdbbbd3a430be454"
46
}
57
}

0 commit comments

Comments
 (0)