Skip to content

Commit 63aa137

Browse files
committed
Merge remote-tracking branch 'origin/main' into ci-skip-baseline-features
# Conflicts: # src/vcpkg/commands.ci.cpp
2 parents fa9941a + d0f9f8a commit 63aa137

File tree

6 files changed

+52
-4
lines changed

6 files changed

+52
-4
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ if(MSVC)
9898
# either MSVC, or clang-cl
9999
string(APPEND CMAKE_C_FLAGS " -FC -permissive- -utf-8 /guard:cf")
100100
string(APPEND CMAKE_CXX_FLAGS " /EHsc -FC -permissive- -utf-8 /guard:cf")
101-
string(APPEND CMAKE_C_FLAGS_RELEASE " /Zi")
102-
string(APPEND CMAKE_CXX_FLAGS_RELEASE " /Zi")
101+
string(APPEND CMAKE_C_FLAGS_RELEASE " /Zi /GL")
102+
string(APPEND CMAKE_CXX_FLAGS_RELEASE " /Zi /GL")
103103

104-
string(APPEND CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO " /DEBUG /INCREMENTAL:NO /debugtype:cv,fixup /guard:cf")
105-
string(APPEND CMAKE_EXE_LINKER_FLAGS_RELEASE " /DEBUG /INCREMENTAL:NO /debugtype:cv,fixup /guard:cf")
104+
string(APPEND CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO " /DEBUG /INCREMENTAL:NO /debugtype:cv,fixup /guard:cf /OPT:REF /OPT:ICF /LTCG")
105+
string(APPEND CMAKE_EXE_LINKER_FLAGS_RELEASE " /DEBUG /INCREMENTAL:NO /debugtype:cv,fixup /guard:cf /OPT:REF /OPT:ICF /LTCG")
106106
if (MSVC_CXX_ARCHITECTURE_ID STREQUAL "x64")
107107
string(APPEND CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO " /CETCOMPAT")
108108
string(APPEND CMAKE_EXE_LINKER_FLAGS_RELEASE " /CETCOMPAT")
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
not-sup-host-b:arm64-osx=pass
2+
not-sup-host-b:x64-osx=pass
3+
not-sup-host-b:x86-windows=pass
4+
not-sup-host-b:x64-windows=pass
5+
not-sup-host-b:arm64-windows=pass
6+
not-sup-host-b:x64-linux=pass
7+
not-sup-host-b:arm64-linux=pass
8+
9+
10+
dep-on-feature-not-sup:arm64-osx=pass
11+
dep-on-feature-not-sup:x64-osx=pass
12+
dep-on-feature-not-sup:x86-windows=pass
13+
dep-on-feature-not-sup:x64-windows=pass
14+
dep-on-feature-not-sup:arm64-windows=pass
15+
dep-on-feature-not-sup:x64-linux=pass
16+
dep-on-feature-not-sup:arm64-linux=pass

azure-pipelines/end-to-end-tests-dir/ci.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@ if (-not ($ErrorOutput.Contains("REGRESSION: dep-on-feature-not-sup:${Triplet} i
2727
throw "feature-not-sup's baseline fail entry should result in a regression because the port is cascade for this triplet"
2828
}
2929

30+
# pass means pass
31+
$Output = Run-VcpkgAndCaptureOutput ci --dry-run --triplet=$Triplet --x-builtin-ports-root="$PSScriptRoot/../e2e-ports/ci" --binarysource=clear --ci-baseline="$PSScriptRoot/../e2e-assets/ci/ci.baseline.txt"
32+
Throw-IfNotFailed
33+
$ErrorOutput = Run-VcpkgAndCaptureStdErr ci --dry-run --triplet=$Triplet --x-builtin-ports-root="$PSScriptRoot/../e2e-ports/ci" --binarysource=clear --ci-baseline="$PSScriptRoot/../e2e-assets/ci/ci.pass.baseline.txt"
34+
Throw-IfNotFailed
35+
if (-not ($ErrorOutput.Contains("REGRESSION: not-sup-host-b:${Triplet} is marked as pass but not supported for ${Triplet}."))) {
36+
throw "feature-not-sup's baseline pass entry should result in a regression because the port is not supported"
37+
}
38+
if (-not ($ErrorOutput.Contains("REGRESSION: dep-on-feature-not-sup:${Triplet} is marked as pass but one dependency is not supported for ${Triplet}."))) {
39+
throw "feature-not-sup's baseline pass entry should result in a regression because the port is cascade for this triplet"
40+
}
41+
3042
# any invalid manifest must raise an error
3143
$Output = Run-VcpkgAndCaptureOutput ci --dry-run --triplet=$Triplet --x-builtin-ports-root="$PSScriptRoot/../e2e-ports/broken-manifests" --binarysource=clear --ci-baseline="$PSScriptRoot/../e2e-assets/ci/ci.baseline.txt"
3244
Throw-IfNotFailed

include/vcpkg/base/message-data.inc.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,14 @@ DECLARE_MESSAGE(CiBaselineUnexpectedPass,
496496
(msg::spec, msg::path),
497497
"",
498498
"PASSING, REMOVE FROM FAIL LIST: {spec} ({path}).")
499+
DECLARE_MESSAGE(CiBaselineUnexpectedPassCascade,
500+
(msg::spec, msg::triplet),
501+
"",
502+
"REGRESSION: {spec} is marked as pass but one dependency is not supported for {triplet}.")
503+
DECLARE_MESSAGE(CiBaselineUnexpectedPassUnsupported,
504+
(msg::spec, msg::triplet),
505+
"",
506+
"REGRESSION: {spec} is marked as pass but not supported for {triplet}.")
499507
DECLARE_MESSAGE(CISettingsOptCIBase,
500508
(),
501509
"",

locales/messages.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@
309309
"_CiBaselineUnexpectedFailCascade.comment": "An example of {spec} is zlib:x64-windows. An example of {triplet} is x64-windows.",
310310
"CiBaselineUnexpectedPass": "PASSING, REMOVE FROM FAIL LIST: {spec} ({path}).",
311311
"_CiBaselineUnexpectedPass.comment": "An example of {spec} is zlib:x64-windows. An example of {path} is /foo/bar.",
312+
"CiBaselineUnexpectedPassCascade": "REGRESSION: {spec} is marked as pass but one dependency is not supported for {triplet}.",
313+
"_CiBaselineUnexpectedPassCascade.comment": "An example of {spec} is zlib:x64-windows. An example of {triplet} is x64-windows.",
314+
"CiBaselineUnexpectedPassUnsupported": "REGRESSION: {spec} is marked as pass but not supported for {triplet}.",
315+
"_CiBaselineUnexpectedPassUnsupported.comment": "An example of {spec} is zlib:x64-windows. An example of {triplet} is x64-windows.",
312316
"ClearingContents": "Clearing contents of {path}",
313317
"_ClearingContents.comment": "An example of {path} is /foo/bar.",
314318
"CmakeTargetsExcluded": "{count} additional targets are not displayed.",

src/vcpkg/commands.ci.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,14 @@ namespace vcpkg
507507
// msg::triplet = spec.package_spec.triplet())
508508
// .append_raw('\n');
509509
// }
510+
// else if (cidata.required_success.contains(spec.package_spec))
511+
// {
512+
// not_supported_regressions
513+
// .append(supp ? msgCiBaselineUnexpectedPassCascade : msgCiBaselineUnexpectedPassUnsupported,
514+
// msg::spec = spec.package_spec,
515+
// msg::triplet = spec.package_spec.triplet())
516+
// .append_raw('\n');
517+
// }
510518
// msg += fmt::format("{:>40}: {:>8}\n", spec.package_spec, supp ? "cascade" : "skip");
511519
// }
512520
//}

0 commit comments

Comments
 (0)