From: "Bret Barkelew" <bret.barkelew@microsoft.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>
Subject: Proposal to make EccCheck non-destructive
Date: Sun, 4 Oct 2020 23:25:24 +0000 [thread overview]
Message-ID: <MW4PR21MB18579E0E0CA438BB4BD5BC3FEF0F0@MW4PR21MB1857.namprd21.prod.outlook.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1232 bytes --]
In regards to this bug:
2986 – EccCheck should not revert staged and local changes (tianocore.org)<https://bugzilla.tianocore.org/show_bug.cgi?id=2986>
I have a proposal:
1. git diff --name-only <starting_commit>..<ending_commit/HEAD>
2. Copy list of changed files to a temp directory under Build/
* Perhaps something like Build/EccCheck or Build/EccCheckTemp
3. Remove files/directories that are in the exclusion list
4. Run EccCheck against that directory
5. Filter the report to remove the temp directory path so that the reported errors are root-based paths
The trade off of this approach is that EccCheck will run against multiple patches in aggregate, but – frankly – this isn’t any different than the other CI plugins.
The destructive nature of this plugin has caused headaches for everyone on our team that has worked with the new codebase. We all use local CI to validate changes as we make them, and having to make “test commits” just to ensure our work doesn’t go away isn’t a satisfactory process.
Thoughts? If this passes muster, I’m happy to code up some quick patches (if for no other reason than we can stage them in Mu while we’re waiting for full adoption).
- Bret
[-- Attachment #2: Type: text/html, Size: 5210 bytes --]
next reply other threads:[~2020-10-04 23:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-04 23:25 Bret Barkelew [this message]
2020-10-06 10:53 ` [edk2-devel] Proposal to make EccCheck non-destructive Laszlo Ersek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=MW4PR21MB18579E0E0CA438BB4BD5BC3FEF0F0@MW4PR21MB1857.namprd21.prod.outlook.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox