Skip to content

Commit 5d406b4

Browse files
authored
Merge pull request #25 from intel/tmp23.2
release 23.2
2 parents 8ec7dc2 + f1a4347 commit 5d406b4

File tree

579 files changed

+117317
-6362
lines changed

Some content is hidden

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

579 files changed

+117317
-6362
lines changed

CMakeLists.txt

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#
2+
# Apache v2 license
3+
# Copyright (C) 2023 Intel Corporation
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
16

27
cmake_minimum_required (VERSION 2.8...3.24)
38

@@ -34,8 +39,8 @@ else()
3439
endif()
3540

3641
include(registry OPTIONAL)
37-
execute_process(COMMAND bash -c "GIT_SSH_COMMAND='ssh -o BatchMode=yes' GIT_ASKPASS=echo git fetch --tags > /dev/null && GIT_ASKPASS=echo git tag" TIMEOUT 5 OUTPUT_VARIABLE tmp RESULT_VARIABLE status OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET)
38-
if (RELEASE MATCHES "^:?v?[0-9]+[.][0-9]+$")
42+
execute_process(COMMAND bash -c "GIT_SSH_COMMAND='ssh -o BatchMode=yes' GIT_ASKPASS=echo git fetch --tags > /dev/null;GIT_ASKPASS=echo git tag | sort -V" TIMEOUT 5 OUTPUT_VARIABLE tmp RESULT_VARIABLE status OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET)
43+
if (RELEASE MATCHES "^:?v?[0-9]+[.][0-9]+[.]*[0-9]*$")
3944
string(REPLACE ":" "" release1 "${RELEASE}")
4045
if ((status EQUAL 0) AND (tmp MATCHES "${release1}"))
4146
if((NOT DEFINED REGISTRY) OR (NOT REGISTRY))
@@ -45,16 +50,22 @@ if (RELEASE MATCHES "^:?v?[0-9]+[.][0-9]+$")
4550
endif()
4651
endif()
4752
else ()
48-
string(REGEX REPLACE ".*\nv?" "" tmp "${tmp}")
53+
string(REGEX REPLACE ".*\n" "" tmp "${tmp}")
54+
string(REGEX REPLACE "(v?[0-9]*[.][0-9]*)[.].*" "\\1" mtmp "${tmp}")
4955
if (tmp AND (status EQUAL 0))
5056
message("")
5157
message("*************************************************************")
5258
message("")
53-
message("${green}INFO:${reset} Detected release ${tmp}.")
54-
message(" Switch to release ${tmp} as follows:")
59+
if (tmp STREQUAL mtmp)
60+
message("${green}INFO:${reset} Detected major release ${mtmp}.")
61+
else()
62+
message("${green}INFO:${reset} Detected major release ${mtmp} and minor releases up to ${tmp}.")
63+
message("${green}INFO:${reset} Minor releases do not cover all workloads. See workload README.")
64+
endif()
5565
message("")
56-
message("git checkout ${tmp}")
57-
message("cmake -DRELEASE=v${tmp} ..")
66+
message("${green}INFO:${reset} Switch to a major/minor release as follows:")
67+
message("${green}INFO:${reset} git checkout tags/${mtmp}")
68+
message("${green}INFO:${reset} cmake -DRELEASE=${mtmp} ..")
5869
message("")
5970
message("*************************************************************")
6071
message("")

CONTRIBUTING.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Evaluate Workloads
44

5-
Follow the [README](README.md#prerequisite) instructions to setup [local](doc/setup-docker.md), [remote](doc/setup-cumulus.md), or [Cloud](doc/setup-cumulus.md) systems to evaluate any [supported workloads](worklod/README.md#list-of-workloads).
5+
Follow the [README](README.md#prerequisite) instructions to setup [local](doc/user-guide/preparing-infrastructure/setup-docker.md), [remote](doc/user-guide/preparing-infrastructure/setup-cumulus.md), or [Cloud](doc/user-guide/preparing-infrastructure/setup-cumulus.md) systems to evaluate any [supported workloads](worklod/README.md#list-of-workloads).
66

77
You can choose to build the workloads and evaluate the workload execution with `ctest`, which manage the workload test cases. You can run any subset of the test cases or all of them.
88

@@ -13,14 +13,14 @@ If you spot a problem with the repository, submit an issue at the **github issue
1313
### Contribute to Workload Development
1414

1515
Here is a list of references you can follow for workload development:
16-
- A workload consists of a few critical pieces of scripts or manifests, documented in [Workload Elements](doc/workload.md):
17-
- [`CMakeLists.txt`](doc/cmakelists.txt.md)
18-
- [`build.sh`](doc/build.md)
19-
- [`Dockerfiles`](doc/dockerfile.md)
20-
- [`cluster-config.yaml.m4`](doc/cluster-config.md)
21-
- [`kubernetes-config.yaml.m4`](doc/kuernetes-config.md)
22-
- [`validate.sh`](doc/validate.md)
23-
- [`kpi.sh`](doc/kpi.md)
16+
- A workload consists of a few critical pieces of scripts or manifests, documented in [Workload Elements](doc/developer-guide/component-design/workload.md):
17+
- [`CMakeLists.txt`](doc/developer-guide/component-design/cmakelists.md)
18+
- [`build.sh`](doc/developer-guide/component-design/build.md)
19+
- [`Dockerfiles`](doc/developer-guide/component-design/dockerfile.md)
20+
- [`cluster-config.yaml.m4`](doc/developer-guide/component-design/cluster-config.md)
21+
- [`kubernetes-config.yaml.m4`](doc/developer-guide/component-design/kubernetes-config.md)
22+
- [`validate.sh`](doc/developer-guide/component-design/validate.md)
23+
- [`kpi.sh`](doc/developer-guide/component-design/kpi.md)
2424
- The best way to start a new workload development is by copying the [dummy](workload/dummy) workload and then modifying it to your needs.
2525

2626
### Submit Contributions

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
>
2+
> **Note: The Workload Services Framework is a benchmarking framework and is not intended to be used for the deployment of workloads in production environments. It is recommended that users consider any adjustments which may be necessary for the deployment of these workloads in a production environment including those necessary for implementing software best practices for workload scalability and security.**
3+
>
14
25
### Introduction
36

@@ -7,7 +10,7 @@ This is the **Workload Services Framework** repository. The repository contains
710

811
- Sync your system date/time. This is required by any credential authorization.
912
- If you are behind a corporate firewall, please setup `http_proxy`, `https_proxy` and `no_proxy` in `/etc/environment`.
10-
- Run the [`setup-dev.sh`](doc/setup-wsf.md#setup-devsh) script to setup the development host for Cloud and On-Premises workload development and evaluation. See [Cloud and On-Premises Setup](doc/setup-wsf.md) for more details on the setup.
13+
- Run the [`setup-dev.sh`](doc/user-guide/preparing-infrastructure/setup-wsf.md#setup-devsh) script to setup the development host for Cloud and On-Premises workload development and evaluation. See [Cloud and On-Premises Setup](doc/user-guide/preparing-infrastructure/setup-wsf.md) for more details on the setup.
1114

1215
### Evaluate Workload
1316

@@ -25,7 +28,7 @@ cd workload/OpenSSL-RSAMB # Go to any workload folder
2528

2629
---
2730

28-
- The WSF supports multiple validation backends. By default, the [`docker`](doc/setup-docker.md) backend, or the [`Kubernetes`](doc/setup-kubernetes.md) backend if available, is used to evaluate any workload locally. To evaluate workloads on Cloud or in an on-premises cluster, please use the [terraform](doc/setup-terraform.md) backend. Additional setup required such as configuring Cloud account credentials.
31+
- The WSF supports multiple validation backends. By default, the [`docker`](doc/user-guide/preparing-infrastructure/setup-docker.md) backend, or the [`Kubernetes`](doc/user-guide/preparing-infrastructure/setup-kubernetes.md) backend if available, is used to evaluate any workload locally. To evaluate workloads on Cloud or in an on-premises cluster, please use the [terraform](doc/user-guide/preparing-infrastructure/setup-terraform.md) backend. Additional setup required such as configuring Cloud account credentials.
2932

3033
---
3134

@@ -40,7 +43,7 @@ make
4043
./ctest.sh -N
4144
```
4245

43-
> TIP: You can specify `BENCHMARK` to limit the repository scope to the specified workload. The build and test operations on all other workloads are disabled. See [Build Options](doc/cmake.md) for details.
46+
> TIP: You can specify `BENCHMARK` to limit the repository scope to the specified workload. The build and test operations on all other workloads are disabled. See [Build Options](doc/user-guide/executing-workload/cmake.md) for details.
4447
4548
```
4649
cd build
@@ -51,7 +54,7 @@ make
5154

5255
### See Also
5356

54-
- [Build Options](doc/cmake.md)
55-
- [Test Options](doc/ctest.md)
56-
- [Setup Terraform](doc/setup-terraform.md)
57+
- [Build Options](doc/user-guide/executing-workload/cmake.md)
58+
- [Test Options](doc/user-guide/executing-workload/ctest.md)
59+
- [Setup Terraform](doc/user-guide/preparing-infrastructure/setup-terraform.md)
5760

Security.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Security Policy
2+
Intel is committed to rapidly addressing security vulnerabilities affecting our customers and providing clear guidance on the solution, impact, severity and mitigation.
3+
4+
## Reporting a Vulnerability
5+
Please report any security vulnerabilities in this project [utilizing the guidelines here](https://www.intel.com/content/www/us/en/security-center/vulnerability-handling-guidelines.html).
6+

doc/cluster-config.md

Lines changed: 0 additions & 79 deletions
This file was deleted.

doc/image/dev-for-cloud.svg

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)