Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(feg): fix snowflake issue in feg integ test #13600

Merged
merged 4 commits into from
Sep 5, 2022

Conversation

wolfseb
Copy link
Contributor

@wolfseb wolfseb commented Aug 12, 2022

Summary

fixes #13540

Merge after #13781

This PR creates a file run.py, which is to be used instead of docker-compose up -d to start the FeG containers. It creates the snowflake file in /magma/.cache/feg/ if it does not exist already (if there is a directory snowflake in its place instead, it removes it first). Further related changes in this PR:

  • adapt the automatic and semi-automatic build processes to use ./run.py
  • change the documentation of the manual build process accordingly
  • remove a superfluous creation of a snowflake file in the wrong directory in the ci workflow
  • remove an unused, empty snowflake file in lte/gateway/python/.cache/feg/

Test Plan

  • Spin up the AGW, FeG, and orc8r and run the FeG integ tests and the connectivity test (automatic, semiautomatic, and manual should all work).
  • Check that if there is a folder magma/.cache/feg/snowflake/, the script will now automatically replace it with a snowflake file, which gets filled with an UUID.

Additional Information

  • This change is backwards-breaking

@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines. label Aug 12, 2022
@github-actions
Copy link
Contributor

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: docs Documentation-related issue labels Aug 12, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Aug 12, 2022

Oops! Looks like you failed the Python Format Check.

Howto

♻️ Updated: ✅ The check is passing the Python Format Check after the last commit.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 12, 2022

feg-workflow

    2 files  203 suites   39s ⏱️
374 tests 374 ✔️ 0 💤 0
388 runs  388 ✔️ 0 💤 0

Results for commit 37f08b3.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 12, 2022

dp-workflow

14 tests   14 ✔️  2m 23s ⏱️
  1 suites    0 💤
  1 files      0

Results for commit 37f08b3.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 12, 2022

agw-workflow

615 tests   611 ✔️  3m 57s ⏱️
    2 suites      4 💤
    2 files        0

Results for commit 37f08b3.

♻️ This comment has been updated with latest results.

@wolfseb wolfseb force-pushed the fix_snowflake_issue_in_FeG_integ_test branch from db3e094 to 383f159 Compare August 15, 2022 00:24
@wolfseb wolfseb added the component: feg FEG-gateway related issues label Aug 15, 2022
@wolfseb wolfseb force-pushed the fix_snowflake_issue_in_FeG_integ_test branch from 383f159 to 6cef0f6 Compare August 15, 2022 04:45
@github-actions github-actions bot removed the component: feg FEG-gateway related issues label Aug 15, 2022
@wolfseb wolfseb marked this pull request as ready for review August 15, 2022 06:15
@wolfseb wolfseb requested review from a team August 15, 2022 06:15
@wolfseb wolfseb requested review from a team as code owners August 15, 2022 06:15
@wolfseb wolfseb force-pushed the fix_snowflake_issue_in_FeG_integ_test branch from 6cef0f6 to 9c7b950 Compare August 15, 2022 23:17
@wolfseb wolfseb force-pushed the fix_snowflake_issue_in_FeG_integ_test branch from 9c7b950 to 00a0a43 Compare August 18, 2022 01:27
@wolfseb wolfseb force-pushed the fix_snowflake_issue_in_FeG_integ_test branch 2 times, most recently from a2b33d1 to 4b6e561 Compare August 21, 2022 23:44
@wolfseb wolfseb force-pushed the fix_snowflake_issue_in_FeG_integ_test branch 2 times, most recently from 5cfb9bf to a17c588 Compare August 23, 2022 01:34
@wolfseb wolfseb force-pushed the fix_snowflake_issue_in_FeG_integ_test branch 2 times, most recently from b166dc3 to 5faf1ad Compare August 23, 2022 04:49
@wolfseb wolfseb force-pushed the fix_snowflake_issue_in_FeG_integ_test branch from 5faf1ad to 143c29a Compare August 23, 2022 22:44
@voisey voisey requested a review from maxhbr August 25, 2022 07:55
@Neudrino Neudrino removed their request for review August 26, 2022 08:52
@wolfseb wolfseb force-pushed the fix_snowflake_issue_in_FeG_integ_test branch from 143c29a to 6c5907f Compare August 28, 2022 23:53
@voisey
Copy link
Contributor

voisey commented Aug 29, 2022

Could someone from @magma/approvers-agw-integtests please take a look at this? It fixes the local running ot the FeG integ tests :)

Copy link
Contributor

@ulaskozat ulaskozat left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Sebastian Wolf <sebastian.wolf@tngtech.com>
Removes the snowflake file creation in $MAGMA_ROOT during the ci integ
test. The correct snowflake file is still being created.

Signed-off-by: Sebastian Wolf <sebastian.wolf@tngtech.com>
Signed-off-by: Sebastian Wolf <sebastian.wolf@tngtech.com>
Fixes the incorrect creation of the snowflake file by introducing a
`run.py` executable instead of using `docker-compose up -d`, which
creates the file before docker tries to mount it. The usage is also
changed in the corresponding fabfile for the automated workflow.

Signed-off-by: Sebastian Wolf <sebastian.wolf@tngtech.com>
@wolfseb wolfseb force-pushed the fix_snowflake_issue_in_FeG_integ_test branch from 6c5907f to 37f08b3 Compare August 30, 2022 07:52
@wolfseb wolfseb added ready2merge This PR is ready to be merged (is approved and passes all required checks) and removed ready2merge This PR is ready to be merged (is approved and passes all required checks) labels Aug 30, 2022
@voisey voisey merged commit e5141ba into magma:master Sep 5, 2022
mpfirrmann pushed a commit to wolfseb/magma that referenced this pull request Sep 5, 2022
* chore(feg): remove superfluous snowflake file

Signed-off-by: Sebastian Wolf <sebastian.wolf@tngtech.com>

* chore(ci): remove superfluous creation of a snowflake file

Removes the snowflake file creation in $MAGMA_ROOT during the ci integ
test. The correct snowflake file is still being created.

Signed-off-by: Sebastian Wolf <sebastian.wolf@tngtech.com>

* docs: add changed commands to feg integ test documentation

Signed-off-by: Sebastian Wolf <sebastian.wolf@tngtech.com>

* fix(feg): fix snowflake file issue in feg integ test

Fixes the incorrect creation of the snowflake file by introducing a
`run.py` executable instead of using `docker-compose up -d`, which
creates the file before docker tries to mount it. The usage is also
changed in the corresponding fabfile for the automated workflow.

Signed-off-by: Sebastian Wolf <sebastian.wolf@tngtech.com>

Signed-off-by: Sebastian Wolf <sebastian.wolf@tngtech.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: agw Access gateway-related issue component: ci All updates on CI (Jenkins/CircleCi/Github Action) component: docs Documentation-related issue ready2merge This PR is ready to be merged (is approved and passes all required checks) size/M Denotes a PR that changes 30-99 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix snowflake issue in FeG integ test
7 participants