all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage.
@ 2019-12-02  9:15 Pierre Neidhardt
  2019-12-02 12:08 ` zimoun
  2019-12-02 19:31 ` Danny Milosavljevic
  0 siblings, 2 replies; 16+ messages in thread
From: Pierre Neidhardt @ 2019-12-02  9:15 UTC (permalink / raw)
  To: 38455

* doc/contributing.texi (Submitting Patches): Mention commands in the check
  list.
---
 doc/contributing.texi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/doc/contributing.texi b/doc/contributing.texi
index ee72b2f94d..04a4ba3e1a 100644
--- a/doc/contributing.texi
+++ b/doc/contributing.texi
@@ -961,6 +961,16 @@ often better to clone the repository.  Don't use the @command{name} field in
 the URL: it is not very useful and if the name changes, the URL will probably
 be wrong.
 
+@item
+Make sure your changes do not break Guix: rebuild it with
+@example
+guix environment guix -- make
+@end example
+and simulate a @code{guix pull} with
+@example
+guix pull --url=/path/to/your/checkout --dry-run
+@end example
+
 @end enumerate
 
 When posting a patch to the mailing list, use @samp{[PATCH] @dots{}} as
-- 
2.23.0

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

* [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage.
  2019-12-02  9:15 [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage Pierre Neidhardt
@ 2019-12-02 12:08 ` zimoun
  2019-12-02 12:16   ` Pierre Neidhardt
  2019-12-02 19:31 ` Danny Milosavljevic
  1 sibling, 1 reply; 16+ messages in thread
From: zimoun @ 2019-12-02 12:08 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 38455

Hi Pierre,

On Mon, 2 Dec 2019 at 10:16, Pierre Neidhardt <mail@ambrevar.xyz> wrote:

> * doc/contributing.texi (Submitting Patches): Mention commands in the check
>   list.

Nice!

I propose instead this wording. Because, I am not sure that building
Guix from source is really necessary to run/check "guix pull".


--8<---------------cut here---------------start------------->8---
diff --git a/doc/contributing.texi b/doc/contributing.texi
index ee72b2f94d..8001b0aef1 100644
--- a/doc/contributing.texi
+++ b/doc/contributing.texi
@@ -961,6 +961,15 @@ often better to clone the repository.  Don't use
the @command{name} field in
 the URL: it is not very useful and if the name changes, the URL will probably
 be wrong.

+@item
+Make sure your changes do not break @command{guix pull}:
+
+@example
+guix pull --dry-run --url=/path/to/your/checkout
+@end example
+
+(see @pxref{Invoking guix pull}).
+
 @end enumerate

 When posting a patch to the mailing list, use @samp{[PATCH] @dots{}} as
--8<---------------cut here---------------end--------------->8---


Hope that helps.

Cheers,
simon

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

* [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage.
  2019-12-02 12:08 ` zimoun
@ 2019-12-02 12:16   ` Pierre Neidhardt
  2019-12-02 12:32     ` zimoun
  0 siblings, 1 reply; 16+ messages in thread
From: Pierre Neidhardt @ 2019-12-02 12:16 UTC (permalink / raw)
  To: zimoun; +Cc: 38455

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

I'm actually not sure about one thing: Does `guix pull` catch the errors
of `make`?
I believe that make can output useful warnings, which maybe not bother
`guix pull`, but maybe I'm wrong.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

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

* [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage.
  2019-12-02 12:16   ` Pierre Neidhardt
@ 2019-12-02 12:32     ` zimoun
  2019-12-02 12:46       ` Pierre Neidhardt
  2019-12-02 12:48       ` zimoun
  0 siblings, 2 replies; 16+ messages in thread
From: zimoun @ 2019-12-02 12:32 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 38455

On Mon, 2 Dec 2019 at 13:16, Pierre Neidhardt <mail@ambrevar.xyz> wrote:
>
> I'm actually not sure about one thing: Does `guix pull` catch the errors
> of `make`?

What is the point of this advice? Check if "guix pull" is broken,
right? I think "guix pull -n --url=foo" does the job, isn't it?

> I believe that make can output useful warnings, which maybe not bother
> `guix pull`, but maybe I'm wrong.

This is another tips? Reading all the points, I feel that another
point about checking the "make" warnings and/or running the test suite
should be added. A good indication is that there is no link to
"Running the Test Suite".

What do you think?

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

* Re: [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage.
  2019-12-02 12:32     ` zimoun
@ 2019-12-02 12:46       ` Pierre Neidhardt
  2019-12-02 12:52         ` zimoun
  2019-12-02 12:48       ` zimoun
  1 sibling, 1 reply; 16+ messages in thread
From: Pierre Neidhardt @ 2019-12-02 12:46 UTC (permalink / raw)
  To: zimoun; +Cc: guix-devel, 38455

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

zimoun <zimon.toutoune@gmail.com> writes:

> On Mon, 2 Dec 2019 at 13:16, Pierre Neidhardt <mail@ambrevar.xyz> wrote:
>>
>> I'm actually not sure about one thing: Does `guix pull` catch the errors
>> of `make`?
>
> What is the point of this advice? Check if "guix pull" is broken,
> right? I think "guix pull -n --url=foo" does the job, isn't it?
>
>> I believe that make can output useful warnings, which maybe not bother
>> `guix pull`, but maybe I'm wrong.
>
> This is another tips? Reading all the points, I feel that another
> point about checking the "make" warnings and/or running the test suite
> should be added.

Why not.

> A good indication is that there is no link to
> "Running the Test Suite".
>
> What do you think?

CC-ing guix-devel.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

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

* [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage.
  2019-12-02 12:32     ` zimoun
  2019-12-02 12:46       ` Pierre Neidhardt
@ 2019-12-02 12:48       ` zimoun
  1 sibling, 0 replies; 16+ messages in thread
From: zimoun @ 2019-12-02 12:48 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 38455

I do not find any test about "guix pull" in the test suite. I was
expecting e.g., "guix-pull.sh" or "pull.scm". Do I misread something?

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

* Re: [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage.
  2019-12-02 12:46       ` Pierre Neidhardt
@ 2019-12-02 12:52         ` zimoun
  0 siblings, 0 replies; 16+ messages in thread
From: zimoun @ 2019-12-02 12:52 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: Guix Devel, 38455

On Mon, 2 Dec 2019 at 13:46, Pierre Neidhardt <mail@ambrevar.xyz> wrote:

> CC-ing guix-devel.

If guix-devel is CC-ed, then let talk about the tests of "guix pull"
in the test suite. :-)

I do not find any test about "guix pull" in the test suite. I was
expecting e.g., "guix-pull.sh" or "pull.scm". Do I misread something?

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

* [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage.
  2019-12-02  9:15 [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage Pierre Neidhardt
  2019-12-02 12:08 ` zimoun
@ 2019-12-02 19:31 ` Danny Milosavljevic
  2019-12-02 20:14   ` Pierre Neidhardt
  2019-12-03 10:34   ` zimoun
  1 sibling, 2 replies; 16+ messages in thread
From: Danny Milosavljevic @ 2019-12-02 19:31 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 38455

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

Hi Pierre,

good idea, but I use

$ guix environment --pure guix --ad-hoc git guile-readline guile-json

(Not using "--pure" is asking for trouble in my opinion)

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage.
  2019-12-02 19:31 ` Danny Milosavljevic
@ 2019-12-02 20:14   ` Pierre Neidhardt
  2019-12-02 21:48     ` Danny Milosavljevic
  2019-12-03 10:34   ` zimoun
  1 sibling, 1 reply; 16+ messages in thread
From: Pierre Neidhardt @ 2019-12-02 20:14 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 38455

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

Indeed.
Why would you need the ad-hoc part though?

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

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

* [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage.
  2019-12-02 20:14   ` Pierre Neidhardt
@ 2019-12-02 21:48     ` Danny Milosavljevic
  2019-12-03 10:39       ` zimoun
  0 siblings, 1 reply; 16+ messages in thread
From: Danny Milosavljevic @ 2019-12-02 21:48 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 38455

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

On Mon, 02 Dec 2019 21:14:34 +0100
Pierre Neidhardt <mail@ambrevar.xyz> wrote:

> Why would you need the ad-hoc part though?

I've added it because it didn't work without.

I *think* is was because there was a time where guile-json
was not a dependency of guix-the-package but it became
one of the guix git checkout, making the build of the guix
git checkout in a guix environment fail.
I really can't remember, though.

Some parts of the Guix build use git--can't remember which.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage.
  2019-12-02 19:31 ` Danny Milosavljevic
  2019-12-02 20:14   ` Pierre Neidhardt
@ 2019-12-03 10:34   ` zimoun
  2019-12-08 15:42     ` Pierre Neidhardt
  1 sibling, 1 reply; 16+ messages in thread
From: zimoun @ 2019-12-03 10:34 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 38455, Pierre Neidhardt

Hi Danny,

On Mon, 2 Dec 2019 at 20:33, Danny Milosavljevic <dannym@scratchpost.org> wrote:


> good idea, but I use
>
> $ guix environment --pure guix --ad-hoc git guile-readline guile-json

I think that it is described here [1]

[1] https://guix.gnu.org/manual/en/guix.html#Building-from-Git


From my point of view, the change should only concern how to test
"guix pull" by adding a bullet -- with a link to Building from Git and
 Running Test Suite.


> (Not using "--pure" is asking for trouble in my opinion)

I agree that --pure should be always added to avoid troubles.
Maybe it should be the default of "guix environment"?


Cheers,
simon

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

* [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage.
  2019-12-02 21:48     ` Danny Milosavljevic
@ 2019-12-03 10:39       ` zimoun
  0 siblings, 0 replies; 16+ messages in thread
From: zimoun @ 2019-12-03 10:39 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 38455, Pierre Neidhardt

Hi Danny,


On Mon, 2 Dec 2019 at 22:59, Danny Milosavljevic <dannym@scratchpost.org> wrote:

> On Mon, 02 Dec 2019 21:14:34 +0100
> Pierre Neidhardt <mail@ambrevar.xyz> wrote:
>
> > Why would you need the ad-hoc part though?
>
> I've added it because it didn't work without.

Recently?


> I *think* is was because there was a time where guile-json
> was not a dependency of guix-the-package but it became
> one of the guix git checkout, making the build of the guix
> git checkout in a guix environment fail.
> I really can't remember, though.

I remember as well something like that. But now, it is fixed: "guix
environment guix --pure" does the correct job, I guess.


> Some parts of the Guix build use git--can't remember which.

I do not think so.
But having Git in the environment is really helpful (switch branch,
revert, log, etc.)


Cheers,
simon

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

* [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage.
  2019-12-03 10:34   ` zimoun
@ 2019-12-08 15:42     ` Pierre Neidhardt
  2019-12-12 15:55       ` zimoun
  0 siblings, 1 reply; 16+ messages in thread
From: Pierre Neidhardt @ 2019-12-08 15:42 UTC (permalink / raw)
  To: zimoun, Danny Milosavljevic; +Cc: 38455

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

I've added two points as discussed here: `make` and `guix pull`.

Commits bf99d7e0e2e79935b6748afa059e7392d8e110c8 and
9fcf28205826564a05cfccba301ac3b09d17e86d.

I agree with Simon that a "guix pull" test would be nice.  I've opened
another issue for it.  See "Add test for `guix pull'".

Same with --pure being the default.  Opening another issue "Make --pure
the default for `guix environment'?".

Closing.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

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

* [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage.
  2019-12-08 15:42     ` Pierre Neidhardt
@ 2019-12-12 15:55       ` zimoun
  2019-12-13 12:32         ` Pierre Neidhardt
  0 siblings, 1 reply; 16+ messages in thread
From: zimoun @ 2019-12-12 15:55 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 38455

Hi Pierre,

On Sun, 8 Dec 2019 at 16:42, Pierre Neidhardt <mail@ambrevar.xyz> wrote:

> Commits bf99d7e0e2e79935b6748afa059e7392d8e110c8 and

This commit is incorrect. Because it implies that ./configure has been
run before.

The correct advice -- which is obvious to me -- is: please check if
Guix builds and address the warnings.


All the best,
simon

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

* [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage.
  2019-12-12 15:55       ` zimoun
@ 2019-12-13 12:32         ` Pierre Neidhardt
  2019-12-13 12:32           ` Pierre Neidhardt
  0 siblings, 1 reply; 16+ messages in thread
From: Pierre Neidhardt @ 2019-12-13 12:32 UTC (permalink / raw)
  To: zimoun; +Cc: 38455

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

Acknowledged.
Fixed in da31e7d9ec11081807c6710f0f86def2372a7aff.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

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

* [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage.
  2019-12-13 12:32         ` Pierre Neidhardt
@ 2019-12-13 12:32           ` Pierre Neidhardt
  0 siblings, 0 replies; 16+ messages in thread
From: Pierre Neidhardt @ 2019-12-13 12:32 UTC (permalink / raw)
  To: zimoun; +Cc: 38455

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

And thanks for the catch!

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

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

end of thread, other threads:[~2019-12-13 12:33 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-02  9:15 [bug#38455] [PATCH] doc: Mention how to test against make / guix pull breakage Pierre Neidhardt
2019-12-02 12:08 ` zimoun
2019-12-02 12:16   ` Pierre Neidhardt
2019-12-02 12:32     ` zimoun
2019-12-02 12:46       ` Pierre Neidhardt
2019-12-02 12:52         ` zimoun
2019-12-02 12:48       ` zimoun
2019-12-02 19:31 ` Danny Milosavljevic
2019-12-02 20:14   ` Pierre Neidhardt
2019-12-02 21:48     ` Danny Milosavljevic
2019-12-03 10:39       ` zimoun
2019-12-03 10:34   ` zimoun
2019-12-08 15:42     ` Pierre Neidhardt
2019-12-12 15:55       ` zimoun
2019-12-13 12:32         ` Pierre Neidhardt
2019-12-13 12:32           ` Pierre Neidhardt

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

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.