potiuk opened a new issue #10471:
URL: https://github.com/apache/airflow/issues/10471


   The current CI system builds a slightly different set of sources in GitHub 
than the one in PR directly. But possibly it is better. We can fix it with a 
workaround but I am not sure if we should.
   
   Details:
   
   1) when we currently build the image in "Build Image" workflow we are using 
"scripts/ci" from master and rest of the sources from the commit that is the 
HEAD of PR.
   
   2) However the sources in the PR run by GitHub are slightly different. When 
there are no conflicts, Github actually performs a merge between the master and 
the PR and the sources in build PR are those merged sources. But this only 
happens when there is no conflict, otherwise, original sources are used.
   
   This is not a big issue IMHO now and I'd argue that it's better if we run 
original sources, because that might be a source of confusion if someone tries 
to reproduce it locally. What you have to do to replicate the PR build, you 
have to rebase it locally on top of latest master. But this is not at all clear 
- I just learned that this is happening while implementing the new CI and had 
no idea that this was happening - and it could have explained a number of "We 
do not know what happened in this CI" cases.
   
   I can workaround this (there's no API in Github to know what is the merge 
request Commit SHA, but I Already use similar workarounds passing information 
via job names (waiting for missing API from GitHub). But I am not sure if it is 
worth it.
   
   For now it might cause problems similar to the ones in #10445 but a fix is 
coming shortly so that such failures will not happen but we will use the HEAD 
of PR as commit SHA still.
   
   
   @kaxil @feluelle @turbaszek @mik-laj @dimberman   - WDYT.
   
   BTW. We also have a safety net. The build with "merged" sources happens 
always after we merge the PR anyway - so in case a problem is hidden we will 
see it failing at "push" event.
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to