Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Aug 21, 2020

After #10368, we've changed the way we build the images
on CI. We are overriding the ci scripts that we use
to build the image with the scripts taken from master
to not give roque PR authors the possibiility to run
something with the write credentials.

We should not override the in_container scripts, however
because they become part of the image, so we should use
those that came with the PR. That's why we have to move
the "in_container" scripts out of the "ci" folder and
only override the "ci" folder with the one from
master. We've made sure that those scripts in ci
are self-contained and they do not need reach outside of
that folder.

Also the static checks are done with local files mounted
on CI because we want to check all the files - not only
those that are embedded in the container.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

@boring-cyborg boring-cyborg bot added area:dev-tools area:docs area:Scheduler including HA (high availability) scheduler labels Aug 21, 2020
@potiuk potiuk requested review from kaxil, mik-laj and turbaszek August 21, 2020 10:43
@potiuk
Copy link
Member Author

potiuk commented Aug 21, 2020

@mik-laj -> this one is needed to fix #10441

Copy link
Member

@kaxil kaxil left a comment

Choose a reason for hiding this comment

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

Just trusting you on this one :)

@potiuk
Copy link
Member Author

potiuk commented Aug 21, 2020

Yeah. This one has no chance to pass now as PR because it needs to be merged to get working but I am running the build in my own forks' master. The trouble with "workflow_run" that if we want to change anything in the build process, we need to push it to master somewhere to test it :(

@potiuk
Copy link
Member Author

potiuk commented Aug 21, 2020

@potiuk potiuk force-pushed the do-not-override-in-container-scripts branch from 570fe48 to 84e747c Compare August 21, 2020 11:34
@potiuk potiuk force-pushed the do-not-override-in-container-scripts branch 5 times, most recently from 7746c77 to 48e2f2f Compare August 21, 2020 14:13
After apache#10368, we've changed the way we build the images
on CI. We are overriding the ci scripts that we use
to build the image with the scripts taken from master
to not give roque PR authors the possibiility to run
something with the write credentials.

We should not override the in_container scripts, however
because they become part of the image, so we should use
those that came with the PR. That's why we have to move
the "in_container" scripts out of the "ci" folder and
only override the "ci" folder with the one from
master. We've made sure that those scripts in ci
are self-contained and they do not need reach outside of
that folder.

Also the static checks are done with local files mounted
on CI because we want to check all the files - not only
those that are embedded in the container.
@potiuk potiuk force-pushed the do-not-override-in-container-scripts branch from 48e2f2f to 179d6c2 Compare August 21, 2020 14:42
@potiuk
Copy link
Member Author

potiuk commented Aug 21, 2020

Looks good: https://github.com/potiuk/airflow/runs/1012859548?check_suite_focus=true pushing it. I had to do another thing - disable the 6000 "skipped" tests in integration tests - they were not needed and with local mounts they caused "blocking I/O" on CI. But it works now :)

@potiuk potiuk merged commit 1cf1af6 into apache:master Aug 21, 2020
@potiuk potiuk deleted the do-not-override-in-container-scripts branch August 21, 2020 15:21
potiuk added a commit to potiuk/airflow that referenced this pull request Sep 14, 2020
…10442)

After apache#10368, we've changed the way we build the images
on CI. We are overriding the ci scripts that we use
to build the image with the scripts taken from master
to not give roque PR authors the possibiility to run
something with the write credentials.

We should not override the in_container scripts, however
because they become part of the image, so we should use
those that came with the PR. That's why we have to move
the "in_container" scripts out of the "ci" folder and
only override the "ci" folder with the one from
master. We've made sure that those scripts in ci
are self-contained and they do not need reach outside of
that folder.

Also the static checks are done with local files mounted
on CI because we want to check all the files - not only
those that are embedded in the container.

(cherry picked from commit 1cf1af6)
potiuk added a commit that referenced this pull request Sep 15, 2020
After #10368, we've changed the way we build the images
on CI. We are overriding the ci scripts that we use
to build the image with the scripts taken from master
to not give roque PR authors the possibiility to run
something with the write credentials.

