Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Aug 22, 2020

Perf_kit was a separate folder and it was a problem when we tried to
build it from Docker-embedded sources, because there was a hidden,
implicit dependency between tests (conftest) and perf.

Perf_kit is now moved to tests to be avaiilable in the CI image
also when we run tests without the sources mounted.
This is changing back in #10441 and we need to move perf_kit
for it to work.


^ 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.

@potiuk
Copy link
Member Author

potiuk commented Aug 22, 2020

@mik-laj - I totally don't understand why those tests fail with 2 rather than expected number of runs:

AssertionError: The expected number of db queries is 21. The current number is 2.

Those tests are randomly failing also for older runs but here it is consistent once I moved the code to test/utils. Can you please take a look and see what could be wrong here/? It's rather difficult to figure out, but at least this is consistent now and we might have a chance to fix it permanently and remove the flakiness.

@potiuk
Copy link
Member Author

potiuk commented Aug 22, 2020

OK. I think I know @mik-laj let me try smth next

@potiuk potiuk force-pushed the move-perfkit-to-tests branch from 3bb979f to 2e2e92b Compare August 22, 2020 11:47
@potiuk
Copy link
Member Author

potiuk commented Aug 22, 2020

Yeah. I think I found it :)

@potiuk
Copy link
Member Author

potiuk commented Aug 22, 2020

yeah, I found it :). I also had to move the perf dag path

Perf_kit was a separate folder and it was a problem when we tried to
build it from Docker-embedded sources, because there was a hidden,
implicit dependency between tests (conftest) and perf.

Perf_kit is now moved to tests to be avaiilable in the CI image
also when we run tests without the sources mounted.
This is changing back in apache#10441 and we need to move perf_kit
for it to work.
@potiuk potiuk force-pushed the move-perfkit-to-tests branch from 2e2e92b to a507414 Compare August 22, 2020 15:57
@potiuk
Copy link
Member Author

potiuk commented Sep 11, 2020

@turbaszek - because both dirs were there and my eye caught "utils" first I guess :)

Both directories were there when I moved it, so I guess arbitrarily I chose the "utils" one.

But feel free to merge those two. There is no difference from the build POV.

@turbaszek
Copy link
Member

The point is that tests.utils corresponds to airflow.utils and probably should have no other stuff. I will open PR

@potiuk
Copy link
Member Author

potiuk commented Sep 11, 2020

The point is that tests.utils corresponds to airflow.utils and probably should have no other stuff. I will open PR

I see, not too obvious though :( . I was never suspecting this. But I am not sure how to make it more obvious,

@turbaszek
Copy link
Member

The point is that tests.utils corresponds to airflow.utils and probably should have no other stuff. I will open PR

I see, not too obvious though :( . I was never suspecting this. But I am not sure how to make it more obvious,

I think we should pay more attention to this in future. At least I will do 😄

Screenshot 2020-09-11 at 22 37 40

@potiuk
Copy link
Member Author

potiuk commented Sep 12, 2020

🤣

potiuk added a commit to potiuk/airflow that referenced this pull request Sep 14, 2020
potiuk added a commit to potiuk/airflow that referenced this pull request Sep 14, 2020
We had to enable mounting from sources for a short while
because we had to find a way to add new scripts to the
"workflow_run" workflow we have. This also requires
the apache#10470 to be merged - perf_kit to be moved to tests.utils because
it was in a separate directory and image without mounting sources
could not run the tests.

It also partially addresses the apache#10445 problem where
there was difference between sources in the image and coming
from the master. This comes from GitHub running merge on
non-conflicting changes in the PR and something that will
be addressed shortly.

The issue apache#10471 discusses this in detail.

(cherry picked from commit 4fa7df5)
potiuk added a commit that referenced this pull request Sep 15, 2020
Requires #10470 and #10472

(cherry picked from commit 946c9de)
potiuk added a commit that referenced this pull request Sep 15, 2020
We had to enable mounting from sources for a short while
because we had to find a way to add new scripts to the
"workflow_run" workflow we have. This also requires
the #10470 to be merged - perf_kit to be moved to tests.utils because
it was in a separate directory and image without mounting sources
could not run the tests.

It also partially addresses the #10445 problem where
there was difference between sources in the image and coming
from the master. This comes from GitHub running merge on
non-conflicting changes in the PR and something that will
be addressed shortly.

The issue #10471 discusses this in detail.

(cherry picked from commit 4fa7df5)
RaviTezu pushed a commit to RaviTezu/airflow that referenced this pull request Oct 25, 2020
RaviTezu pushed a commit to RaviTezu/airflow that referenced this pull request Oct 25, 2020
We had to enable mounting from sources for a short while
because we had to find a way to add new scripts to the
"workflow_run" workflow we have. This also requires
the apache#10470 to be merged - perf_kit to be moved to tests.utils because
it was in a separate directory and image without mounting sources
could not run the tests.

It also partially addresses the apache#10445 problem where
there was difference between sources in the image and coming
from the master. This comes from GitHub running merge on
non-conflicting changes in the PR and something that will
be addressed shortly.

The issue apache#10471 discusses this in detail.

(cherry picked from commit 4fa7df5)
kaxil pushed a commit that referenced this pull request Nov 12, 2020
Requires #10470 and #10472

(cherry picked from commit 946c9de)
kaxil pushed a commit that referenced this pull request Nov 12, 2020
We had to enable mounting from sources for a short while
because we had to find a way to add new scripts to the
"workflow_run" workflow we have. This also requires
the #10470 to be merged - perf_kit to be moved to tests.utils because
it was in a separate directory and image without mounting sources
could not run the tests.

It also partially addresses the #10445 problem where
there was difference between sources in the image and coming
from the master. This comes from GitHub running merge on
non-conflicting changes in the PR and something that will
be addressed shortly.

The issue #10471 discusses this in detail.

(cherry picked from commit 4fa7df5)
potiuk added a commit that referenced this pull request Nov 16, 2020
Requires #10470 and #10472

(cherry picked from commit 946c9de)
potiuk added a commit that referenced this pull request Nov 16, 2020
We had to enable mounting from sources for a short while
because we had to find a way to add new scripts to the
"workflow_run" workflow we have. This also requires
the #10470 to be merged - perf_kit to be moved to tests.utils because
it was in a separate directory and image without mounting sources
could not run the tests.

It also partially addresses the #10445 problem where
there was difference between sources in the image and coming
from the master. This comes from GitHub running merge on
non-conflicting changes in the PR and something that will
be addressed shortly.

The issue #10471 discusses this in detail.

(cherry picked from commit 4fa7df5)
cfei18 pushed a commit to cfei18/incubator-airflow that referenced this pull request Mar 5, 2021
cfei18 pushed a commit to cfei18/incubator-airflow that referenced this pull request Mar 5, 2021
We had to enable mounting from sources for a short while
because we had to find a way to add new scripts to the
"workflow_run" workflow we have. This also requires
the apache#10470 to be merged - perf_kit to be moved to tests.utils because
it was in a separate directory and image without mounting sources
could not run the tests.

It also partially addresses the apache#10445 problem where
there was difference between sources in the image and coming
from the master. This comes from GitHub running merge on
non-conflicting changes in the PR and something that will
be addressed shortly.

The issue apache#10471 discusses this in detail.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants