public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: ASSI <Stromeko@nexgo.de>
To: cygwin-apps@cygwin.com
Subject: Re: cygport test has zero exit status on failures
Date: Wed, 19 May 2021 07:16:09 +0200	[thread overview]
Message-ID: <87y2cbcnhi.fsf@Otto.invalid> (raw)
In-Reply-To: <051901d74c28$58efeac0$0acfc040$@pdinc.us> (Jason Pyeron's message of "Tue, 18 May 2021 16:57:00 -0400")

Jason Pyeron writes:
> If I have a CI build for *.cygport - is it expected to have
> conditional logic based on which package is being processed?

Not necessarily, I understand you were talking about default behaviour
and how the current default doesn't match your / your CI's expectation.
To reiterate, you can already do what you want by defining your own
src_test function and this behaviour becomes part of the package
definition then.

> I thought was the purpose of the cygport file [1] was to contain only
> the compiling, testing, and installation instructions, just like
> portage [2].

I consider cygport its own thing by now that is not actively
synchronized to what portage ends up doing.

> In any case the all or all-test does not execute the test step, so the
> customization of the src_test does not impact the default behaviors.

That's beside the point.  We were only talking about the test behaviours
or at least I was, anyway.  Now again, if you do that in the cygport
file you mix that expectation of getting a return value (that really
comes from the way you run cygport in the CI and determine the test
status) with the package definition.  If you force that to satisfy your
CI requirements, you also break the flow for folks who (as an example)
rather do

cygport $p finish prep compile inst test pkg

because a test fail would now error out before getting to the packaging
step.  Which is why I was musing that your preference in how to treat a
test fail should really be injected from the run-time environment rather
than the package definition.  Once that mechanism is in place I can also
start writing my own src_test functions that switch their behaviour
depending on that setting so that these package definitions would work
in either environment.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables

  reply	other threads:[~2021-05-19  5:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-09 21:12 Jason Pyeron
2021-05-10  5:06 ` ASSI
2021-05-17 22:29   ` Jason Pyeron
2021-05-18  4:36     ` ASSI
2021-05-18 19:17       ` Jason Pyeron
2021-05-18 20:16         ` Achim Gratz
2021-05-18 20:57           ` Jason Pyeron
2021-05-19  5:16             ` ASSI [this message]
2021-05-19  7:05               ` Marco Atzeri
2021-05-19 16:32                 ` Jason Pyeron
2021-05-19 17:14                   ` Achim Gratz
2021-05-19 17:24                   ` Marco Atzeri
2021-05-19 17:30                     ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y2cbcnhi.fsf@Otto.invalid \
    --to=stromeko@nexgo.de \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).