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

Add dev version of asset compilation #25272

Merged
merged 1 commit into from
Jul 25, 2022

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Jul 25, 2022

When we moved www asset compilation from container to the host in #25169,
we removed yarn from the image and the old instructions are no longer
valid. Instead of in-container yarn dev we expect now
to have yarn dev run in the host. It can be done either with
pre-commit (if you have no node/yarn installed in your host, pre-commit
will automatically install both node and yarn in the right versions,
or if you have yarn installed you can run it manually.

The 'start-airflow' instructions now remove the in-container
instructions and explain those two options you have.


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

@potiuk potiuk force-pushed the add-dev-www-compilation branch 2 times, most recently from 0ee2cf7 to 443e14a Compare July 25, 2022 08:43
Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

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

Nice 👍

@potiuk
Copy link
Member Author

potiuk commented Jul 25, 2022

BTW. @bbovenzi @pierrejeambrun - one comment, the nice thing about using pre-commit is that you do not have to care about maintaining your 'node + yarn' in the right version, so it will be always "working the same" for everyone using breeze and pre-commit under the hood.

But the problem with pre-commit is that it captures the outpt and only shows it (even in verbose mode) after it completes, but in this case - it will never complete :) - so you do not see the output of the compiled assets as they change (which I find is a good "sanity check" to see that things are atually being refreshed. You will see it in webserver -d output, so it's not a big problem, and you can likely live with it, but I decided to mention also the option of runing yarn dev manually as it gives instant feedback about stuff being recompiled.

@potiuk potiuk force-pushed the add-dev-www-compilation branch 3 times, most recently from ceb3654 to 18a5381 Compare July 25, 2022 13:07
@bbovenzi
Copy link
Contributor

Screen Shot 2022-07-25 at 7 58 12 PM

I wonder if we should add something to the message here so that developers know that its actively running and not stuck?

@potiuk
Copy link
Member Author

potiuk commented Jul 25, 2022

Yeah, why not.

When we moved www asset compilation from container to the host in apache#25169,
we removed yarn from the image and the old instructions are no longer
valid. Instead of in-container yarn dev we expect now
to have yarn dev run in the host. It can be done either with
pre-commit (if you have no node/yarn installed in your host, pre-commit
will automatically install both node and yarn in the right versions,
or if you have yarn installed you can run it manually.

The 'start-airflow' instructions now remove the in-container
instructions and explain those two options you have.
@potiuk
Copy link
Member Author

potiuk commented Jul 25, 2022

How about this 😛 @bbovenzi ?

image

Copy link
Contributor

@bbovenzi bbovenzi left a comment

Choose a reason for hiding this comment

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

lgtm!

@potiuk potiuk merged commit 1544868 into apache:main Jul 25, 2022
@potiuk potiuk deleted the add-dev-www-compilation branch July 25, 2022 21:37
potiuk added a commit that referenced this pull request Aug 4, 2022
When we moved www asset compilation from container to the host in #25169,
we removed yarn from the image and the old instructions are no longer
valid. Instead of in-container yarn dev we expect now
to have yarn dev run in the host. It can be done either with
pre-commit (if you have no node/yarn installed in your host, pre-commit
will automatically install both node and yarn in the right versions,
or if you have yarn installed you can run it manually.

The 'start-airflow' instructions now remove the in-container
instructions and explain those two options you have.

(cherry picked from commit 1544868)
@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