#1144504 Proper way to skip tests on 32-bit architectures

#1144504#3
Date:
2026-08-16 09:05:24 UTC
From:
To:
Hi,

there are a few architecture: all PostgreSQL extension packages that
we need to skip tests for on 32-bit architectures because they depend
on other extensions that are 64-bit only.

One example is pgfaceting (arch: all), it depends on pg-roaringbitmaps
(arch: any, B-D: architecture-is-64-bit). (Other examples: pgq-node,
londiste-sql.)

The natural, modern way to do that would be to make it test-depend on
architecture-is-64-bit, but it's already not installable (and tests
fail because of that) so that doesn't help.

Using "if dpkg-architecture -qDEB_HOST_ARCH_BITS = 32 then exit 77"
doesn't work because it fails even before executing the test.

The manual recommends to use an architectures list for this, but
explicitly listing all 64-bit archs seems like a step in the wrong
direction.

So I'm now using skip-not-installable which is deprecated but does the
job. (But papers over any other installability problems.)

Any better ideas?

Thanks,
Christoph

#1144504#8
Date:
2026-08-16 12:55:52 UTC
From:
To:
Hi,


The best I can currently offer is explicitly listing the two supported
32-bit architectures with an exclamation mark, then the arch will be
skipped.

Paul

#1144504#13
Date:
2026-08-16 13:26:43 UTC
From:
To:
Re: Paul Gevers

Ah, that doesn't sound too bad and since we are likely not adding any
new 32-bit ones, it doesn't get worse over time.

Thanks, will switch over with the next uploads.

I'll close this bug then. Feel free to reopen if you think there is a
new feature missing.

Cheers,
Christoph