Skip to content

Commit ca56119

Browse files
committed
adapt max cpu usage
1 parent 0c2c9a6 commit ca56119

File tree

5 files changed

+347
-8
lines changed

5 files changed

+347
-8
lines changed

.github/workflows/buildGEMOC2.yml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
#
2+
name: BuildGEMOC
3+
4+
on:
5+
push:
6+
7+
jobs:
8+
pomfirst-build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
with:
15+
submodules: 'true'
16+
- name: Show context
17+
run: |
18+
id -u
19+
id -g
20+
echo $HOME
21+
ls -lsa $HOME
22+
echo ${{ github.workspace }}
23+
ls -lsa ${{ github.workspace }}
24+
- name: Cache Maven packages
25+
uses: actions/cache@v4
26+
with:
27+
path: ~/.m2
28+
key: ${{ runner.os }}-m2-pomfirst-${{ hashFiles('**/pom.xml', '**/MANIFEST.MF', '**/*.target') }}
29+
restore-keys: ${{ runner.os }}-m2-pomfirst
30+
- name: Set UID and GID env
31+
# required to correctly map the userId in the docker image
32+
run: |
33+
echo "UID=$(id -u)" >> $GITHUB_ENV
34+
echo "GID=$(id -g)" >> $GITHUB_ENV
35+
- name: Generate protocol in container
36+
uses: addnab/docker-run-action@v3
37+
with:
38+
image: gemoc/gemoc-builder:latest
39+
options: -v ${{ github.workspace }}:/home/ubuntu/src -v ${{ env.HOME }}/.m2:/home/ubuntu/.m2
40+
run: |
41+
echo "This step is using a Public Docker Container Action "
42+
./generate_protocols.sh
43+
- name: pomfirst build
44+
uses: addnab/docker-run-action@v3
45+
with:
46+
image: gemoc/gemoc-builder:latest
47+
options: -v ${{ github.workspace }}:/home/ubuntu/src -v ${{ env.HOME }}/.m2:/home/ubuntu/.m2
48+
run: |
49+
echo "This step is using a Public Docker Container Action "
50+
./pomfirst_build.sh
51+
52+
53+
tycho-build:
54+
runs-on: ubuntu-latest
55+
56+
steps:
57+
- name: Checkout code
58+
uses: actions/checkout@v4
59+
with:
60+
submodules: 'true'
61+
- name: Show context
62+
run: |
63+
id -u
64+
id -g
65+
echo $HOME
66+
ls -lsa $HOME
67+
echo ${{ github.workspace }}
68+
ls -lsa ${{ github.workspace }}
69+
- name: Cache Maven packages
70+
uses: actions/cache@v4
71+
with:
72+
path: ~/.m2
73+
key: ${{ runner.os }}-m2-tycho-${{ hashFiles('**/pom.xml', '**/MANIFEST.MF', '**/*.target') }}
74+
restore-keys: ${{ runner.os }}-m2-tycho
75+
- name: Set UID and GID vars
76+
id: vars
77+
# required to correctly map the userId in the docker image
78+
run: |
79+
echo "uid=$(id -u)" >> $GITHUB_OUTPUT
80+
echo "gid=$(id -g)" >> $GITHUB_OUTPUT
81+
- name: Generate Protocol classes
82+
uses: addnab/docker-run-action@v3
83+
with:
84+
image: gemoc/gemoc-builder:latest
85+
options: -v ${{ github.workspace }}:/home/ubuntu/src -v ${{ env.HOME }}/.m2:/home/ubuntu/.m2
86+
run: |
87+
id
88+
./generate_protocols.sh
89+
- name: tycho linux_no_system_test build
90+
uses: addnab/docker-run-action@v3
91+
with:
92+
image: gemoc/gemoc-builder:latest
93+
options: -v ${{ github.workspace }}:/home/ubuntu/src -v ${{ env.HOME }}/.m2:/home/ubuntu/.m2 --env UID=${{ steps.vars.outputs.uid }} --env GID=${{ steps.vars.outputs.gid }}
94+
run: |
95+
id
96+
env
97+
chmod -R a+rw /home/ubuntu/.m2
98+
99+
/entrypoint ./tycho_build.sh linux_no_system_test
100+
101+
- name: Publish Test Results
102+
uses: EnricoMi/[email protected]
103+
if: always() # always run even if the previous step fails
104+
with:
105+
junit_files: "**/target/surefire-reports/TEST-*.xml"
106+

.github/workflows/buildGEMOC3.yml

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
#
2+
name: BuildGEMOC
3+
4+
on:
5+
push:
6+
7+
jobs:
8+
pomfirst-build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
with:
15+
submodules: 'true'
16+
- name: Show context
17+
run: |
18+
id -u
19+
id -g
20+
echo $HOME
21+
ls -lsa $HOME
22+
echo ${{ github.workspace }}
23+
ls -lsa ${{ github.workspace }}
24+
cd ~
25+
pwd
26+
- name: Cache Maven packages
27+
uses: actions/cache@v4
28+
with:
29+
path: ~/.m2
30+
key: ${{ runner.os }}-m2-pomfirst-${{ hashFiles('**/pom.xml') }}
31+
restore-keys: ${{ runner.os }}-m2-pomfirst
32+
- name: Set UID and GID env
33+
# required to correctly map the userId in the docker image
34+
run: |
35+
echo "UID=$(id -u)" >> $GITHUB_ENV
36+
echo "GID=$(id -g)" >> $GITHUB_ENV
37+
echo "RUNNER_HOME=$HOME" >> $GITHUB_ENV
38+
- name: Generate protocol in container
39+
uses: addnab/docker-run-action@v3
40+
with:
41+
image: gemoc/gemoc-builder:latest
42+
options: -v ${{ github.workspace }}:/home/ubuntu/src -v ${{ env.RUNNER_HOME }}/.m2:/home/ubuntu/.m2
43+
run: |
44+
echo "This step is using a Public Docker Container Action "
45+
/entrypoint ./generate_protocols.sh
46+
- name: pomfirst build
47+
uses: addnab/docker-run-action@v3
48+
with:
49+
image: gemoc/gemoc-builder:latest
50+
options: -v ${{ github.workspace }}:/home/ubuntu/src -v ${{ env.RUNNER_HOME }}/.m2:/home/ubuntu/.m2
51+
run: |
52+
echo "This step is using a Public Docker Container Action "
53+
/entrypoint ./pomfirst_build.sh
54+
ls -lsa /home/ubuntu
55+
ls -lsa /home/ubuntu/.m2
56+
- name: Show context
57+
run: |
58+
id -u
59+
id -g
60+
echo $HOME
61+
ls -lsa $HOME
62+
echo $HOME/.m2
63+
ls -lsa $HOME/.m2
64+
65+
tycho-build:
66+
runs-on: ubuntu-latest
67+
68+
steps:
69+
- name: Checkout code
70+
uses: actions/checkout@v4
71+
with:
72+
submodules: 'true'
73+
- name: Show context
74+
run: |
75+
id -u
76+
id -g
77+
echo $HOME
78+
ls -lsa $HOME
79+
echo ${{ github.workspace }}
80+
ls -lsa ${{ github.workspace }}
81+
- name: Cache Maven packages
82+
uses: actions/cache@v3
83+
with:
84+
path: ~/.m2
85+
key: ${{ runner.os }}-m2-tycho-${{ hashFiles('**/pom.xml', '**/MANIFEST.MF', '**/*.target') }}
86+
restore-keys: ${{ runner.os }}-m2-tycho
87+
- name: Set UID and GID vars
88+
id: vars
89+
# required to correctly map the userId in the docker image
90+
run: |
91+
echo "uid=$(id -u)" >> $GITHUB_OUTPUT
92+
echo "gid=$(id -g)" >> $GITHUB_OUTPUT
93+
echo "RUNNER_HOME=$HOME" >> $GITHUB_ENV
94+
- name: Generate Protocol classes
95+
uses: addnab/docker-run-action@v3
96+
with:
97+
image: gemoc/gemoc-builder:latest
98+
options: -v ${{ github.workspace }}:/home/ubuntu/src -v ${{ env.RUNNER_HOME }}/.m2:/home/ubuntu/.m2
99+
run: |
100+
id
101+
/entrypoint ./generate_protocols.sh
102+
- name: tycho linux_no_system_test build
103+
uses: addnab/docker-run-action@v3
104+
with:
105+
image: gemoc/gemoc-builder:latest
106+
options: -v ${{ github.workspace }}:/home/ubuntu/src -v ${{ env.RUNNER_HOME }}/.m2:/home/ubuntu/.m2 --env UID=${{ steps.vars.outputs.uid }} --env GID=${{ steps.vars.outputs.gid }}
107+
run: |
108+
id
109+
env
110+
ls -lsa /home/ubuntu/.m2
111+
chmod -R a+rw /home/ubuntu/.m2
112+
chown -R ${{ steps.vars.outputs.uid }}:${{ steps.vars.outputs.gid }} /home/ubuntu/.m2
113+
ls -lsa /home/ubuntu/.m2
114+
115+
/entrypoint ./tycho_build.sh linux_no_system_test
116+
117+
- name: Publish Test Results
118+
uses: EnricoMi/[email protected]
119+
if: always() # always run even if the previous step fails
120+
with:
121+
junit_files: "**/target/surefire-reports/TEST-*.xml"

.github/workflows/buildGEMOC4.yml

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
#
2+
name: BuildGEMOC
3+
4+
on:
5+
push:
6+
7+
jobs:
8+
pomfirst-build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
with:
15+
submodules: 'true'
16+
- name: Show context
17+
run: |
18+
id -u
19+
id -g
20+
echo $HOME
21+
ls -lsa $HOME
22+
echo ${{ github.workspace }}
23+
ls -lsa ${{ github.workspace }}
24+
cd ~
25+
pwd
26+
- name: Cache Maven packages
27+
uses: actions/cache@v4
28+
with:
29+
path: ~/.m2
30+
key: ${{ runner.os }}-m2-pomfirst-${{ hashFiles('**/pom.xml') }}
31+
restore-keys: ${{ runner.os }}-m2-pomfirst
32+
33+
- name: Set UID and GID env
34+
id: vars
35+
# required to correctly map the userId in the docker image
36+
run: |
37+
echo "GHRUNNER_UID=$(id -u)" >> $GITHUB_ENV
38+
echo "GHRUNNER_GID=$(id -g)" >> $GITHUB_ENV
39+
echo "GHRUNNER_HOME=$HOME" >> $GITHUB_ENV
40+
- name: Generate protocol in container
41+
uses: addnab/docker-run-action@v3
42+
with:
43+
image: gemoc/gemoc-builder:latest
44+
options: -v ${{ github.workspace }}:/home/ubuntu/src -v ${{ env.GHRUNNER_HOME }}/.m2:/home/ubuntu/.m2 --env UID=${{ env.GHRUNNER_UID }} --env GID=${{ env.GHRUNNER_GID }}
45+
run: |
46+
echo "This step is using a Public Docker Container Action "
47+
/entrypoint ./generate_protocols.sh
48+
- name: pomfirst build
49+
uses: addnab/docker-run-action@v3
50+
with:
51+
image: gemoc/gemoc-builder:latest
52+
options: -v ${{ github.workspace }}:/home/ubuntu/src -v ${{ env.GHRUNNER_HOME }}/.m2:/home/ubuntu/.m2 --env UID=${{ env.GHRUNNER_UID }} --env GID=${{ env.GHRUNNER_GID }}
53+
run: |
54+
chmod -R a+rw /home/ubuntu/.m2
55+
chown -R ${{ env.GHRUNNER_UID }}:${{ env.GHRUNNER_GID }} /home/ubuntu/.m2
56+
/entrypoint ./pomfirst_build.sh
57+
ls -lsa /home/ubuntu
58+
ls -lsa /home/ubuntu/.m2
59+
60+
tycho-build:
61+
runs-on: ubuntu-latest
62+
steps:
63+
- name: Checkout code
64+
uses: actions/checkout@v4
65+
with:
66+
submodules: 'true'
67+
- name: Show context
68+
run: |
69+
id -u
70+
id -g
71+
echo $HOME
72+
ls -lsa $HOME
73+
echo ${{ github.workspace }}
74+
ls -lsa ${{ github.workspace }}
75+
- name: Cache Maven packages
76+
uses: actions/cache@v3
77+
with:
78+
path: ~/.m2
79+
key: ${{ runner.os }}-m2-tycho-${{ hashFiles('**/pom.xml', '**/MANIFEST.MF', '**/*.target') }}
80+
restore-keys: ${{ runner.os }}-m2-tycho
81+
- name: Set UID and GID env
82+
id: vars
83+
# required to correctly map the userId in the docker image
84+
run: |
85+
echo "GHRUNNER_UID=$(id -u)" >> $GITHUB_ENV
86+
echo "GHRUNNER_GID=$(id -g)" >> $GITHUB_ENV
87+
echo "GHRUNNER_HOME=$HOME" >> $GITHUB_ENV
88+
- name: Generate Protocol classes
89+
uses: addnab/docker-run-action@v3
90+
with:
91+
image: gemoc/gemoc-builder:latest
92+
options: -v ${{ github.workspace }}:/home/ubuntu/src -v ${{ env.GHRUNNER_HOME }}/.m2:/home/ubuntu/.m2 --env UID=${{ env.GHRUNNER_UID }} --env GID=${{ env.GHRUNNER_GID }}
93+
run: |
94+
id
95+
/entrypoint ./generate_protocols.sh
96+
- name: tycho linux_no_system_test build
97+
uses: addnab/docker-run-action@v3
98+
with:
99+
image: gemoc/gemoc-builder:latest
100+
options: -v ${{ github.workspace }}:/home/ubuntu/src -v ${{ env.GHRUNNER_HOME }}/.m2:/home/ubuntu/.m2 --env UID=${{ env.GHRUNNER_UID }} --env GID=${{ env.GHRUNNER_GID }}
101+
# first run as root and fix .m2 access right, then run as ubuntu via the entrypoint
102+
run: |
103+
chmod -R a+rw /home/ubuntu/.m2
104+
chown -R ${{ steps.vars.outputs.uid }}:${{ steps.vars.outputs.gid }} /home/ubuntu/.m2
105+
/entrypoint ./tycho_build.sh linux_no_system_test
106+
107+
- name: Publish Test Results
108+
uses: EnricoMi/[email protected]
109+
if: always() # always run even if the previous step fails
110+
with:
111+
junit_files: "**/target/surefire-reports/TEST-*.xml"
112+

.gitmodules

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
[submodule "gemoc-studio"]
22
path = gemoc-studio
3-
url = https://github.com/eclipse/gemoc-studio.git
3+
url = https://github.com/eclipse-gemoc/gemoc-studio.git
44
branch = master
55
[submodule "gemoc-studio-modeldebugging"]
66
path = gemoc-studio-modeldebugging
7-
url = https://github.com/eclipse/gemoc-studio-modeldebugging.git
7+
url = https://github.com/eclipse-gemoc/gemoc-studio-modeldebugging.git
88
branch = master
99
[submodule "gemoc-studio-execution-ale"]
1010
path = gemoc-studio-execution-ale
11-
url = https://github.com/eclipse/gemoc-studio-execution-ale.git
11+
url = https://github.com/eclipse-gemoc/gemoc-studio-execution-ale.git
1212
branch = master
1313
[submodule "gemoc-studio-execution-moccml"]
1414
path = gemoc-studio-execution-moccml
15-
url = https://github.com/eclipse/gemoc-studio-execution-moccml.git
15+
url = https://github.com/eclipse-gemoc/gemoc-studio-execution-moccml.git
1616
branch = master
1717
[submodule "gemoc-studio-moccml"]
1818
path = gemoc-studio-moccml
19-
url = https://github.com/eclipse/gemoc-studio-moccml.git
19+
url = https://github.com/eclipse-gemoc/gemoc-studio-moccml.git
2020
branch = master
2121
[submodule "gemoc-studio-execution-java"]
2222
path = gemoc-studio-execution-java
23-
url = https://github.com/eclipse/gemoc-studio-execution-java.git
23+
url = https://github.com/eclipse-gemoc/gemoc-studio-execution-java.git
2424
branch = master
2525
[submodule "gemoc-studio-commons"]
2626
path = gemoc-studio-commons
27-
url = https://github.com/eclipse/gemoc-studio-commons.git
27+
url = https://github.com/eclipse-gemoc/gemoc-studio-commons.git
2828
branch = master

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
resources:
1717
limits:
1818
memory: '8Gi'
19-
cpu: '4000m'
19+
cpu: '2000m'
2020
requests:
2121
memory: '7Gi'
2222
cpu: '2000m'

0 commit comments

Comments
 (0)