-
Notifications
You must be signed in to change notification settings - Fork 26
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
build: disable internet access during the build step #241
build: disable internet access during the build step #241
Conversation
Signed-off-by: Esteve Fernandez <esteve.fernandez@tier4.jp>
@mitsudome-r @xmfcx I don't know who should be assigned as a reviewer for this PR. The spell check test is failing because it's waiting for tier4/autoware-spell-check-dict#585 |
@esteve Please wait for a while |
It seems that there are still packages in A that require external access during build. @esteve |
@HansRobo thanks for your review. I prefer not to add the option to disable this check, otherwise I worry that developers will bypass it and we won't notice (we don't have similar options for any of the other required checks). In any case, this PR is not meant to be merged as is right now, but once all the packages have been patched to not download artifacts by default (like tensorrt_yolo, for example), this PR can be merged and ensure that future packages don't access the network. The patch for tensorrt_yolo can be found at autowarefoundation/autoware.universe#3142, I'm tracking all the packages that need patching in autowarefoundation/autoware.universe#3137 I created a test PR (see autowarefoundation/autoware.universe#4375) to demonstrate how a PR that accesses the network would fail. |
@esteve It's ok to merge this pull-request after finishing autowarefoundation/autoware.universe#3142 and autowarefoundation/autoware.universe#3137. Could you please let me know, when everything is complete? |
@HansRobo we have merged autowarefoundation/autoware#3375 and will merge autowarefoundation/autoware-documentation#345 soon. In the mean time between autowarefoundation/autoware#3375 was submitted and it was merged, autowarefoundation/autoware.universe#3143 has conflicts because new artifacts were added, so I propose we merge this PR as soon as possible to avoid new artifacts being added to packages. @xmfcx @lexavtanke what do you think about merging this as soon as possible? |
@HansRobo @mitsudome-r @kminoda is this repository being utilized by some internal TIER IV repositories? Do any of those repositories download during the If not I would like to merge this. |
@xmfcx |
Also I've asked ChatGPT for a solution to see if there are any other way of doing it and it recommended following:
I didn't try it but separating the disable internet and restore internet into separate items might make it more readable. I'm not aware of further implications of this change, please just treat it as a suggestion. |
@xmfcx I prefer using the |
@esteve I see. What do you think about separating "disable internet" and "restore internet" into new steps? |
@xmfcx I don't think it's needed, because if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve this to prevent additional changes being made which downloads artifacts during build process. Any repo will need to update their action version anyways to have these applied anyways.
@xmfcx thanks! |
Description
This PR disables access to internet so that we make sure that packages do not download any artifacts during the build step.
Tests performed
Not applicable.
Effects on system behavior
Not applicable.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.