Skip to content

Yath Start/Run broken in 2.000009 #365

@mattmartini

Description

@mattmartini

After upgrading to 2.000009 all of my test suites fail when tring to use yath start and yath run

The error message I see is:

PERL_HASH_SEED not set, setting to '20260404' for more reproducible results.
Creating ipc file: /private/var/folders/jv/p1y0rbld1m55kntr6jl6602h0000w5/T/yath-ipc-martini-11f5e7ebcb4d1339e86dccd2419d2eb513eb2e83/IPC-daemon-6308-AtomicPipe

PERL_HASH_SEED not set, setting to '20260404' for more reproducible results.

** Note: You should use the `do`, `run` or `test` commands, relying on the default behavior when no command is specified is discouraged. **

The 'orig_tmp' option does not exist at /opt/homebrew/opt/perl/lib/perl5/site_perl/5.42/Getopt/Yath/Settings/Group.pm line 74.
	Getopt::Yath::Settings::Group::AUTOLOAD(Getopt::Yath::Settings::Group=HASH(0x790521210)) called at /opt/homebrew/opt/perl/lib/perl5/site_perl/5.42/App/Yath/IPC.pm line 50
	App::Yath::IPC::dir(App::Yath::IPC=HASH(0x790ca8540)) called at /opt/homebrew/opt/perl/lib/perl5/site_perl/5.42/App/Yath/IPC.pm line 78
	App::Yath::IPC::_find_ipcs(App::Yath::IPC=HASH(0x790ca8540)) called at /opt/homebrew/opt/perl/lib/perl5/site_perl/5.42/App/Yath/IPC.pm line 71
	App::Yath::IPC::ipcs(App::Yath::IPC=HASH(0x790ca8540)) called at /opt/homebrew/opt/perl/lib/perl5/site_perl/5.42/App/Yath/IPC.pm line 310
	App::Yath::IPC::find(App::Yath::IPC=HASH(0x790ca8540)) called at /opt/homebrew/opt/perl/lib/perl5/site_perl/5.42/App/Yath.pm line 428
	App::Yath::process_args(App::Yath=HASH(0x790b22930)) called at /opt/homebrew/opt/perl/lib/perl5/site_perl/5.42/App/Yath.pm line 502
	App::Yath::run(App::Yath=HASH(0x790b22930)) called at /opt/homebrew/opt/perl/lib/perl5/site_perl/5.42/App/Yath/Script.pm line 62
	App::Yath::Script::run("/opt/homebrew/opt/perl/bin/yath", ARRAY(0x790c3abe8)) called at /opt/homebrew/opt/perl/bin/yath line 24
PERL_HASH_SEED not set, setting to '20260404' for more reproducible results.

If I run yath test the tests run as expected.

Normally I use the following bash script run_yath.sh to watch my source code and re-run yath when changes happen. Since the upgrade it fails with the error message above.

#!/usr/bin/env bash

set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT

cleanup() {
  trap - SIGINT SIGTERM ERR EXIT
  yath stop
}

yath_args=''
yath_start_args='--job-count 8:2'
yath_dirs='t '

while [[ "$#" -gt 0 ]]; do
  if [[ "$1" == '--verbose' ]]; then
    yath_args+=' --verbose'
  elif [[ "$1" == '--single' ]]; then
    yath_start_args+=' --no-job-count --no-slots-per-job '
  elif [[ "$1" == '--author' ]]; then
    export AUTHOR_TESTING=1
    yath_dirs+='xt '
  fi
  shift
done

yath start $yath_start_args

find lib t xt examples | entr yath $yath_dirs run $yath_args

I have tried with and without my .yath.rc file

[test]
;-L

[start]
--blib
-PTest2::V0
-PDev::Util::Syntax
-PTest2::Require::AuthorTesting
-PTest2::Require::Module
--reload
--job-count 8:2

After downgrading to 1.000164 my test suites run as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions