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

chore(ci): Mitigate Vagrant cloud rate limiting errors by logging in #13734

Merged
merged 1 commit into from
Aug 30, 2022

Conversation

LKreutzer
Copy link
Contributor

@LKreutzer LKreutzer commented Aug 25, 2022

Co-authored-by: Lars Kreutzer lars.kreutzer@tngtech.com
Co-authored-by: Krisztián Varga krisztian.varga@tngtech.com
Signed-off-by: Lars Kreutzer lars.kreutzer@tngtech.com

Summary

  • Log in to the vagrant cloud to mitigate rate limiting - this measure does not always work - which is why the caching is still needed.
  • Vagrant cloud API docs: https://www.vagrantup.com/docs/cli/login
  • The login persists across workflow steps.
    • This can be checked with: vagrant login --check
    • See testing run with these changes (aborted after successful log in steps and check).
  • The secret VAGRANT_TOKEN was created by Fabio Palumbo.

Test Plan

  • Test login on fork (with testing secret with the same name)
    Successful log in (this is the expected output):
    Screenshot from 2022-08-25 15-21-19

Additional Information

  • This change is backwards-breaking

@LKreutzer LKreutzer added the component: ci All updates on CI (Jenkins/CircleCi/Github Action) label Aug 25, 2022
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines. label Aug 25, 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
Copy link
Contributor

github-actions bot commented Aug 25, 2022

dp-workflow

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit 9a95478.

♻️ This comment has been updated with latest results.

@LKreutzer LKreutzer requested a review from nstng August 25, 2022 13:22
@LKreutzer LKreutzer marked this pull request as ready for review August 25, 2022 13:22
@LKreutzer LKreutzer requested a review from a team as a code owner August 25, 2022 13:22
@LKreutzer
Copy link
Contributor Author

LKreutzer commented Aug 25, 2022

  • Needs to be confirmed that the secret exists on magma/master @maxhbr

Copy link
Contributor

@nstng nstng left a comment

Choose a reason for hiding this comment

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

making sure this is not merged before secret is on magma

@LKreutzer LKreutzer requested a review from nstng August 29, 2022 07:34
@nstng
Copy link
Contributor

nstng commented Aug 29, 2022

from discussion: please check behavior on forks if secret is not present

@LKreutzer LKreutzer force-pushed the login_vagrant_cloud_mitigation branch from b8e9381 to 9c91327 Compare August 29, 2022 11:15
@pull-request-size pull-request-size bot added size/M Denotes a PR that changes 30-99 lines. and removed size/S Denotes a PR that changes 10-29 lines. labels Aug 29, 2022
@LKreutzer
Copy link
Contributor Author

from discussion: please check behavior on forks if secret is not present
@nstng added if conditional to check that the secret exists (tested the conditional in dummy workflow).

.github/workflows/cwf-integ-test.yml Outdated Show resolved Hide resolved
.github/workflows/lte-integ-test-bazel.yml Outdated Show resolved Hide resolved
.github/workflows/lte-integ-test.yml Outdated Show resolved Hide resolved
.github/workflows/federated-integ-test.yml Outdated Show resolved Hide resolved
.github/workflows/build_all.yml Outdated Show resolved Hide resolved
Co-authored-by: Lars Kreutzer lars.kreutzer@tngtech.com
Co-authored-by: Krisztián Varga krisztian.varga@tngtech.com

Signed-off-by: Lars Kreutzer <lars.kreutzer@tngtech.com>
@LKreutzer LKreutzer force-pushed the login_vagrant_cloud_mitigation branch from 9c91327 to 9a95478 Compare August 29, 2022 11:21
@nstng nstng merged commit 3cc4a54 into magma:master Aug 30, 2022
rsarwad pushed a commit to rsarwad/magma that referenced this pull request Sep 4, 2022
…agma#13734)

Co-authored-by: Lars Kreutzer lars.kreutzer@tngtech.com
Co-authored-by: Krisztián Varga krisztian.varga@tngtech.com

Signed-off-by: Lars Kreutzer <lars.kreutzer@tngtech.com>

Signed-off-by: Lars Kreutzer <lars.kreutzer@tngtech.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ci All updates on CI (Jenkins/CircleCi/Github Action) size/M Denotes a PR that changes 30-99 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants