Skip to content

Checks-out missing commits on selective checks#16470

Merged
kaxil merged 1 commit intoapache:mainfrom
potiuk:fix-missing-commits-on-selective-checks
Jun 17, 2021
Merged

Checks-out missing commits on selective checks#16470
kaxil merged 1 commit intoapache:mainfrom
potiuk:fix-missing-commits-on-selective-checks

Conversation

@potiuk
Copy link
Copy Markdown
Member

@potiuk potiuk commented Jun 15, 2021

Recent improvement of the build images to use pull_request_target
removed by accident fetching of the PR commits which makes it
impossible to determine which files has changed in PR in the
PR build image workflow.

This commit brings it back.


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

@potiuk
Copy link
Copy Markdown
Member Author

potiuk commented Jun 15, 2021

This one failed #16469 because the PR commits were missing https://github.com/apache/airflow/runs/2834014923?check_suite_focus=true#step:4:584

Changed files from 207fd82d2f90ba1b3d6d0e17820e5b15ef820f53 vs it's first parent
  
  fatal: ambiguous argument '207fd82d2f90ba1b3d6d0e17820e5b15ef820f53^': unknown revision or path not in the working tree.
  Use '--' to separate paths from revisions, like this:
  'git <command> [<revision>...] -- [<file>...]'
  

@potiuk potiuk force-pushed the fix-missing-commits-on-selective-checks branch from 74a30ed to 2b32989 Compare June 16, 2021 08:22
Recent improvement of the build images to use pull_request_target
removed by accident fetching of the PR commits which makes it
impossible to determine which files has changed in PR in the
PR build image workflow.

This commit brings it back.
@potiuk potiuk force-pushed the fix-missing-commits-on-selective-checks branch from 2b32989 to da31761 Compare June 16, 2021 08:23
@potiuk potiuk requested review from eladkal and ephraimbuddy June 16, 2021 08:25
@o-nikolas
Copy link
Copy Markdown
Contributor

Is the flake8 failure a red herring here? If I run that pre-commit check for this commit locally it passes just fine.

@kaxil kaxil merged commit b11166b into apache:main Jun 17, 2021
@github-actions
Copy link
Copy Markdown

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 Jun 17, 2021
@kaxil
Copy link
Copy Markdown
Member

kaxil commented Jun 17, 2021

Is the flake8 failure a red herring here? If I run that pre-commit check for this commit locally it passes just fine.

Yup

potiuk added a commit to potiuk/airflow that referenced this pull request Jun 22, 2021
Recent improvement of the build images to use pull_request_target
removed by accident fetching of the PR commits which makes it
impossible to determine which files has changed in PR in the
PR build image workflow.

This commit brings it back.

(cherry picked from commit b11166b)
@potiuk potiuk deleted the fix-missing-commits-on-selective-checks branch July 29, 2022 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools 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.

3 participants