Skip to content

Commit e72dbc4

Browse files
committed
Resolved merge conflicts
Signed-off-by: Rashmi <[email protected]>
2 parents dad8f87 + 9a62811 commit e72dbc4

File tree

442 files changed

+9175
-21182
lines changed

Some content is hidden

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

442 files changed

+9175
-21182
lines changed

.bazelrc

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@ startup --host_jvm_args="-Xmx8g"
55
build --announce_rc
66
build --color=yes
77

8-
build:production --config=lsan --strip=never --copt=-O3
8+
build:production --config=lsan --copt=-O3
99

1010
# C/C++ CONFIGS
1111
build --cxxopt=-std=c++14
12-
build --compilation_mode=dbg
12+
# Create debug information only for magma binaries (not for external dependencies).
13+
# --compilation_mode=dbg would also create debug information of external dependencies
14+
# and increase the size of artifacts drastically.
15+
# Needs --strip=never so that debug information is not removed by the linker.
16+
# See https://bazel.build/docs/user-manual#compilation-mode and
17+
# https://bazel.build/docs/user-manual#strip
18+
build --strip=never
19+
build --per_file_copt=^lte/gateway/c/.*$@-g
1320

1421
# DEFAULT TEST CONFIGURATION
1522
# Please read the GH issue #13073 before adding "test" options.

.devcontainer/bazel-base/Dockerfile

Lines changed: 11 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ RUN echo "Install general purpose packages" && \
1919
apt-get install -y --no-install-recommends \
2020
apt-transport-https \
2121
apt-utils \
22-
# dependencies of FreeDiameter
2322
bison \
2423
build-essential \
2524
ca-certificates \
@@ -29,39 +28,30 @@ RUN echo "Install general purpose packages" && \
2928
git \
3029
gnupg2 \
3130
g++ \
32-
# dependency of mobilityd (tests)
33-
iproute2 \
34-
# dependency of python services (e.g. magmad)
35-
iputils-ping \
31+
iproute2 `# dependency of mobilityd (tests)` \
32+
iputils-ping `# dependency of python services (e.g. magmad)` \
3633
flex \
3734
libconfig-dev \
38-
# dependency of @sentry_native//:sentry
39-
libcurl4-openssl-dev \
40-
# dependencies of oai/mme
35+
libcurl4-openssl-dev `# dependency of @sentry_native//:sentry` \
4136
libczmq-dev \
4237
libgcrypt-dev \
4338
libgmp3-dev \
4439
libidn11-dev \
4540
libsctp1 \
4641
libsqlite3-dev \
47-
# dependency of sctpd
48-
libsctp-dev \
42+
libsctp-dev `# dependency of sctpd` \
4943
libssl-dev \
50-
# dependency of pip systemd
51-
libsystemd-dev \
44+
libsystemd-dev `# dependency of pip systemd` \
5245
lld \
53-
# dependency of python services (e.g. magmad)
54-
net-tools \
55-
# dependency of python services (e.g. pipelined)
56-
netbase \
46+
net-tools `# dependency of python services (e.g. magmad)` \
47+
netbase `# dependency of python services (e.g. pipelined)` \
5748
python${PYTHON_VERSION} \
5849
python-is-python3 \
50+
python3-distutils `# dependency of bazel pip_parse rule` \
5951
software-properties-common \
60-
# dependency of python services (e.g. magmad)
61-
systemd \
52+
systemd `# dependency of python services (e.g. magmad)` \
6253
unzip \
63-
# dependency of liagent
64-
uuid-dev \
54+
uuid-dev `# dependency of liagent` \
6555
vim \
6656
wget \
6757
zip
@@ -82,38 +72,14 @@ RUN apt-get install -y --no-install-recommends \
8272
libpcap-dev=1.9.1-3 \
8373
libmnl-dev=1.0.4-2
8474

85-
## Install Fmt (Folly Dep)
86-
RUN git clone https://github.com/fmtlib/fmt.git && \
87-
cd fmt && \
88-
mkdir _build && \
89-
cd _build && \
90-
cmake -DBUILD_SHARED_LIBS=ON -DFMT_TEST=0 .. && \
91-
make -j"$(nproc)" && \
92-
make install && \
93-
cd / && \
94-
rm -rf fmt
95-
96-
# Facebook Folly C++ lib
97-
# Note: "Because folly does not provide any ABI compatibility guarantees from
98-
# commit to commit, we generally recommend building folly as a static library."
99-
# Here we checkout the hash for v2021.02.22.00 (arbitrary recent version)
100-
RUN git clone --depth 1 --branch v2021.02.15.00 https://github.com/facebook/folly && \
101-
cd /folly && \
102-
mkdir _build && \
103-
cd _build && \
104-
cmake -DBUILD_SHARED_LIBS=ON .. && \
105-
make -j"$(nproc)" && \
106-
make install && \
107-
cd / && \
108-
rm -rf folly
109-
11075
# setup magma artifactories and install magma dependencies
11176
RUN wget -qO - https://artifactory.magmacore.org:443/artifactory/api/gpg/key/public | apt-key add - && \
11277
add-apt-repository 'deb https://artifactory.magmacore.org/artifactory/debian-test focal-ci main' && \
11378
add-apt-repository 'deb https://artifactory.magmacore.org/artifactory/debian-test focal-1.7.0 main' && \
11479
apt-get update -y && \
11580
apt-get install -y --no-install-recommends \
11681
bcc-tools \
82+
libfolly-dev \
11783
liblfds710 \
11884
oai-asn1c \
11985
oai-gnutls \

.github/workflows/backport-pull-request.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ jobs:
3333
)
3434
)
3535
steps:
36+
- run: |
37+
echo '{
38+
"prTitle": "{commitMessages} [backport to {targetBranch}]"
39+
}' > .backportrc.json
3640
- name: Backport Action
3741
uses: sqren/backport-github-action@f54e19901f2a57f8b82360f2490d47ee82ec82c6 # [email protected]
3842
with:

.github/workflows/bazel.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,10 @@ jobs:
6363
6464
bazel_build_and_test:
6565
needs: path_filter
66-
# Only run workflow if this is a scheduled run on master branch,
67-
# if the workflow has been triggered manually or if it is a pull_request
68-
# that skip-duplicate-action wants to run again.
66+
# Only run workflow if this is a push to the magma repository,
67+
# if the workflow has been triggered manually or if it is a pull_request.
6968
if: |
70-
(github.event_name == 'schedule' && github.ref == 'refs/heads/master') ||
69+
(github.event_name == 'push' && github.repository_owner == 'magma') ||
7170
needs.path_filter.outputs.files_changed == 'true' ||
7271
github.event_name == 'workflow_dispatch'
7372
strategy:
@@ -163,7 +162,7 @@ jobs:
163162
echo "Available storage:"
164163
df -h
165164
- name: Notify failure to slack
166-
if: failure() && (github.event_name == 'push' || github.event_name == 'schedule') && github.repository_owner == 'magma'
165+
if: failure() && github.event_name == 'push' && github.repository_owner == 'magma'
167166
uses: rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7 # [email protected]
168167
env:
169168
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_BAZEL_CI }}
@@ -219,11 +218,10 @@ jobs:
219218
220219
bazel_package:
221220
needs: path_filter
222-
# Only run workflow if this is a scheduled run on master branch,
223-
# if the workflow has been triggered manually or if it is a pull_request
224-
# that skip-duplicate-action wants to run again.
221+
# Only run workflow if this is a push to the magma repository,
222+
# if the workflow has been triggered manually or if it is a pull_request.
225223
if: |
226-
(github.event_name == 'schedule' && github.ref == 'refs/heads/master') ||
224+
(github.event_name == 'push' && github.repository_owner == 'magma') ||
227225
needs.path_filter.outputs.files_changed == 'true' ||
228226
github.event_name == 'workflow_dispatch'
229227
name: Bazel Package Job
@@ -266,7 +264,7 @@ jobs:
266264
echo "Available storage:"
267265
df -h
268266
- name: Notify failure to slack
269-
if: failure() && (github.event_name == 'push' || github.event_name == 'schedule') && github.repository_owner == 'magma'
267+
if: failure() && github.event_name == 'push' && github.repository_owner == 'magma'
270268
uses: rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7 # [email protected]
271269
env:
272270
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_BAZEL_CI }}
@@ -288,7 +286,7 @@ jobs:
288286
run: |
289287
./bazel/scripts/check_py_bazel.sh
290288
- name: Notify failure to slack
291-
if: failure() && (github.event_name == 'push' || github.event_name == 'schedule') && github.repository_owner == 'magma'
289+
if: failure() && github.event_name == 'push' && github.repository_owner == 'magma'
292290
uses: rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7 # [email protected]
293291
env:
294292
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_BAZEL_CI }}
@@ -310,7 +308,7 @@ jobs:
310308
run: |
311309
./bazel/scripts/check_c_cpp_bazel.sh
312310
- name: Notify failure to slack
313-
if: failure() && (github.event_name == 'push' || github.event_name == 'schedule') && github.repository_owner == 'magma'
311+
if: failure() && github.event_name == 'push' && github.repository_owner == 'magma'
314312
uses: rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7 # [email protected]
315313
env:
316314
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_BAZEL_CI }}

.github/workflows/build_all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
run: |
141141
pip3 install --upgrade pip
142142
pip3 install ansible fabric3 jsonpickle requests PyYAML
143-
vagrant plugin install vagrant-vbguest vagrant-vbguest vagrant-mutate
143+
vagrant plugin install vagrant-disksize vagrant-vbguest vagrant-mutate vagrant-reload
144144
- name: Open up network interfaces for VM
145145
run: |
146146
sudo mkdir -p /etc/vbox/

.github/workflows/cloud-workflow.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@ jobs:
4040
with:
4141
filters: |
4242
filesChanged:
43-
- [".github/workflows/cloud-workflow.yml", "lte/protos/**", "cwf/cloud/**", "feg/cloud/**", "lte/cloud/**", "orc8r/**"]
43+
- ".github/workflows/cloud-workflow.yml"
44+
- "lte/protos/**"
45+
- "cwf/cloud/**"
46+
- "feg/cloud/**"
47+
- "lte/cloud/**"
48+
- "orc8r/**"
49+
- "dp/cloud/**"
50+
- "dp/protos/**"
4451
- name: Save should_not_skip output
4552
if: always()
4653
run: |

.github/workflows/cwf-integ-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
run: |
9696
pip3 install --upgrade pip
9797
pip3 install ansible fabric3 jsonpickle requests PyYAML firebase_admin
98-
vagrant plugin install vagrant-vbguest
98+
vagrant plugin install vagrant-vbguest vagrant-reload vagrant-disksize
9999
- uses: actions/download-artifact@f023be2c48cc18debc3bacd34cb396e0295e2869 # pin@v2
100100
with:
101101
name: docker-images

.github/workflows/dp-workflow.yml

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
runs-on: ubuntu-latest
3232
outputs:
3333
cc: ${{ steps.filter.outputs.cc }}
34-
am: ${{ steps.filter.outputs.am }}
3534
rc: ${{ steps.filter.outputs.rc }}
3635
db: ${{ steps.filter.outputs.db }}
3736
helm: ${{ steps.filter.outputs.helm }}
@@ -52,14 +51,6 @@ jobs:
5251
- 'dp/protos/**'
5352
- 'dp/cloud/go/protos/**'
5453
- 'dp/cloud/go/active_mode_controller/protos'
55-
am:
56-
- '.github/workflows/dp-workflow.yml'
57-
- 'dp/cloud/go/active_mode_controller/**'
58-
- 'dp/cloud/docker/go/active_mode_controller/**'
59-
- 'dp/cloud/python/magma/db_service/**'
60-
- 'dp/protos/**'
61-
- 'dp/cloud/go/protos/**'
62-
- 'dp/cloud/go/active_mode_controller/protos'
6354
rc:
6455
- '.github/workflows/dp-workflow.yml'
6556
- 'dp/cloud/python/magma/radio_controller/**'
@@ -139,47 +130,6 @@ jobs:
139130
with:
140131
flags: unittests,configuration-controller
141132
name: codecov-configuration-controller
142-
fail_ci_if_error: false
143-
verbose: true
144-
145-
active_mode_controller_unit_tests:
146-
needs: path_filter
147-
if: ${{ needs.path_filter.outputs.am == 'true' }}
148-
name: "Active mode controller unit tests"
149-
runs-on: ubuntu-latest
150-
151-
defaults:
152-
run:
153-
working-directory: dp/cloud/go/active_mode_controller
154-
env:
155-
GO_VERSION: 1.18.3
156-
157-
steps:
158-
- name: Checkout code
159-
uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # pin@v2
160-
161-
- name: Set up Go ${{ env.GO_VERSION }}
162-
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # pin@v3
163-
with:
164-
go-version: ${{ env.GO_VERSION }}
165-
166-
- name: Run Go linter
167-
uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018 # pin@v2
168-
with:
169-
version: v1.46.2
170-
working-directory: dp/cloud/go/active_mode_controller
171-
skip-go-installation: true
172-
173-
- name: Run Go tests
174-
run: |
175-
go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic
176-
177-
- name: Upload coverage to Codecov
178-
uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # pin@v2
179-
with:
180-
flags: unittests,active-mode-controller
181-
name: codecov-active-mode-controller
182-
fail_ci_if_error: false
183133
verbose: true
184134

185135
radio_controller_unit_tests:
@@ -258,7 +208,6 @@ jobs:
258208
with:
259209
flags: unittests,radio-controller
260210
name: codecov-radio-controller
261-
fail_ci_if_error: false
262211
verbose: true
263212

264213
db_migration_check:
@@ -354,7 +303,6 @@ jobs:
354303
with:
355304
flags: unittests,db-service
356305
name: codecov-db-service
357-
fail_ci_if_error: false
358306
verbose: true
359307

360308
integration_tests_orc8r:

.github/workflows/federated-integ-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ jobs:
9595
run: |
9696
pip3 install --upgrade pip
9797
pip3 install ansible fabric3 jsonpickle requests PyYAML firebase_admin
98-
vagrant plugin install vagrant-vbguest vagrant-scp
98+
vagrant plugin install vagrant-vbguest vagrant-disksize vagrant-scp vagrant-reload
9999
- name: Vagrant Host prerequisites for federated integ test
100100
run: |
101101
cd ${{ env.AGW_ROOT }} && fab open_orc8r_port_in_vagrant
102-
cd ${{ env.MAGMA_ROOT }} && mkdir -p .cache/test_certs/ && mkdir -p .cache/feg/ && touch snowflake
102+
cd ${{ env.MAGMA_ROOT }} && mkdir -p .cache/test_certs/ && mkdir -p .cache/feg/
103103
cd ${{ env.MAGMA_ROOT }}/.cache/feg/ && touch snowflake
104104
- name: Open up network interfaces for VM
105105
run: |

.github/workflows/golang-build-test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ jobs:
219219
uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # pin@v2
220220
with:
221221
flags: src_go
222-
fail_ci_if_error: true
223222
verbose: true
224223
- name: Extract commit title
225224
id: commit

0 commit comments

Comments
 (0)