Skip to content

Commit 043f78e

Browse files
committed
update ci
2 parents 437ccbe + 4dd3806 commit 043f78e

File tree

5 files changed

+14
-120
lines changed

5 files changed

+14
-120
lines changed

.github/workflows/integration_omnibus.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ jobs:
171171
compiler: gcc-12
172172
run: ./tests/ci/integration/run_sslproxy_integration.sh
173173
- name: sslproxy
174-
arch: aarch64
174+
arch: aarch64
175175
size: large
176176
image: ubuntu:22.04
177177
compiler: gcc-12
@@ -257,9 +257,9 @@ jobs:
257257
run: ./tests/ci/integration/run_openldap_integration.sh OPENLDAP_REL_ENG_2_5
258258

259259
# Cyrus SASL Integration Tests
260-
- name: cyrus-sasl
260+
- name: cyrus-sasl
261261
arch: x86_64
262-
size: small
262+
size: small
263263
image: ubuntu:22.04
264264
compiler: gcc-12
265265
run: ./tests/ci/integration/run_cyrus_sasl_integration.sh
@@ -279,7 +279,7 @@ jobs:
279279
compiler: gcc-12
280280
accp_fips: true
281281
run: ./tests/ci/integration/run_accp_integration.sh
282-
282+
283283
# NMAP Integration Tests
284284
- name: nmap
285285
arch: x86_64
@@ -303,7 +303,7 @@ jobs:
303303
image: ubuntu:22.04
304304
compiler: gcc-12
305305
run: ./tests/ci/integration/run_libwebsockets_integration.sh
306-
306+
307307
# GRPC Integration Tests
308308
- name: grpc
309309
arch: x86_64
@@ -321,7 +321,9 @@ jobs:
321321
compiler: gcc-12
322322
ipv6: true
323323
options: --privileged
324-
run: ./tests/ci/integration/run_bind9_integration.sh
324+
run: |
325+
python3 -m pip install --upgrade meson
326+
./tests/ci/integration/run_bind9_integration.sh
325327
326328
# strongSwan Integration Tests
327329
- name: strongswan

tests/ci/cdk/pipeline/ci_stage.py

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -94,22 +94,6 @@ def add_stage_to_pipeline(
9494

9595
env = env or {}
9696

97-
prebuild_check_step = pipelines.CodeBuildStep(
98-
"PrebuildCheck",
99-
input=input,
100-
commands=[
101-
"cd tests/ci/cdk/pipeline/scripts",
102-
'trigger_conditions=$(./check_trigger_conditions.sh --build-type ci --stacks "${STACKS}")',
103-
r"export NEED_REBUILD=$(echo $trigger_conditions | sed -n 's/.*\(NEED_REBUILD=[0-9]*\).*/\1/p' | cut -d'=' -f2 )",
104-
],
105-
env={
106-
**env,
107-
"STACKS": " ".join(stack_names),
108-
},
109-
role=role,
110-
timeout=Duration.minutes(60),
111-
)
112-
11397
batch_timeout = max([stack.timeout for stack in self.stacks]) * (max_retry + 1)
11498
batch_build_jobs = {
11599
"build-list": [
@@ -142,14 +126,11 @@ def add_stage_to_pipeline(
142126
env={
143127
**env,
144128
"MAX_RETRY": max_retry,
145-
"NEED_REBUILD": prebuild_check_step.exported_variable("NEED_REBUILD"),
146129
},
147130
)
148131

149-
ci_run_step.add_step_dependency(prebuild_check_step)
150-
151132
pipeline.add_stage(
152133
self,
153134
pre=[private_repo_sync_step] if private_repo_sync_step else None,
154-
post=[prebuild_check_step, ci_run_step],
135+
post=[ci_run_step],
155136
)

tests/ci/cdk/pipeline/pipeline_stack.py

Lines changed: 0 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -195,45 +195,6 @@ def __init__(
195195
targets=[targets.CodePipeline(pipeline=base_pipeline)],
196196
)
197197

198-
# Pipeline is run everytime we push to main branch. Avoid unnecessary hold up if these updates are non-CI related
199-
if not IS_DEV:
200-
start_index = next(
201-
(i for i, stage in enumerate(base_pipeline.stages) if stage.stage_name == "PromoteToProduction"),
202-
None
203-
)
204-
205-
override_condition = {
206-
"Conditions": [
207-
{
208-
"Result": "SKIP",
209-
"Rules": [
210-
{
211-
"Name": "Skip_Prod_Deployment",
212-
"RuleTypeId": {
213-
"Category": "Rule",
214-
"Owner": "AWS",
215-
"Provider": "VariableCheck",
216-
"Version": "1"
217-
},
218-
"Configuration": {
219-
"Variable": "#{[email protected]_REBUILD}",
220-
"Value": "0",
221-
"Operator": "NE"
222-
},
223-
}
224-
]
225-
}
226-
]
227-
}
228-
229-
l1_pipeline = base_pipeline.node.default_child
230-
231-
for i in range(start_index, int(base_pipeline.stage_count)):
232-
l1_pipeline.add_override(
233-
f"Properties.Stages.{i}.BeforeEntry",
234-
override_condition
235-
)
236-
237198
def deploy_to_environment(
238199
self,
239200
deploy_environment_type: DeployEnvironmentType,
@@ -305,58 +266,6 @@ def deploy_to_environment(
305266
deploy_environment=deploy_environment)
306267
pipeline.add_stage(gh_actions_stage)
307268

308-
docker_build_wave = pipeline.add_wave(
309-
f"{deploy_environment_type.value}-DockerImageBuild"
310-
)
311-
312-
linux_stage = LinuxDockerImageBuildStage(
313-
self,
314-
f"{deploy_environment_type.value}-LinuxDockerImageBuild",
315-
pipeline_environment=pipeline_environment,
316-
deploy_environment=deploy_environment,
317-
)
318-
319-
linux_stage.add_stage_to_wave(
320-
wave=docker_build_wave,
321-
input=source.primary_output,
322-
role=cross_account_role,
323-
additional_stacks=setup_stage.stacks,
324-
max_retry=MAX_TEST_RETRY,
325-
env=codebuild_environment_variables,
326-
)
327-
328-
windows_stage = WindowsDockerImageBuildStage(
329-
self,
330-
f"{deploy_environment_type.value}-WindowsDockerImageBuild",
331-
pipeline_environment=pipeline_environment,
332-
deploy_environment=deploy_environment,
333-
)
334-
335-
windows_stage.add_stage_to_wave(
336-
wave=docker_build_wave,
337-
input=source.primary_output,
338-
role=cross_account_role,
339-
additional_stacks=setup_stage.stacks,
340-
max_retry=MAX_TEST_RETRY,
341-
env=codebuild_environment_variables,
342-
)
343-
344-
docker_build_wave.add_post(
345-
CodeBuildStep(
346-
f"{deploy_environment_type.value}-FinalizeImages",
347-
input=source,
348-
commands=[
349-
"cd tests/ci/cdk/pipeline/scripts",
350-
'./finalize_images.sh --repos "${ECR_REPOS}"',
351-
],
352-
env={
353-
**codebuild_environment_variables,
354-
"ECR_REPOS": f"{' '.join(linux_stage.ecr_repo_names)} {' '.join(windows_stage.ecr_repo_names)}",
355-
},
356-
role=cross_account_role,
357-
)
358-
)
359-
360269
ci_stage = CiStage(
361270
self,
362271
f"{deploy_environment_type.value}-CiTests",
@@ -371,6 +280,5 @@ def deploy_to_environment(
371280
max_retry=MAX_TEST_RETRY,
372281
env={
373282
**codebuild_environment_variables,
374-
"PREVIOUS_REBUILDS": f"{linux_stage.need_rebuild} {linux_stage.need_rebuild}",
375283
},
376284
)

tests/ci/integration/run_httpd_integration.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function setup_python_env() {
105105
python3 -m venv venv
106106
source venv/bin/activate
107107
python3 -m pip install --upgrade pip
108-
python3 -m pip install pyopenssl websockets pytest filelock python-multipart
108+
python3 -m pip install pyopenssl websockets "pytest<7.0" filelock python-multipart
109109
}
110110

111111
function httpd_run_tests() {

tool-openssl/test_util.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ void CreateAndSignX509Certificate(bssl::UniquePtr<X509> &x509,
1313
}
1414

1515
// Set version to X509v3
16-
X509_set_version(x509.get(), X509_VERSION_3);
16+
if (!X509_set_version(x509.get(), X509_VERSION_3)) {
17+
fprintf(stderr, "Error setting certificate version\n");
18+
return;
19+
}
1720

1821
// Set validity period for 30 days
1922
if (!X509_gmtime_adj(X509_getm_notBefore(x509.get()), 0) ||

0 commit comments

Comments
 (0)