Skip to content

Commit

Permalink
Add incorrect test case to .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
dingmeng-xue committed Mar 28, 2020
1 parent 5dcd3c7 commit 17f811c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -227,3 +227,6 @@ launchSettings.json
/tools/Modules/tmp
/tools/Az/Az.psm1
/Azure.PowerShell.sln

# Added due to scan
src/DataFactory/DataFactoryV2.Test/SessionRecords/Microsoft.Azure.Commands.DataFactoryV2.Test.RunTests/TestRunV2.json

5 comments on commit 17f811c

@johnduhart
Copy link

Choose a reason for hiding this comment

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

@dingmeng-xue This commit has completely re-written history for the repository. Was that at all intentional?

@dingmeng-xue
Copy link
Member Author

Choose a reason for hiding this comment

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

@johnduhart , Due to an incorrect commit recently, we had scanned all commits and force pushed to all branches and tags. To avoid people add it again, this change is asked by our safeguards team.

I'm not expert on GitHub. Could you explain your concern if any?

@johnduhart
Copy link

Choose a reason for hiding this comment

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

14b2975

Rewriting all history doesn't remove the commit or files from existence, it just makes it more difficult for people to contribute because their git history is broken. PRs showing up with 10K+ commits isn't right.

@dingmeng-xue
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm suffering this problem too. You know what, I was asked to do change according to this instruction https://help.github.com/en/github/authenticating-to-github/removing-sensitive-data-from-a-repository. before this commit, I force push change to all branches and tags. It's the first time that our repo was asked to do this job. We didn't know the real impact. Given it happened, is there way to mitigate this problem now? In addition, introduction told me incorrect commit should be removed but seems not. I will ask our security team. Is there any suggestion too?

@dingmeng-xue
Copy link
Member Author

Choose a reason for hiding this comment

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

Azure PowerShell is contributed by many service teams. We cannot ask them to drop their change and rebase seems big effort too. I guess it is the reason their pull request still contains issue commit after local merge. We have disabled "Allow merge commits" option on repo. So the PR will be squashed during merge. The issue will disappear after while.

Please sign in to comment.