Skip to content

Conversation

@tuanhm2911
Copy link
Contributor

What

When inserting scripts into Dockerfiles, the file write function is currently called inside a loop, causing the file to be written line by line.

Proposal

Move the file write operation outside the loop so the content is written only once. This reduces unnecessary I/O operations and improves execution time.

@boring-cyborg boring-cyborg bot added area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch labels Jan 11, 2026
@boring-cyborg
Copy link

boring-cyborg bot commented Jan 11, 2026

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our prek-hooks will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example DAG that shows how users should use it.
  • Consider using Breeze environment for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
  • Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: dev@airflow.apache.org
    Slack: https://s.apache.org/airflow-slack

Copy link
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

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

Good catch!

@jscheffl jscheffl merged commit fd90666 into apache:main Jan 11, 2026
63 checks passed
@boring-cyborg
Copy link

boring-cyborg bot commented Jan 11, 2026

Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions.

github-actions bot pushed a commit that referenced this pull request Jan 11, 2026
(cherry picked from commit fd90666)

Co-authored-by: Tuan Hoang Minh <9130269+tuanhm2911@users.noreply.github.com>
@github-actions
Copy link

Backport successfully created: v3-1-test

Status Branch Result
v3-1-test PR Link

jscheffl pushed a commit that referenced this pull request Jan 11, 2026
…#60397)

(cherry picked from commit fd90666)

Co-authored-by: Tuan Hoang Minh <9130269+tuanhm2911@users.noreply.github.com>
ephraimbuddy pushed a commit that referenced this pull request Jan 13, 2026
…#60397)

(cherry picked from commit fd90666)

Co-authored-by: Tuan Hoang Minh <9130269+tuanhm2911@users.noreply.github.com>
iharsh02 pushed a commit to iharsh02/airflow that referenced this pull request Jan 13, 2026
ephraimbuddy pushed a commit that referenced this pull request Jan 14, 2026
…#60397)

(cherry picked from commit fd90666)

Co-authored-by: Tuan Hoang Minh <9130269+tuanhm2911@users.noreply.github.com>
ephraimbuddy pushed a commit that referenced this pull request Jan 16, 2026
…#60397)

(cherry picked from commit fd90666)

Co-authored-by: Tuan Hoang Minh <9130269+tuanhm2911@users.noreply.github.com>
jason810496 pushed a commit to jason810496/airflow that referenced this pull request Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants