All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5] Add a comment in bios-tables-test.c to clarify the reason behind approach
@ 2020-09-29 14:25 Ani Sinha
  2020-10-12 14:07 ` Ani Sinha
  0 siblings, 1 reply; 7+ messages in thread
From: Ani Sinha @ 2020-09-29 14:25 UTC (permalink / raw)
  To: mst, qemu-devel
  Cc: Laurent Vivier, Thomas Huth, Paolo Bonzini, Ani Sinha, Igor Mammedov

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.

Signed-off-by: Ani Sinha <ani@anisinha.ca>
Acked-by: Igor Mammedov <imammedo@redhat.com>
---
 tests/qtest/bios-tables-test.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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

diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
index 3c09b844f9..fc7aaaf82c 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -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 the maintainer 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
+ *    disassembly).
  * 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



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v5] Add a comment in bios-tables-test.c to clarify the reason behind approach
  2020-09-29 14:25 [PATCH v5] Add a comment in bios-tables-test.c to clarify the reason behind approach Ani Sinha
@ 2020-10-12 14:07 ` Ani Sinha
  2020-10-12 14:12   ` Thomas Huth
  0 siblings, 1 reply; 7+ messages in thread
From: Ani Sinha @ 2020-10-12 14:07 UTC (permalink / raw)
  To: mst, qemu-devel; +Cc: Laurent Vivier, Igor Mammedov, Thomas Huth, Paolo Bonzini

Request to queue this patch with the next pull. 

> On Sep 29, 2020, at 7:55 PM, Ani Sinha <ani@anisinha.ca> 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.
> 
> Signed-off-by: Ani Sinha <ani@anisinha.ca>
> Acked-by: Igor Mammedov <imammedo@redhat.com>
> ---
> tests/qtest/bios-tables-test.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
> 
> changelog:
> v5: incorporated suggestion from eric.
> v4: more updates as per Igor's suggestion. Dropped some comment lines. added
>    ack'd by line.
> v3: review feedback incorporared and actual comment in the code reworded.
> v2: cosmetic - commit log reworded.
> 
> diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
> index 3c09b844f9..fc7aaaf82c 100644
> --- a/tests/qtest/bios-tables-test.c
> +++ b/tests/qtest/bios-tables-test.c
> @@ -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 the maintainer 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
> + *    disassembly).
>  * 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
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v5] Add a comment in bios-tables-test.c to clarify the reason behind approach
  2020-10-12 14:07 ` Ani Sinha
@ 2020-10-12 14:12   ` Thomas Huth
  2020-10-15 11:28     ` Ani Sinha
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Huth @ 2020-10-12 14:12 UTC (permalink / raw)
  To: Ani Sinha, mst, qemu-devel; +Cc: Laurent Vivier, Igor Mammedov, Paolo Bonzini

On 12/10/2020 16.07, Ani Sinha wrote:
> Request to queue this patch with the next pull. 

I can take it via qtest-next in case Michael / Igor do not plan to send a
pull request any time soon.

 Thomas



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v5] Add a comment in bios-tables-test.c to clarify the reason behind approach
  2020-10-12 14:12   ` Thomas Huth
@ 2020-10-15 11:28     ` Ani Sinha
  2020-10-15 13:05       ` Michael S. Tsirkin
  2020-10-15 13:58       ` Thomas Huth
  0 siblings, 2 replies; 7+ messages in thread
From: Ani Sinha @ 2020-10-15 11:28 UTC (permalink / raw)
  To: Thomas Huth; +Cc: Laurent Vivier, Igor Mammedov, mst, qemu-devel, Paolo Bonzini

[-- Attachment #1: Type: text/plain, Size: 323 bytes --]

On Mon, Oct 12, 2020 at 19:43 Thomas Huth <thuth@redhat.com> wrote:

> On 12/10/2020 16.07, Ani Sinha wrote:
> > Request to queue this patch with the next pull.
>
> I can take it via qtest-next in case Michael / Igor do not plan to send a
> pull request any time soon.


Michael or Igor, care to comment?


>
>  Thomas
>
>

[-- Attachment #2: Type: text/html, Size: 934 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v5] Add a comment in bios-tables-test.c to clarify the reason behind approach
  2020-10-15 11:28     ` Ani Sinha
@ 2020-10-15 13:05       ` Michael S. Tsirkin
  2020-10-15 13:58       ` Thomas Huth
  1 sibling, 0 replies; 7+ messages in thread
From: Michael S. Tsirkin @ 2020-10-15 13:05 UTC (permalink / raw)
  To: Ani Sinha
  Cc: Laurent Vivier, Igor Mammedov, Thomas Huth, qemu-devel, Paolo Bonzini

On Thu, Oct 15, 2020 at 04:58:37PM +0530, Ani Sinha wrote:
> 
> 
> On Mon, Oct 12, 2020 at 19:43 Thomas Huth <thuth@redhat.com> wrote:
> 
>     On 12/10/2020 16.07, Ani Sinha wrote:
>     > Request to queue this patch with the next pull.
> 
>     I can take it via qtest-next in case Michael / Igor do not plan to send a
>     pull request any time soon.
> 
> 
> Michael or Igor, care to comment?

Go ahead

Reviewed-by: Michael S. Tsirkin <mst@redhat.com>

> 
> 
> 
>      Thomas
> 
> 



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v5] Add a comment in bios-tables-test.c to clarify the reason behind approach
  2020-10-15 11:28     ` Ani Sinha
  2020-10-15 13:05       ` Michael S. Tsirkin
@ 2020-10-15 13:58       ` Thomas Huth
  2020-10-15 14:53         ` Ani Sinha
  1 sibling, 1 reply; 7+ messages in thread
From: Thomas Huth @ 2020-10-15 13:58 UTC (permalink / raw)
  To: Ani Sinha; +Cc: Laurent Vivier, Igor Mammedov, mst, qemu-devel, Paolo Bonzini

On 15/10/2020 13.28, Ani Sinha wrote:
> 
> 
> On Mon, Oct 12, 2020 at 19:43 Thomas Huth <thuth@redhat.com
> <mailto:thuth@redhat.com>> wrote:
> 
>     On 12/10/2020 16.07, Ani Sinha wrote:
>     > Request to queue this patch with the next pull.
> 
>     I can take it via qtest-next in case Michael / Igor do not plan to send a
>     pull request any time soon.
> 
> 
> Michael or Igor, care to comment?

FYI, patch got merged:

https://git.qemu.org/?p=qemu.git;a=commitdiff;h=07f5903c852de10fa7

 Thomas



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v5] Add a comment in bios-tables-test.c to clarify the reason behind approach
  2020-10-15 13:58       ` Thomas Huth
@ 2020-10-15 14:53         ` Ani Sinha
  0 siblings, 0 replies; 7+ messages in thread
From: Ani Sinha @ 2020-10-15 14:53 UTC (permalink / raw)
  To: Thomas Huth
  Cc: Laurent Vivier, Igor Mammedov, Michael S. Tsirkin,
	QEMU Developers, Paolo Bonzini

On Thu, Oct 15, 2020 at 7:29 PM Thomas Huth <thuth@redhat.com> wrote:
>
> On 15/10/2020 13.28, Ani Sinha wrote:
> >
> >
> > On Mon, Oct 12, 2020 at 19:43 Thomas Huth <thuth@redhat.com
> > <mailto:thuth@redhat.com>> wrote:
> >
> >     On 12/10/2020 16.07, Ani Sinha wrote:
> >     > Request to queue this patch with the next pull.
> >
> >     I can take it via qtest-next in case Michael / Igor do not plan to send a
> >     pull request any time soon.
> >
> >
> > Michael or Igor, care to comment?
>
> FYI, patch got merged:
>
> https://git.qemu.org/?p=qemu.git;a=commitdiff;h=07f5903c852de10fa7

Thanks!


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-10-15 15:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-29 14:25 [PATCH v5] Add a comment in bios-tables-test.c to clarify the reason behind approach Ani Sinha
2020-10-12 14:07 ` Ani Sinha
2020-10-12 14:12   ` Thomas Huth
2020-10-15 11:28     ` Ani Sinha
2020-10-15 13:05       ` Michael S. Tsirkin
2020-10-15 13:58       ` Thomas Huth
2020-10-15 14:53         ` Ani Sinha

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.