public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Looking for Perl help verifying old Gentoo elections
@ 2018-08-03 15:00 Michał Górny
  2018-08-03 15:28 ` Andrew Savchenko
  2018-08-03 19:39 ` Ulrich Mueller
  0 siblings, 2 replies; 4+ messages in thread
From: Michał Górny @ 2018-08-03 15:00 UTC (permalink / raw
  To: gentoo-dev

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

Hi, everyone.

Inspired by Robin, I've started working on scripts to verify old Gentoo
election results.  Since our election mechanism is apparently the same
as used by Debian, it seemed an obvious choice to use the Debian tooling
(devotee) to verify our results.

I've been able to successfully 'convert' our elections to a minimal set
of files needed to get devotee running, and wrap it via loop-script to
get full election results (apparently devotee only finds the top winner
while we want the complete ranked list) [1].  I've been able to
successfully verify most of the Gentoo elections using that.  However,
I've hit two problems.

Firstly, there is a result mismatch for council-201206 election.  More
specifically, the countify results are:

[["dberkholz"], ["grobian"], ["chainsaw"], ["scarabeus"], ["ulm"],
["betelgeuse"], ...]

While devotee considers ulm and betelgeuse tied:

[["dberkholz"], ["grobian"], ["chainsaw"], ["scarabeus"], ["betelgeuse",
"ulm"], ...]

Secondly, a number of elections fail midway.  More specifically, devotee
doesn't output any winners at some stage.  This specifically applies to:

council-201706 (fails after tamiko)
council2005 (fails after Koon)
council200906 (fails after lu_zero)
metastructure2005 (fails after Oldschool-small)

That said, devotee outputs a lot of perl warnings and the code [2]
doesn't seem to have been updated for a while now.  Both issues seem to
happen around 'weakest defeat' removal, so the bug might be there.

I'd really appreciate if someone enjoying Perl code could help me figure
out what's wrong -- and more specifically, whether it's some 'bad Perl'
issue, disjoint algorithm or something entirely different.

Quick tip on using:

  # note: current version of Perl seems to be buggy
  # I had to do:
  cpan install Math::BigInt

  git clone https://github.com/mgorny/election-compare.git
  cd election-compare
  git submodule init
  git submodule update
  ./run-countify.py -v council-201206 2>countify-out.txt
  ./run-devotee.py -v council-201206 2>devotee-out.txt

Then the *-out.txt files contain complete output from tools ran.

TIA.


[1]:https://github.com/mgorny/election-compare
[2]:https://vote.debian.org/~secretary/devotee.git/

-- 
Best regards,
Michał Górny

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

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

* Re: [gentoo-dev] Looking for Perl help verifying old Gentoo elections
  2018-08-03 15:00 [gentoo-dev] Looking for Perl help verifying old Gentoo elections Michał Górny
@ 2018-08-03 15:28 ` Andrew Savchenko
  2018-08-03 15:43   ` Michał Górny
  2018-08-03 19:39 ` Ulrich Mueller
  1 sibling, 1 reply; 4+ messages in thread
From: Andrew Savchenko @ 2018-08-03 15:28 UTC (permalink / raw
  To: gentoo-dev

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

On Fri, 03 Aug 2018 17:00:51 +0200 Michał Górny wrote:
> Hi, everyone.
> 
> Inspired by Robin, I've started working on scripts to verify old Gentoo
> election results.  Since our election mechanism is apparently the same
> as used by Debian, it seemed an obvious choice to use the Debian tooling
> (devotee) to verify our results.

As far as I know it is not the same. While we both use Condorcet
method, Gentoo allows several nominees with the same rank, while
Debian does not.

Best regards,
Andrew Savchenko

[-- Attachment #2: Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [gentoo-dev] Looking for Perl help verifying old Gentoo elections
  2018-08-03 15:28 ` Andrew Savchenko
@ 2018-08-03 15:43   ` Michał Górny
  0 siblings, 0 replies; 4+ messages in thread
From: Michał Górny @ 2018-08-03 15:43 UTC (permalink / raw
  To: gentoo-dev

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

W dniu pią, 03.08.2018 o godzinie 18∶28 +0300, użytkownik Andrew
Savchenko napisał:
> On Fri, 03 Aug 2018 17:00:51 +0200 Michał Górny wrote:
> > Hi, everyone.
> > 
> > Inspired by Robin, I've started working on scripts to verify old Gentoo
> > election results.  Since our election mechanism is apparently the same
> > as used by Debian, it seemed an obvious choice to use the Debian tooling
> > (devotee) to verify our results.
> 
> As far as I know it is not the same. While we both use Condorcet
> method, Gentoo allows several nominees with the same rank, while
> Debian does not.
> 

They actually do:

> Voters may rank options equally.  [1]

[1]:https://www.debian.org/devel/constitution.en.html A.6

-- 
Best regards,
Michał Górny

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

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

* Re: [gentoo-dev] Looking for Perl help verifying old Gentoo elections
  2018-08-03 15:00 [gentoo-dev] Looking for Perl help verifying old Gentoo elections Michał Górny
  2018-08-03 15:28 ` Andrew Savchenko
@ 2018-08-03 19:39 ` Ulrich Mueller
  1 sibling, 0 replies; 4+ messages in thread
From: Ulrich Mueller @ 2018-08-03 19:39 UTC (permalink / raw
  To: gentoo-dev

>>>>> On Fri, 03 Aug 2018, Michał Górny wrote:

> Firstly, there is a result mismatch for council-201206 election.
> More specifically, the countify results are:

> [["dberkholz"], ["grobian"], ["chainsaw"], ["scarabeus"], ["ulm"],
> ["betelgeuse"], ...]

> While devotee considers ulm and betelgeuse tied:

> [["dberkholz"], ["grobian"], ["chainsaw"], ["scarabeus"],
> ["betelgeuse", "ulm"], ...]

I haven't checked any of the perl code, but the online voting
calculator at https://www.cse.wustl.edu/~legrand/rbvote/calc.html
agrees with the countify ranking.

Ulrich


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

end of thread, other threads:[~2018-08-03 19:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-03 15:00 [gentoo-dev] Looking for Perl help verifying old Gentoo elections Michał Górny
2018-08-03 15:28 ` Andrew Savchenko
2018-08-03 15:43   ` Michał Górny
2018-08-03 19:39 ` Ulrich Mueller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox