Skip to content

chore: Build the Python services with Bazel for CWF Docker images#15106

Merged
LKreutzer merged 1 commit intomasterfrom
python_cwf_docker_bazel
Mar 9, 2023
Merged

chore: Build the Python services with Bazel for CWF Docker images#15106
LKreutzer merged 1 commit intomasterfrom
python_cwf_docker_bazel

Conversation

@LKreutzer
Copy link
Copy Markdown
Contributor

@LKreutzer LKreutzer commented Mar 1, 2023

Summary

Test Plan

LTE integ: ✔️

FEG integ: ✔️

CWF integ: ✔️ (Gx/Gy tests are failing - this was already the case before the recent refactoring, check green runs on https://magma-ci.web.app/.)

Additional Information

  • This change is backwards-breaking

@LKreutzer LKreutzer added CWF-Integ-Test bazel-cleanup BE fixups that came out of the Bazelification effort bazel changes for the Bazelification effort labels Mar 1, 2023
@LKreutzer LKreutzer self-assigned this Mar 1, 2023
@pull-request-size pull-request-size bot added the size/L Denotes a Pull Request that changes 100-499 lines. label Mar 1, 2023
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 1, 2023

Thanks for opening a PR! 💯

A couple initial guidelines

Howto

  • Reviews. The "Reviewers" listed for this PR are the Magma maintainers who will shepherd it.
  • Checks. All required CI checks must pass before merge.
  • Merge. Once approved and passing CI checks, use the ready2merge label to indicate the maintainers can merge your PR.

More info

Please take a moment to read through the Magma project's

If this is your first Magma PR, also consider reading

@github-actions github-actions bot added component: agw Access gateway-related issue component: ci All updates on CI (Jenkins/CircleCi/Github Action) component: cwf component: orc8r Orchestrator-related issue labels Mar 1, 2023
Comment thread cwf/gateway/docker/python/Dockerfile
Comment thread cwf/gateway/docker/python/Dockerfile
Comment thread lte/gateway/python/BUILD.bazel
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 1, 2023

Bazel unit-test results --config=production

1 files  ±    0  0 suites   - 129   0s ⏱️ - 3m 14s
0 tests  - 598  0 ✔️  - 598  0 💤 ±0  0 ±0 
0 runs   - 599  0 ✔️  - 599  0 💤 ±0  0 ±0 

Results for commit 6c3c94e. ± Comparison against base commit fc06257.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 1, 2023

Bazel unit-test results --config=asan

1 files  ±    0  0 suites   - 129   0s ⏱️ - 3m 10s
0 tests  - 598  0 ✔️  - 598  0 💤 ±0  0 ±0 
0 runs   - 599  0 ✔️  - 599  0 💤 ±0  0 ±0 

Results for commit 6c3c94e. ± Comparison against base commit fc06257.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 1, 2023

Bazel unit-test results

  1 files  ±    0  61 suites   - 171   1m 49s ⏱️ - 1m 25s
61 tests  - 658  61 ✔️  - 658  0 💤 ±0  0 ±0 
61 runs   - 659  61 ✔️  - 659  0 💤 ±0  0 ±0 

Results for commit 6c3c94e. ± Comparison against base commit fc06257.

This pull request removes 658 tests.
AMFAppProcedureTest ‑ GnbInitiatedNGReset
AMFAppProcedureTest ‑ ImplicitDeregDuplicateSuciReg
AMFAppProcedureTest ‑ PeriodicRegistraionNoTmsi
AMFAppProcedureTest ‑ ReRegistraion
AMFAppProcedureTest ‑ RegistrationAfterFourRegAcceptMsgs
AMFAppProcedureTest ‑ SctpShutWithServiceRequest
AMFAppProcedureTest ‑ ServiceRequestHighPriority
AMFAppProcedureTest ‑ ServiceRequestMTWithPDU
AMFAppProcedureTest ‑ ServiceRequestMTWithoutUplinkDataStatus
AMFAppProcedureTest ‑ ServiceRequestSignalWithPDU
…

♻️ This comment has been updated with latest results.

@LKreutzer LKreutzer force-pushed the python_cwf_docker_bazel branch from eeb62f3 to 324976c Compare March 1, 2023 11:28
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 1, 2023

CWF integration test results

  1 files  +  1    1 suites  +1   58m 15s ⏱️ + 58m 15s
40 tests +40  21 ✔️ +21  11 💤 +11    8 +  8 
62 runs  +62  22 ✔️ +22  11 💤 +11  29 +29 

For more details on these failures, see this check.

Results for commit 81780c5. ± Comparison against base commit 8b770fd.

♻️ This comment has been updated with latest results.

@LKreutzer LKreutzer force-pushed the python_cwf_docker_bazel branch 3 times, most recently from 69015a7 to 63d87f8 Compare March 3, 2023 09:14
@LKreutzer LKreutzer force-pushed the python_cwf_docker_bazel branch 3 times, most recently from c0761b7 to 695f84f Compare March 3, 2023 10:11
Comment thread cwf/protos/BUILD.bazel
)

python_proto_library(
name = "mconfigs_python_proto",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed in orc8r/gateway/python/magma/configuration/BUILD.bazel

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be helpful to add this as a comment in the file? Same for your two comments in .github/workflows/cwf-integ-test.yml

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added these comments to make it a bit easier for the reviewers. I don't think it makes sense to add them to the code. Here it should be obvious where this is used with a simple full text search. The comments in the workflow are only true at the moment and will get outdated very soon. We have the same steps in many other workflows.

shell: bash
run: |
echo "Available storage:"
df -h
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are now ca. 16GB left. But there were out of space failures sometimes without this change.

steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # [email protected]
- name: Maximize build space
uses: ./.github/workflows/composite/maximize-build-space
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This creates ca 14 GB additional space.

@LKreutzer LKreutzer force-pushed the python_cwf_docker_bazel branch from 695f84f to f3e7a3c Compare March 6, 2023 15:56
@LKreutzer
Copy link
Copy Markdown
Contributor Author

Fixed error with shared Docker files between FEG and CWAG tests.

LTE integ:

FEG integ:

CWF integ:

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 6, 2023

FEG integration test results

32 tests  ±0   32 ✔️ ±0   19m 33s ⏱️ - 1m 59s
32 suites ±0     0 💤 ±0 
32 files   ±0     0 ±0 

Results for commit 81780c5. ± Comparison against base commit 8b770fd.

♻️ This comment has been updated with latest results.

@LKreutzer LKreutzer force-pushed the python_cwf_docker_bazel branch from f3e7a3c to 81780c5 Compare March 7, 2023 10:56
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 7, 2023

LTE containerizes integ test results - extended_tests

46 tests  +46   46 ✔️ +46   1h 19m 15s ⏱️ + 1h 19m 15s
46 suites +46     0 💤 ±  0 
46 files   +46     0 ±  0 

Results for commit 81780c5. ± Comparison against base commit 8b770fd.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 7, 2023

LTE containerizes integ test results - extended_tests_long

6 tests  ±0   6 ✔️ ±0   45m 26s ⏱️ -30s
6 suites ±0   0 💤 ±0 
6 files   ±0   0 ±0 

Results for commit 81780c5. ± Comparison against base commit 8b770fd.

♻️ This comment has been updated with latest results.

@LKreutzer LKreutzer marked this pull request as ready for review March 7, 2023 13:40
@LKreutzer LKreutzer requested review from a team as code owners March 7, 2023 13:40
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 7, 2023

LTE containerizes integ test results - precommit

121 tests  +1   120 ✔️ +1   2h 20m 1s ⏱️ + 21m 15s
121 suites +1       1 💤 ±0 
121 files   +1       0 ±0 

Results for commit 81780c5. ± Comparison against base commit 8b770fd.

♻️ This comment has been updated with latest results.

Comment thread lte/gateway/docker/services/python/Dockerfile Outdated
@LKreutzer LKreutzer force-pushed the python_cwf_docker_bazel branch from 81780c5 to 6c3c94e Compare March 9, 2023 09:57
Comment thread lte/gateway/release/BUILD.bazel
Comment thread cwf/protos/BUILD.bazel
)

python_proto_library(
name = "mconfigs_python_proto",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be helpful to add this as a comment in the file? Same for your two comments in .github/workflows/cwf-integ-test.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bazel changes for the Bazelification effort bazel-cleanup BE fixups that came out of the Bazelification effort component: agw Access gateway-related issue component: ci All updates on CI (Jenkins/CircleCi/Github Action) component: cwf component: orc8r Orchestrator-related issue CWF-Integ-Test size/L Denotes a Pull Request that changes 100-499 lines.

Projects

None yet

3 participants