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(dp): Fix typo in domain-proxy Makefile #13019

Merged
merged 1 commit into from Jun 19, 2022
Merged

Conversation

sklgromek
Copy link
Contributor

Signed-off-by: Tomasz Gromowski tomasz@freedomfi.com

Summary

Fix typo iuntroduced by #12999

Test Plan

Additional Information

  • This change is backwards-breaking

@sklgromek sklgromek requested review from a team and jkmar June 18, 2022 07:23
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines. label Jun 18, 2022
@sklgromek sklgromek requested a review from xbend June 18, 2022 07:23
@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 the component: dp All updates to Domain Proxy dp module label Jun 18, 2022
@sklgromek sklgromek force-pushed the dp-fix-ci branch 2 times, most recently from 1ae6063 to ceb477d Compare June 18, 2022 07:33
@sklgromek sklgromek requested a review from a team as a code owner June 18, 2022 07:33
@sklgromek sklgromek requested a review from 119Vik June 18, 2022 07:33
@github-actions github-actions bot added the component: ci All updates on CI (Jenkins/CircleCi/Github Action) label Jun 18, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jun 18, 2022

dp-workflow

18 tests   18 ✔️  5m 4s ⏱️
  2 suites    0 💤
  2 files      0

Results for commit 51d3ae8.

♻️ This comment has been updated with latest results.

@pull-request-size pull-request-size bot added size/M Denotes a PR that changes 30-99 lines. and removed size/XS Denotes a PR that changes 0-9 lines. labels Jun 18, 2022
@pull-request-size pull-request-size bot added size/XS Denotes a PR that changes 0-9 lines. and removed size/M Denotes a PR that changes 30-99 lines. labels Jun 18, 2022
Signed-off-by: Tomasz Gromowski <tomasz@freedomfi.com>
@xbend xbend added the ready2merge This PR is ready to be merged (is approved and passes all required checks) label Jun 18, 2022
@xbend
Copy link
Contributor

xbend commented Jun 18, 2022

@magma/approvers-ci
Please review and approve the changes in this PR. It fixes master CI runs, and since the dp workflow will soon be made a required CI job, it's pretty urgent we get this into master.

@@ -6,7 +6,7 @@ on: # yamllint disable-line rule:truthy
branches:
- master
- 'v1.*'
pull_request_target:
pull_request:
Copy link
Member

Choose a reason for hiding this comment

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

this reverts the change suggested in #12855 (comment). Can you elaborate why this was done? I think @Neudrino had some reason for his suggestion

Copy link
Contributor

Choose a reason for hiding this comment

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

The suggestion was to use the pull_request_target trigger action to make secrets available. We took the advice without actually verifying the validity of the suggestion.
pull_request_target is documented as follows:

This event runs in the context of the base of the pull request, rather than in the context of the merge commit, as the pull_request event does. This prevents execution of unsafe code from the head of the pull request that could alter your repository or steal any secrets you use in your workflow. This event allows your workflow to do things like label or comment on pull requests from forks. Avoid using this event if you need to build or run code from the pull request.

We are building code from the pull request, as that is the whole idea of running integration tests.

Secondly, the only secret we use is the GITHUB_TOKEN which is an exception to availability of secrets in PRs from forks:

With the exception of GITHUB_TOKEN, secrets are not passed to the runner when a workflow is triggered from a forked repository.

Now, since we have introduced the pull_request_target, the CI was run from the base of the PRs, rather from the head of the PR branch, and that hid the mistake in the Makefile.

Copy link
Member

@maxhbr maxhbr left a comment

Choose a reason for hiding this comment

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

The changes look good, just the pull_request_target -> pull_request change is not explained

Copy link
Member

@maxhbr maxhbr left a comment

Choose a reason for hiding this comment

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

LGTM

@maxhbr maxhbr merged commit c6c9bac into magma:master Jun 19, 2022
@xbend xbend deleted the dp-fix-ci branch June 20, 2022 09:16
emakeev pushed a commit to emakeev/magma that referenced this pull request Aug 5, 2022
Signed-off-by: Tomasz Gromowski <tomasz@freedomfi.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) component: dp All updates to Domain Proxy dp module ready2merge This PR is ready to be merged (is approved and passes all required checks) size/XS Denotes a PR that changes 0-9 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Proposal] Make Domain proxy integration tests with orc8r required check
3 participants