Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Jul 26, 2022

When there is a change spanning multiple providers, the test type
might be very long "Providers[google,microsoft.mssql......]".

Test type is used in generating directory/file names as well as
in determining docker compose project names and such long name might
be just ... too long. But at any point in time we only run one
Provider* test type, so we can simply truncate the "[*]" when we
use TEST_TYPE to determine dir and docker-compose name.

This PR does exactly this.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an 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 a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

When there is a change spanning multiple providers, the test type
might be very long "Providers[google,microsoft.mssql......]".

Test type is used in generating directory/file names as well as
in determining docker compose project names and such long name might
be just ... too long. But at any point in time we only run one
Provider* test type, so we can simply truncate the "[*]" when we
use TEST_TYPE to determine dir and docker-compose name.

This PR does exactly this.
Copy link
Member

@ashb ashb left a comment

Choose a reason for hiding this comment

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

Rather than having to do the same replacement in 4 different places might it be cleaner to set that once in what ever is setting TEST_TYPE (and/or introduct a TEST_TYPE_SAFE/TEST_TYPE_CLEAN variable if there are more uses that want the existing full one)

@potiuk
Copy link
Member Author

potiuk commented Jul 26, 2022

Rather than having to do the same replacement in 4 different places might it be cleaner to set that once in what ever is setting TEST_TYPE (and/or introduct a TEST_TYPE_SAFE/TEST_TYPE_CLEAN variable if there are more uses that want the existing full one)

I thought about it, but we would have to additionally pass this extra variable across multiple levels - from Host script (where we assign the name of docker compose project) to parallel execution script (which executes gnu paralllel) and finally to actual test execution script (the one that is executed by gnu-parallel).

It is totally not worth it especialy that we are going to replace it with new python-based breeze parallelism (as we did with other parts already). This is something that is is in progress #23715 and I hope will be finished soon.

@Bowrna
Copy link
Contributor

Bowrna commented Jul 26, 2022

This is something that is is in progress #23715 and I hope will be finished soon.

Sorry for keeping this in pending for long time @potiuk I am picking this to finish it soon

@potiuk potiuk merged commit a0aa93f into apache:main Jul 26, 2022
@potiuk potiuk deleted the fix-name-of-files-for-long-providers-list branch July 26, 2022 15:31
@potiuk
Copy link
Member Author

potiuk commented Jul 26, 2022

No worries @Bowrna . There are plenty of small things that are distracting fron finish it but we will get there soon enough

potiuk added a commit to potiuk/airflow that referenced this pull request Jul 27, 2022
The apache#25301 fixed too long names for files in case of long list
of providers but there is one more place it needs to be fixed -
in the volume name of MsSQL tests.
potiuk added a commit that referenced this pull request Jul 27, 2022
The #25301 fixed too long names for files in case of long list
of providers but there is one more place it needs to be fixed -
in the volume name of MsSQL tests.
potiuk added a commit that referenced this pull request Aug 4, 2022
When there is a change spanning multiple providers, the test type
might be very long "Providers[google,microsoft.mssql......]".

Test type is used in generating directory/file names as well as
in determining docker compose project names and such long name might
be just ... too long. But at any point in time we only run one
Provider* test type, so we can simply truncate the "[*]" when we
use TEST_TYPE to determine dir and docker-compose name.

This PR does exactly this.

(cherry picked from commit a0aa93f)
potiuk added a commit that referenced this pull request Aug 4, 2022
The #25301 fixed too long names for files in case of long list
of providers but there is one more place it needs to be fixed -
in the volume name of MsSQL tests.

(cherry picked from commit 4e50ea4)
@potiuk potiuk added this to the Airflow 2.3.4 milestone Aug 5, 2022
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants