[
https://issues.apache.org/jira/browse/HIVE-19212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16438454#comment-16438454
]
Sahil Takiar commented on HIVE-19212:
-------------------------------------
Looks like this is the cause -
https://github.com/apache/yetus/blob/2b91d243f7afbe89ec558fe09b7e33f90e065ac4/precommit/test-patch.sh#L1318
It runs {{git clean}} with the {{-x}} option, which according to
https://www.atlassian.com/git/tutorials/undoing-changes/git-clean deletes files
that are in {{.gitignore}} too.
The reason it works locally is because the {{git clean}} isn't triggered unless
you specify the {{--jenkins}} option (which we do enable in {{yetus-exec.sh}}).
Looking through the code for {{test-patch.sh}}, enabling the {{--jenkins}}
option also enables the {{--resetrepo}} option. Which is what triggers the
{{git clean}} to run.
> Fix findbugs yetus pre-commit checks
> ------------------------------------
>
> Key: HIVE-19212
> URL: https://issues.apache.org/jira/browse/HIVE-19212
> Project: Hive
> Issue Type: Sub-task
> Components: Testing Infrastructure
> Reporter: Sahil Takiar
> Assignee: Sahil Takiar
> Priority: Major
> Attachments: HIVE-19212.1.patch
>
>
> Follow up from HIVE-18883, the committed patch isn't working and Findbugs is
> still not working.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)