unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Automated linting before master branch commit
@ 2019-03-25 16:49 mikadoZero
  2019-03-25 17:24 ` Danny Milosavljevic
  0 siblings, 1 reply; 4+ messages in thread
From: mikadoZero @ 2019-03-25 16:49 UTC (permalink / raw)
  To: Guix-devel

# Automated linting

What do people think about automating package linting?  This would be to
make sure a package is linted before it is committed to the Guix
repository master branch?

I am not familiar with what Guix uses for continuous integration /
deployment.

I do not know if automated linting is already in place.  The packages
on the master branch that have linting issues could have been committed
before automated linting was in place.

# Acknowledgment

It was brought to my attention by Tobias Geerinckx-Rice:

"... tarballs aren't guaranteed to be stable over time (GitHub can
regenerate them, changing the metadata and hence the hash, and has done
so in the past). 

They must not be used.  ..."

https://lists.gnu.org/archive/html/help-guix/2019-03/msg00096.html

# Guix master branch

There are package in the Guix repository master branch that use an
autogenerated tarball and have this lint output:

"the source URI should not be an autogenerated tarball"

# Number of packages

Estimated number of packages with autogenerated tarball:

389

This is a low estimate as it is only counts GitHub autogenerated
tarballs.

This estimate is from this command run in the Guix repository.

`grep github.*archive gnu/packages/*scm | wc -l`

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

* Re: Automated linting before master branch commit
  2019-03-25 16:49 Automated linting before master branch commit mikadoZero
@ 2019-03-25 17:24 ` Danny Milosavljevic
  2019-03-25 18:31   ` Ricardo Wurmus
  2019-03-27 13:01   ` mikadoZero
  0 siblings, 2 replies; 4+ messages in thread
From: Danny Milosavljevic @ 2019-03-25 17:24 UTC (permalink / raw)
  To: mikadoZero; +Cc: Guix-devel

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

Hi,

> What do people think about automating package linting?  This would be to
> make sure a package is linted before it is committed to the Guix
> repository master branch?

A linter by its nature will in some cases flag things which are not wrong,
otherwise one could just check the stuff while compiling in the first place.

> I am not familiar with what Guix uses for continuous integration /
> deployment.

We can manually make cuirass and/or Hydra evaluate custom branches--but it's
not automated.

Christopher Baines is working on making patch review better--see thread
"Patchwork + automated checking and testing of patches".

> Estimated number of packages with autogenerated tarball:
> 
> 389

Yeah, those should be updated.  With that many packages, writing a script
to do it would be less annoying.

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

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

* Re: Automated linting before master branch commit
  2019-03-25 17:24 ` Danny Milosavljevic
@ 2019-03-25 18:31   ` Ricardo Wurmus
  2019-03-27 13:01   ` mikadoZero
  1 sibling, 0 replies; 4+ messages in thread
From: Ricardo Wurmus @ 2019-03-25 18:31 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: Guix-devel


Danny Milosavljevic <dannym@scratchpost.org> writes:

>> Estimated number of packages with autogenerated tarball:
>> 
>> 389
>
> Yeah, those should be updated.  With that many packages, writing a script
> to do it would be less annoying.

Most of these packages were added before we realized that these
generated tarballs are not stable.  There has been an effort to remove
them.  Linting would not have prevented this.

-- 
Ricardo

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

* Re: Automated linting before master branch commit
  2019-03-25 17:24 ` Danny Milosavljevic
  2019-03-25 18:31   ` Ricardo Wurmus
@ 2019-03-27 13:01   ` mikadoZero
  1 sibling, 0 replies; 4+ messages in thread
From: mikadoZero @ 2019-03-27 13:01 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: Guix-devel


Danny Milosavljevic writes:

> Hi,
>
>> What do people think about automating package linting?  This would be to
>> make sure a package is linted before it is committed to the Guix
>> repository master branch?
>
> A linter by its nature will in some cases flag things which are not wrong,
> otherwise one could just check the stuff while compiling in the first place.
>
>> I am not familiar with what Guix uses for continuous integration /
>> deployment.
>
> We can manually make cuirass and/or Hydra evaluate custom branches--but it's
> not automated.
>
> Christopher Baines is working on making patch review better--see thread
> "Patchwork + automated checking and testing of patches".

Thanks for sharing that thread.

>> Estimated number of packages with autogenerated tarball:
>> 
>> 389
>
> Yeah, those should be updated.  With that many packages, writing a script
> to do it would be less annoying.

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

end of thread, other threads:[~2019-03-27 13:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-25 16:49 Automated linting before master branch commit mikadoZero
2019-03-25 17:24 ` Danny Milosavljevic
2019-03-25 18:31   ` Ricardo Wurmus
2019-03-27 13:01   ` mikadoZero

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).