You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Welcome to the Service Framework Workload Repository Contributing Guide
2
2
3
-
### License
3
+
### Evaluate Workloads
4
4
5
-
<PROJECTNAME> is licensed under the terms in [LICENSE]<linktolicensefileinrepo>. By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms.
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).
6
6
7
-
### Sign your work
7
+
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.
8
8
9
-
Please use the sign-off line at the end of the patch. Your signature certifies that you wrote the patch or otherwise have the right to pass it on as an open-source patch. The rules are pretty simple: if you can certify
10
-
the below (from [developercertificate.org](http://developercertificate.org/)):
9
+
### Submit Issues
11
10
12
-
```
13
-
Developer Certificate of Origin
14
-
Version 1.1
11
+
If you spot a problem with the repository, submit an issue at the **github issues**.
15
12
16
-
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
17
-
660 York Street, Suite 102,
18
-
San Francisco, CA 94110 USA
13
+
### Contribute to Workload Development
19
14
20
-
Everyone is permitted to copy and distribute verbatim copies of this
21
-
license document, but changing it is not allowed.
15
+
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/developer-guide/component-design/workload.md):
- The best way to start a new workload development is by copying the [dummy](workload/dummy) workload and then modifying it to your needs.
22
25
23
-
Developer's Certificate of Origin 1.1
26
+
### Submit Contributions
24
27
25
-
By making a contribution to this project, I certify that:
28
+
Thanks for your contribution to the Service Framework workload repository. Whether you plan to modify an existing workload or to create a new workload, please fork the SF workload repository to your own private work place. Make modifications there. Then submit a merge request. The branches of the main repository are reserved for release-related activities.
26
29
27
-
(a) The contribution was created in whole or in part by me and I
28
-
have the right to submit it under the open source license
29
-
indicated in the file; or
30
-
31
-
(b) The contribution is based upon previous work that, to the best
32
-
of my knowledge, is covered under an appropriate open source
33
-
license and I have the right under that license to submit that
34
-
work with modifications, whether created in whole or in part
35
-
by me, under the same open source license (unless I am
36
-
permitted to submit under a different license), as indicated
37
-
in the file; or
38
-
39
-
(c) The contribution was provided directly to me by some other
40
-
person who certified (a), (b) or (c) and I have not modified
41
-
it.
42
-
43
-
(d) I understand and agree that this project and the contribution
44
-
are public and that a record of the contribution (including all
45
-
personal information I submit with it, including my sign-off) is
46
-
maintained indefinitely and may be redistributed consistent with
47
-
this project or the open source license(s) involved.
48
-
```
49
-
50
-
Then you just add a line to every git commit message:
51
-
52
-
Signed-off-by: Joe Smith <joe.smith@email.com>
53
-
54
-
Use your real name (sorry, no pseudonyms or anonymous contributions.)
55
-
56
-
If you set your `user.name` and `user.email` git configs, you can sign your
Copy file name to clipboardExpand all lines: README.md
+4-11Lines changed: 4 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,13 @@
4
4
5
5
### Introduction
6
6
7
-
Welcome to the **Workload Services Framework** repository. The repository contains a set of workloads optimized for Intel(R) Xeon(R) platforms. You can find the list of supported workloads in the [workload](workload) directory.
7
+
This is the **Workload Services Framework** repository. The repository contains a set of workloads optimized for Intel(R) Xeon(R) platforms. See the list of supported workloads under the [workload](workload) directory.
8
8
9
9
### Prerequisite
10
10
11
-
Before you begin, ensure the following:
12
-
13
-
- Sync your system date and time. This is required for any credential authorization.
11
+
- Sync your system date/time. This is required by any credential authorization.
14
12
- If you are behind a corporate firewall, please setup `http_proxy`, `https_proxy` and `no_proxy` in `/etc/environment`, and source the settings into the current shell environment.
15
-
- Run the [`setup-dev.sh`](doc/user-guide/preparing-infrastructure/setup-wsf.md#setup-devsh) script to setup the development host for workload development and evaluation. Refer to [Cloud and On-Premises Setup](doc/user-guide/preparing-infrastructure/setup-wsf.md) for additional SUT setup. SUT stands for `System Under Test`, or `workload test machines`.
13
+
- Run the [`setup-dev.sh`](doc/user-guide/preparing-infrastructure/setup-wsf.md#setup-devsh) script to setup the development host for workload development and evaluation. See [Cloud and On-Premises Setup](doc/user-guide/preparing-infrastructure/setup-wsf.md) for additional SUT setup. SUT stands for System Under Test, or workload test machines.
16
14
17
15
### Evaluate Workload
18
16
@@ -36,9 +34,6 @@ The WSF supports multiple validation backends. By default, the [terraform](doc/u
36
34
37
35
### Build Workload
38
36
39
-
To build a workload, use the following commands:
40
-
41
-
42
37
```
43
38
mkdir -p build
44
39
cd build
@@ -50,16 +45,14 @@ make
50
45
51
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.
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).
Copy file name to clipboardExpand all lines: doc/developer-guide/component-design/docker-config.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,13 @@ worker-0:
23
23
where
24
24
- The top level keys are the SUT hostnames. The number of the SUT hosts must match what is specified in `cluster-config.yaml`. The SUT hosts are named against their SUT workgroup. For example, for the workers, the SUT hosts are named as `worker-0`, `worker-1`, etc. For clients, the SUT hosts are named as `client-0`, `client-1`, etc.
25
25
- The value of each SUT host is a list of containers to be scheduled on the SUT host. The list order is not enforced.
26
-
- Each container is described as a dictionary of `image` (the full docker image name), `options` (the docker run command line arguments, as a string or a list), `command` (optional, will overwrite commands inside container if defined) and `export-logs` (whether logs should be collected on the container).
26
+
- Each container is described as a dictionary of
27
+
-`image`: Specify the full docker image name
28
+
-`options`: Specify the docker run command line arguments, as a string or a list.
29
+
-`command`: Optional. Specify any startup command. This will overwrite whatever is defined in the docker image.
30
+
-`export-logs` or `service-logs`: Optional. Specify whether logs should be collected on the container.
31
+
32
+
> The script will first collect logs on containers whose `export-logs` is true, which also signals that the workload execution is completed. Then collect logs on containers whose `service-logs` is `true`. `export-logs` and `service-logs` are exclusive options and can not both be true.
Copy file name to clipboardExpand all lines: doc/developer-guide/component-design/kubernetes-config.md
+2-42Lines changed: 2 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,49 +43,9 @@ spec:
43
43
44
44
### About `imagePullPolicy`
45
45
46
-
To ensure that the validation runs always on the latest code, it is recommended to use `imagePullPolicy: Always`. However, this requires to use a private docker registry. In a local development, `imagePullPolicy: IfNotPresent` is desired.
46
+
To ensure that the validation runs always on the latest code, it is recommended to use `imagePullPolicy: Always`.
47
47
48
-
If you use the `.m4`, `.j2`, or helm template, the variable `IMAGEPULLPOLICY` is defined to be either `IfNotPresent` or `Always`.
49
-
50
-
```m4
51
-
...
52
-
spec:
53
-
containers:
54
-
- name: database
55
-
image: IMAGENAME(wordpress5mt-defn(`DATABASE'))
56
-
imagePullPolicy: IMAGEPULLPOLICY
57
-
...
58
-
```
59
-
60
-
If you use the `.j2` template, use the following conditions:
Not all docker images are built equally. Some are less frequently updated and less sensitive to performance. Thus it is preferrable to use `imagePullPolicy: IfNotPresent` in all cases.
48
+
Not all docker images are built equally. Some are less frequently updated and less sensitive to performance. Thus it is preferrable to use `imagePullPolicy: IfNotPresent`.
Copy file name to clipboardExpand all lines: doc/user-guide/preparing-infrastructure/setup-wsf.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,8 +102,8 @@ where, if Kubernetes is used, the SUT hosts are assumed to form a Kubernetes clu
102
102
103
103
Use the following setup steps:
104
104
- Run the [`setup-dev.sh`][setup-dev.sh-self] script to setup the dev host.
105
-
- Completely optional in this setup, run the [`setup-reg.sh`][setup-reg.sh-self] script (on the dev host), if you plan to setup a local docker registry for building workloads and storing the built images.
106
-
- Depending on the workload types, you can run either the [`setup-sut-native.sh`][setup-sut-native.sh-self], [`setup-sut-docker.sh`][setup-sut-docker.sh-self] script or the [`setup-sut-k8s.sh`][setup-sut-k8s.sh-self] script to setup the SUT hosts. The native setup can run any baremetal native workloads. The docker setup can run most of the single-node containerized workloads (docker or docker compose). The Kubernetes setup can run all containerized workloads (not tied to any Cloud services) on premises.
105
+
- Completely optional in this setup, run the [`setup-reg.sh`][setup-reg.sh-self] script (**on the dev host**), if you plan to setup a local docker registry for building workloads and storing the built images.
106
+
- Depending on the workload types, you can run either the [`setup-sut-native.sh`][setup-sut-native.sh-self], [`setup-sut-docker.sh`][setup-sut-docker.sh-self] script or the [`setup-sut-k8s.sh`][setup-sut-k8s.sh-self] script (**on the dev host**) to setup the SUT hosts. The native setup can run any baremetal native workloads. The docker setup can run most of the single-node containerized workloads (docker or docker compose). The Kubernetes setup can run all containerized workloads (not tied to any Cloud services) on premises.
0 commit comments