Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Aug 19, 2025

The go tests do not depend on CI image being built, also they should
not be run independently on the run-tests flag - because
run-tests is generally for our unit tests.

They should be run when run-go-sdk-tests is set and without
dependency on ci-images being built. There were also a few
other issues found during this cleanuup:

Several outputs were inconsistently named:

  • run-tests was renamed to run-unit-tests
  • need-* outputs were renamed to run-*

Some other fixes were applied:

  • only-new-ui-files was removed as it is not needed any more as
    we do not really need that check to be exposed to actions, it
    is only used internally - to not run other tests when only ui
    files changed
  • run-system-tests was not properly used (it is currently an
    alias to run-unit-tests anyway - but foreseen for future
    separation$a
  • need-javascript-scans and need-python-scans have been removed
    as they are no longer used

^ 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 airflow-core/newsfragments.

@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 Aug 19, 2025
Copy link
Member

@gopidesupavan gopidesupavan left a comment

Choose a reason for hiding this comment

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

oops

@potiuk potiuk force-pushed the fix-condition-triggering-go-tests branch from 46cc3ac to 28ab4d7 Compare August 19, 2025 20:09
@potiuk potiuk changed the title Fix upstream dependencies and condition on go tests Fix conditionals for test types and make them consistent Aug 19, 2025
Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

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

Oops couldve been my bad!

@potiuk
Copy link
Member Author

potiuk commented Aug 19, 2025

I looked a bit closer - and that turned out to be a bit of a rabbit hole (but a small hole) - I reviewed and updated consistency in a number of outputs, and conditions - simplifying them and removing old, unused conditions.

This should make the workflow a bit easier to reason about

@potiuk potiuk force-pushed the fix-condition-triggering-go-tests branch from 28ab4d7 to ae379bc Compare August 19, 2025 20:15
@potiuk
Copy link
Member Author

potiuk commented Aug 19, 2025

Oops couldve been my bad!

No. no ... there was a lot of inconistences and badly named (historically) outputs that were misleading - this should be way easier to reason about those workflows/outputs now.

The go tests do not depend on CI image being built, also they should
not be run independently on the `run-tests` flag - because
run-tests is generally for our unit tests.

They should be run when `run-go-sdk-tests` is set and without
dependency on ci-images being built. There were also a few
other issues found during this cleanuup:

Several outputs were inconsistently named:

* run-tests was renamed to run-unit-tests
* need-* outputs were renamed to run-*

Some other fixes were applied:

* only-new-ui-files was removed as it is not needed any more as
  we do not really need that check to be exposed to actions, it
  is only used internally - to not run other tests when only ui
  files changed
* run-system-tests was not properly used (it is currently an
  alias to run-unit-tests anyway - but foreseen for future
  separation$a
* need-javascript-scans and need-python-scans have been removed
  as they are no longer used
@potiuk potiuk force-pushed the fix-condition-triggering-go-tests branch from ae379bc to 1f5404d Compare August 19, 2025 21:26
@potiuk potiuk merged commit 9460976 into apache:main Aug 19, 2025
105 checks passed
@potiuk potiuk deleted the fix-condition-triggering-go-tests branch August 19, 2025 22:55
@github-actions
Copy link

Backport failed to create: v3-0-test. View the failure log Run details

Status Branch Result
v3-0-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 9460976 v3-0-test

This should apply the commit to the v3-0-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

potiuk added a commit to potiuk/airflow that referenced this pull request Aug 20, 2025
The go tests do not depend on CI image being built, also they should
not be run independently on the `run-tests` flag - because
run-tests is generally for our unit tests.

They should be run when `run-go-sdk-tests` is set and without
dependency on ci-images being built. There were also a few
other issues found during this cleanuup:

Several outputs were inconsistently named:

* run-tests was renamed to run-unit-tests
* need-* outputs were renamed to run-*

Some other fixes were applied:

* only-new-ui-files was removed as it is not needed any more as
  we do not really need that check to be exposed to actions, it
  is only used internally - to not run other tests when only ui
  files changed
* run-system-tests was not properly used (it is currently an
  alias to run-unit-tests anyway - but foreseen for future
  separation$a
* need-javascript-scans and need-python-scans have been removed
  as they are no longer used

(cherry picked from commit 9460976)
potiuk added a commit that referenced this pull request Aug 20, 2025
…4691)

The go tests do not depend on CI image being built, also they should
not be run independently on the `run-tests` flag - because
run-tests is generally for our unit tests.

They should be run when `run-go-sdk-tests` is set and without
dependency on ci-images being built. There were also a few
other issues found during this cleanuup:

Several outputs were inconsistently named:

* run-tests was renamed to run-unit-tests
* need-* outputs were renamed to run-*

Some other fixes were applied:

* only-new-ui-files was removed as it is not needed any more as
  we do not really need that check to be exposed to actions, it
  is only used internally - to not run other tests when only ui
  files changed
* run-system-tests was not properly used (it is currently an
  alias to run-unit-tests anyway - but foreseen for future
  separation$a
* need-javascript-scans and need-python-scans have been removed
  as they are no longer used

(cherry picked from commit 9460976)
mangal-vairalkar pushed a commit to mangal-vairalkar/airflow that referenced this pull request Aug 30, 2025
The go tests do not depend on CI image being built, also they should
not be run independently on the `run-tests` flag - because
run-tests is generally for our unit tests.

They should be run when `run-go-sdk-tests` is set and without
dependency on ci-images being built. There were also a few
other issues found during this cleanuup:

Several outputs were inconsistently named:

* run-tests was renamed to run-unit-tests
* need-* outputs were renamed to run-*

Some other fixes were applied:

* only-new-ui-files was removed as it is not needed any more as
  we do not really need that check to be exposed to actions, it
  is only used internally - to not run other tests when only ui
  files changed
* run-system-tests was not properly used (it is currently an
  alias to run-unit-tests anyway - but foreseen for future
  separation$a
* need-javascript-scans and need-python-scans have been removed
  as they are no longer used
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.

4 participants