We should not override the in_container scripts, however
because they become part of the image, so we should use
those that came with the PR. That's why we have to move
the "in_container" scripts out of the "ci" folder and
only override the "ci" folder with the one from
master. We've made sure that those scripts in ci
are self-contained and they do not need reach outside of
that folder.

Also the static checks are done with local files mounted
on CI because we want to check all the files - not only
those that are embedded in the container.

(cherry picked from commit 1cf1af6)
RaviTezu pushed a commit to RaviTezu/airflow that referenced this pull request Oct 25, 2020
…10442)

After apache#10368, we've changed the way we build the images
on CI. We are overriding the ci scripts that we use
to build the image with the scripts taken from master
to not give roque PR authors the possibiility to run
something with the write credentials.

We should not override the in_container scripts, however
because they become part of the image, so we should use
those that came with the PR. That's why we have to move
the "in_container" scripts out of the "ci" folder and
only override the "ci" folder with the one from
master. We've made sure that those scripts in ci
are self-contained and they do not need reach outside of
that folder.

Also the static checks are done with local files mounted
on CI because we want to check all the files - not only
those that are embedded in the container.

(cherry picked from commit 1cf1af6)
kaxil pushed a commit that referenced this pull request Nov 12, 2020
After #10368, we've changed the way we build the images
on CI. We are overriding the ci scripts that we use
to build the image with the scripts taken from master
to not give roque PR authors the possibiility to run
something with the write credentials.

We should not override the in_container scripts, however
because they become part of the image, so we should use
those that came with the PR. That's why we have to move
the "in_container" scripts out of the "ci" folder and
only override the "ci" folder with the one from
master. We've made sure that those scripts in ci
are self-contained and they do not need reach outside of
that folder.

Also the static checks are done with local files mounted
on CI because we want to check all the files - not only
those that are embedded in the container.

(cherry picked from commit 1cf1af6)
@potiuk potiuk added the type:misc/internal Changelog: Misc changes that should appear in change log label Nov 14, 2020
@potiuk potiuk added this to the Airflow 1.10.13 milestone Nov 14, 2020
potiuk added a commit that referenced this pull request Nov 16, 2020
After #10368, we've changed the way we build the images
on CI. We are overriding the ci scripts that we use
to build the image with the scripts taken from master
to not give roque PR authors the possibiility to run
something with the write credentials.

We should not override the in_container scripts, however
because they become part of the image, so we should use
those that came with the PR. That's why we have to move
the "in_container" scripts out of the "ci" folder and
only override the "ci" folder with the one from
master. We've made sure that those scripts in ci
are self-contained and they do not need reach outside of
that folder.

Also the static checks are done with local files mounted
on CI because we want to check all the files - not only
those that are embedded in the container.

(cherry picked from commit 1cf1af6)
@kaxil kaxil added provider:cncf-kubernetes Kubernetes (k8s) provider related issues and removed area:k8s labels Nov 18, 2020
cfei18 pushed a commit to cfei18/incubator-airflow that referenced this pull request Mar 5, 2021
…10442)

After apache#10368, we've changed the way we build the images
on CI. We are overriding the ci scripts that we use
to build the image with the scripts taken from master
to not give roque PR authors the possibiility to run
something with the write credentials.

We should not override the in_container scripts, however
because they become part of the image, so we should use
those that came with the PR. That's why we have to move
the "in_container" scripts out of the "ci" folder and
only override the "ci" folder with the one from
master. We've made sure that those scripts in ci
are self-contained and they do not need reach outside of
that folder.

Also the static checks are done with local files mounted
on CI because we want to check all the files - not only
those that are embedded in the container.

(cherry picked from commit 1cf1af6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools area:Scheduler including HA (high availability) scheduler provider:cncf-kubernetes Kubernetes (k8s) provider related issues type:misc/internal Changelog: Misc changes that should appear in change log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants