Skip to content

Conversation

@Ajay9704
Copy link
Contributor

@Ajay9704 Ajay9704 commented Feb 1, 2026

What does this PR do?

Fixes the version check in the EdgeExecutor UI where Airflow versions like
3.1.7rc1 or other pre-release identifiers were not handled correctly.
These versions should be treated the same as their base version (e.g.
3.1.7rc13.1.7) for the UI navigation logic.

Why is this needed?

The UI incorrectly determined the router type for release-candidate versions
of Airflow, causing broken navigation under the EdgeExecutor tab.

How does this fix it?

The version string returned by /api/v2/version is normalized using
semver.valid() or semver.clean() to coerce(data.version)

Note

Used AI only for some parts of code formatting and conflict resolution,
as required by ASF guidelines.

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.

No sorry, this is the wrong place and wrong side.

The version check failing in #61313 is the plugin UI check that is made in Typescript. Not in the Python code.

@Ajay9704
Copy link
Contributor Author

Ajay9704 commented Feb 1, 2026

No sorry, this is the wrong place and wrong side.

The version check failing in #61313 is the plugin UI check that is made in Typescript. Not in the Python code.

@jscheffl Sorry, earlier I was wrong. I found the actual issue now, and I think it should be fixed

@Ajay9704 Ajay9704 requested a review from jscheffl February 1, 2026 13:06
@jscheffl
Copy link
Contributor

jscheffl commented Feb 1, 2026

(1) the package-lock.json should not be committed. You can setup your devenv as described in https://github.com/apache/airflow/blob/main/contributing-docs/03a_contributors_quick_start_beginners.rst and with prek the static assets are locally re-generated including the needed www-hash.txt

(2) Please check the PR template banner and use the template

(3) I assume the fix is not working by reading the code. Please check with the commands given in the issue title included if it really fixes. I do not see how a pre-release suffix shall be cut and frankly speaking the fix looks like AI slop

@Ajay9704 Ajay9704 marked this pull request as draft February 1, 2026 14:42
@Ajay9704 Ajay9704 marked this pull request as ready for review February 1, 2026 19:06
@Ajay9704 Ajay9704 marked this pull request as draft February 1, 2026 19:10
@Ajay9704 Ajay9704 force-pushed the Fix_version_check_#61313 branch from 5dd5dfc to ed92ce1 Compare February 1, 2026 19:15
@Ajay9704 Ajay9704 force-pushed the Fix_version_check_#61313 branch from c4cc99a to 7bee3e8 Compare February 2, 2026 06:50
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.

Note that static checks fail most probably because you do not have "prek" installed as static check tool locally. This would run needed linter and compile assets in a way as needed.

Can you please follow https://github.com/apache/airflow/blob/main/contributing-docs/03a_contributors_quick_start_beginners.rst ?

Otherwise if I take a look to the diff a couple of unrelated changes on the Nav layout existing, not sure if this is an artefact of testing, should be removed/reverted.

expect(parseVersion("3.2.0rc1")).toBe("3.2.0");
});

it("handles pre-release versions with dash separator", () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

We do not use versions other than "rcN", also not with dashes. So these tests can be removed.

@shivaam
Copy link
Contributor

shivaam commented Feb 2, 2026

(1) the package-lock.json should not be committed. You can setup your devenv as described in https://github.com/apache/airflow/blob/main/contributing-docs/03a_contributors_quick_start_beginners.rst and with prek the static assets are locally re-generated including the needed www-hash.txt

(2) Please check the PR template banner and use the template

(3) I assume the fix is not working by reading the code. Please check with the commands given in the issue title included if it really fixes. I do not see how a pre-release suffix shall be cut and frankly speaking the fix looks like AI slop

Unrelated to current PR but related to the release process. I submitted another PR and noticed that the www-hash.txt that was generated on my laptop differed from the one generated by CI / CD tool. I assumed it might be related to using mac and linux on ci/cd. Does that make sense?

Here is the PR I am taking about: #60908

@jscheffl

@jscheffl
Copy link
Contributor

jscheffl commented Feb 2, 2026

(1) the package-lock.json should not be committed. You can setup your devenv as described in https://github.com/apache/airflow/blob/main/contributing-docs/03a_contributors_quick_start_beginners.rst and with prek the static assets are locally re-generated including the needed www-hash.txt
(2) Please check the PR template banner and use the template
(3) I assume the fix is not working by reading the code. Please check with the commands given in the issue title included if it really fixes. I do not see how a pre-release suffix shall be cut and frankly speaking the fix looks like AI slop

Unrelated to current PR but related to the release process. I submitted another PR and noticed that the www-hash.txt that was generated on my laptop differed from the one generated by CI / CD tool. I assumed it might be related to using mac and linux on ci/cd. Does that make sense?

Should not differ. But not tamper proof. Most developers work with Linux and/or MasOS. So might be you were hitting a but. But hopefully static building of assets will be removed soon, still working on it in #56456

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:common-compat provider:edge Edge Executor / Worker (AIP-69) / edge3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants