Skip to contentSkip to conversation

Add a comment in bios-tables-test.c to clarify the reason behind approach

PATCH Superseded Ani Sinha 2 participants 3 messages Sep 24, 2020 – Sep 29, 2020

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Ani Sinha

author
#0 lore raw

PATCH v4 1/1 Add a comment in bios-tables-test.c to clarify the reason behind approach

A comment is added in bios-tables-test.c that explains the reasoning behind the process of updating the ACPI table blobs when new tests are added or old tests are modified or code is committed that affect tests. The explanation would help future contributors follow the correct process when making code changes that affect ACPI tables.

---
 tests/qtest/bios-tables-test.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Changelog:
v2: cosmetic - commit log reworded.
v3: review feedback incorporared and actual comment in the code reworded.
v4: more updates as per Igor's suggestion. Dropped some comment lines. added
ack'd by line.

tests/qtest/bios-tables-test.c +6 -1
index b514b70b62..34e2e1c55b 100644
@@ -11,7 +11,7 @@
  */
 
 /*
- * How to add or update the tests:
+ * How to add or update the tests or commit changes that affect ACPI tables:
  * Contributor:
  * 1. add empty files for new tables, if any, under tests/data/acpi
  * 2. list any changed files in tests/qtest/bios-tables-test-allowed-diff.h
@@ -38,6 +38,11 @@
  *      $(SRC_PATH)/tests/data/acpi/rebuild-expected-aml.sh
  * 6. Now commit any changes to the expected binary, include diff from step 4
  *    in commit log.
+ *    Expected binary updates needs to be a separate patch from the code that
+ *    introduces changes to ACPI tables. It lets maintainer to drop
+ *    and regenerate binary updates in case of merge conflicts. Further, a code
+ *    change is easily reviewable but a binary blob is not (without doing a
+ *    diassemly).
  * 7. Before sending patches to the list (Contributor)
  *    or before doing a pull request (Maintainer), make sure
  *    tests/qtest/bios-tables-test-allowed-diff.h is empty - this will ensure
Signature · 1 line
2.17.1
author
#1 lore raw

Michael,

Please queue this one for the next pull as well.

Quoted 46 lines · On Sep 24, 2020, 14:39 +0530, Ani Sinha <[email protected]>, wrote:

A comment is added in bios-tables-test.c that explains the reasoning behind the process of updating the ACPI table blobs when new tests are added or old tests are modified or code is committed that affect tests. The explanation would help future contributors follow the correct process when making code changes that affect ACPI tables.

---
tests/qtest/bios-tables-test.c | 7 ++++++-

1 file changed, 6 insertions(+), 1 deletion(-)

Changelog:
v2: cosmetic - commit log reworded.
v3: review feedback incorporared and actual comment in the code reworded.
v4: more updates as per Igor's suggestion. Dropped some comment lines. added ack'd by line.

tests/qtest/bios-tables-test.c +6 -2
index b514b70b62..34e2e1c55b 100644
@@ -11,7 +11,7 @@
 */
 
 /*
- * How to add or update the tests:
+ * How to add or update the tests or commit changes that affect ACPI tables:
 * Contributor:
 * 1. add empty files for new tables, if any, under tests/data/acpi
 * 2. list any changed files in tests/qtest/bios-tables-test-allowed-diff.h
@@ -38,6 +38,11 @@
 * $(SRC_PATH)/tests/data/acpi/rebuild-expected-aml.sh
 * 6. Now commit any changes to the expected binary, include diff from step 4
 * in commit log.
+ * Expected binary updates needs to be a separate patch from the code that
+ * introduces changes to ACPI tables. It lets maintainer to drop
+ * and regenerate binary updates in case of merge conflicts. Further, a code
+ * change is easily reviewable but a binary blob is not (without doing a
+ * diassemly).
 * 7. Before sending patches to the list (Contributor)
 * or before doing a pull request (Maintainer), make sure
 * tests/qtest/bios-tables-test-allowed-diff.h is empty - this will ensure
--

2.17.1

#2 lore raw
In reply to Ani Sinha
Quoted 13 lines · Ani Sinha

A comment is added in bios-tables-test.c that explains the reasoning behind the process of updating the ACPI table blobs when new tests are added or old tests are modified or code is committed that affect tests. The explanation would help future contributors follow the correct process when making code changes that affect ACPI tables.

---
  tests/qtest/bios-tables-test.c | 7 ++++++-
  1 file changed, 6 insertions(+), 1 deletion(-)
Quoted 4 lines

* 6. Now commit any changes to the expected binary, include diff from step 4
* in commit log.
+ * Expected binary updates needs to be a separate patch from the code that
+ * introduces changes to ACPI tables. It lets maintainer to drop

s/maintainer to/the maintainer/

Quoted 3 lines
+ *    and regenerate binary updates in case of merge conflicts. Further, a code
+ *    change is easily reviewable but a binary blob is not (without doing a
+ *    diassemly).

disassembly

Quoted 4 lines

* 7. Before sending patches to the list (Contributor)
* or before doing a pull request (Maintainer), make sure
* tests/qtest/bios-tables-test-allowed-diff.h is empty - this will ensure

Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org