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

Decrease likelihood of memory issue in CI #18852

Merged
merged 1 commit into from
Oct 12, 2021

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Oct 9, 2021

This PR attempts to decrease the likelihood of memory issues for
CI for non-committers. The MSSQL and MYSQL Provider and Integration
tests when run together with other tests in parallel (for MSSQL even
standalone) might cause memory problems (143 or 137 exit code).

This PR changes the approach slightly for low-memory conditions:

  1. MSSQL - both Integration and Providers tests are skipped
    entirely (they will be run in High-Mem case so we will see if
    there are any problems anyway)

  2. MySQL - both Integration and Providers tests are run separately
    which will lead to slightly longer test runs but likely this
    will save us from the occasional memory issues.


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

This PR attempts to decrease the likelihood of memory issues for
CI for non-committers. The MSSQL and MYSQL Provider and Integration
tests when run together with other tests in parallel (for MSSQL even
standalone) might cause memory problems (143 or 137 exit code).

This PR changes the approach slightly for low-memory conditions:

1) MSSQL - both Integration and Providers tests are skipped
   entirely (they will be run in High-Mem case so we will see if
   there are any problems anyway)

2) MySQL - both Integration and Providers tests are run separately
   which will lead to slightly longer test runs but likely this
   will save us from the occasional memory issues.
@potiuk
Copy link
Member Author

potiuk commented Oct 9, 2021

Except few other problems (that led to few other "flaky fix" PRs) this one worked fine on my test run in my fork: https://github.com/potiuk/airflow/actions/runs/1323849397

@potiuk
Copy link
Member Author

potiuk commented Oct 12, 2021

This one also happens intermittently - and I think it would be great to merge that one to get more stable CI runs.

@github-actions
Copy link

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Oct 12, 2021
@potiuk potiuk merged commit 5d9e5f6 into apache:main Oct 12, 2021
@potiuk potiuk deleted the decrease-likelihood-of-memory-issues branch October 12, 2021 17:21
potiuk added a commit that referenced this pull request Jan 22, 2022
This PR attempts to decrease the likelihood of memory issues for
CI for non-committers. The MSSQL and MYSQL Provider and Integration
tests when run together with other tests in parallel (for MSSQL even
standalone) might cause memory problems (143 or 137 exit code).

This PR changes the approach slightly for low-memory conditions:

1) MSSQL - both Integration and Providers tests are skipped
   entirely (they will be run in High-Mem case so we will see if
   there are any problems anyway)

2) MySQL - both Integration and Providers tests are run separately
   which will lead to slightly longer test runs but likely this
   will save us from the occasional memory issues.

(cherry picked from commit 5d9e5f6)
@potiuk potiuk added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Jan 22, 2022
@potiuk potiuk added this to the Airflow 2.2.4 milestone Jan 22, 2022
@potiuk potiuk restored the decrease-likelihood-of-memory-issues branch April 26, 2022 20:46
@potiuk potiuk deleted the decrease-likelihood-of-memory-issues branch July 29, 2022 20:00
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..) full tests needed We need to run full set of tests for this PR to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants