matrix-org / matrix-org/matrixmon

Arm builds are not working due to broken dependency

Open
#12 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Perl
Stars
11
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Having now had a chance to test this:

```
Can't locate Net/Prometheus.pm in @INC (you may need to install the Net::Prometheus module) (@INC entries checked: /home/matrixmon/perl5/lib/perl5/aarch64-linux-gnu /home/matrixmon/perl5/lib/perl5 /usr/local/lib/perl5/site_perl/5.38.0/aarch64-linux-gnu /usr/local/lib/perl5/site_perl/5.38.0 /usr/local/lib/perl5/vendor_perl/5.38.0/aarch64-linux-gnu /usr/local/lib/perl5/vendor_perl/5.38.0 /usr/local/lib/perl5/5.38.0/aarch64-linux-gnu /usr/local/lib/perl5/5.38.0) at mon.pl line 13.
```

```
2023-10-26T11:38:18.2924039Z #22 5787.7 ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Net/Prometheus/PerlCollector/PerlCollector.bs')
2023-10-26T11:38:18.2925931Z #22 5787.7 cc -shared -O2 -L/usr/local/lib -fstack-protector-strong -o blib/arch/auto/Net/Prometheus/PerlCollector/PerlCollector.so lib/Net/Prometheus/PerlCollector.o
2023-10-26T11:38:18.8842337Z #22 5788.4 PEVANS/Net-Prometheus-0.12.tar.gz
2023-10-26T11:38:18.8843445Z #22 5788.4 ./Build -- OK
2023-10-26T11:38:22.6411276Z #22 5792.1 The current configuration of allow_installing_outdated_dists is 'ask/no', but for this option we would need 'CPAN::DistnameInfo' installed. Please install 'CPAN::DistnameInfo' as soon as possible. As long as we are not equipped with 'CPAN::DistnameInfo' this option does not take effect
2023-10-26T11:38:22.6413722Z #22 5792.1 Running Build test for PEVANS/Net-Prometheus-0.12.tar.gz
2023-10-26T11:38:26.2471229Z #22 5795.7 t/00use.t ...................... ok
2023-10-26T11:38:26.9596674Z #22 5796.5 t/01metric.t ................... ok
2023-10-26T11:38:27.8611120Z #22 5797.4 t/02labels.t ................... ok
2023-10-26T11:38:28.7626789Z #22 5798.2 t/10gauge.t .................... ok
2023-10-26T11:38:29.4681394Z #22 5799.0 t/11counter.t .................. ok
2023-10-26T11:38:30.3708399Z #22 5799.9 t/12summary.t .................. ok
2023-10-26T11:38:31.2730926Z #22 5800.7 t/13histogram.t ................ ok
2023-10-26T11:38:32.1743332Z #22 5801.6 t/20client.t ................... ok
2023-10-26T11:38:33.0764020Z #22 5802.5 t/21label-rendering.t .......... ok
2023-10-26T11:38:33.7967494Z #22 5803.3 t/22metric-grouping.t .......... ok
2023-10-26T11:38:34.6612117Z #22 5804.2 t/23collector.t ................ ok
2023-10-26T11:38:35.7010416Z #22 5805.3 t/30handle.t ................... ok
2023-10-26T11:38:36.5860064Z #22 5806.1 t/31psgi.t ..................... ok
2023-10-26T11:38:37.4755957Z #22 5807.0 t/32export-future-io.t ......... skipped: Future::IO::Impl::UV 0.03 is not available
2023-10-26T11:38:38.3769241Z #22 5807.8 t/40process-collector.t ........ ok
2023-10-26T11:38:39.0802815Z #22 5808.6
2023-10-26T11:38:39.0803538Z #22 5808.6 # Failed test 'sample value above zero'
2023-10-26T11:38:39.0804237Z #22 5808.6 # at t/41process-collector-linux.t line 29.
2023-10-26T11:38:39.0804827Z #22 5808.6 # Looks like you failed 1 test of 8.
2023-10-26T11:38:39.2302684Z #22 5808.6 t/41process-collector-linux.t ..
2023-10-26T11:38:39.2303344Z #22 5808.6 Dubious, test returned 1 (wstat 256, 0x100)
2023-10-26T11:38:39.2303871Z #22 5808.6 Failed 1/8 subtests
2023-10-26T11:38:39.9682618Z #22 5809.5 t/50perl-collector.t ........... ok
2023-10-26T11:38:41.0207134Z #22 5810.4 t/51perl-collector-detail.t .... ok
2023-10-26T11:38:41.6134081Z #22 5811.2 t/99pod.t ...................... skipped: Test::Pod 1.00 required for testing POD
2023-10-26T11:38:41.7634473Z #22 5811.2
2023-10-26T11:38:41.7635291Z #22 5811.2 Test Summary Report
2023-10-26T11:38:41.7636348Z #22 5811.2 -------------------
2023-10-26T11:38:41.7637174Z #22 5811.2 t/41process-collector-linux.t (Wstat: 256 (exited 1) Tests: 8 Failed: 1)
2023-10-26T11:38:41.7637914Z #22 5811.2 Failed test: 6
2023-10-26T11:38:41.7638360Z #22 5811.2 Non-zero exit status: 1
2023-10-26T11:38:41.7639137Z #22 5811.2 Files=19, Tests=106, 16 wallclock secs ( 0.29 usr 0.03 sys + 15.71 cusr 0.64 csys = 16.67 CPU)
2023-10-26T11:38:41.7639895Z #22 5811.2 Result: FAIL
2023-10-26T11:38:41.7640367Z #22 5811.2 Failed 1/19 test programs. 1/106 subtests failed.
2023-10-26T11:38:44.6193491Z #22 5814.1 PEVANS/Net-Prometheus-0.12.tar.gz
2023-10-26T11:38:44.6194133Z #22 5814.1 ./Build test -- NOT OK
2023-10-26T11:38:44.6194885Z #22 5814.1 //hint// to see the cpan-testers results for installing this module, try:
2023-10-26T11:38:44.6195731Z #22 5814.1 reports PEVANS/Net-Prometheus-0.12.tar.gz
2023-10-26T11:38:48.8237763Z #22 5818.4 Reading '/home/matrixmon/.cpan/Metadata'
2023-10-26T11:38:57.0890444Z #22 5826.5 Database was generated on Thu, 26 Oct 2023 09:54:09 GMT
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with mon.pl line 13 and the Net::Prometheus dependency, then reproduce the reported ARM build and test failure. Inspect t/41process-collector-linux.t, especially line 29 and failed test 6, alongside the dependency test output. Done means the ARM build completes and the failing process-collector test passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
build-system, observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.