8 years ago(travis) Display TAP directives on single threaded CI runs current/blead current/for_cpan_index
Peter Rabbitson [Sat, 13 Feb 2016 20:38:31 +0000]
(travis) Display TAP directives on single threaded CI runs

Add a couple extra single-thread runs, shouldn't take *that* much longer

8 years ago(travis) Fix INC-poison thinko from 6d74b82cc
Peter Rabbitson [Thu, 18 Feb 2016 04:46:00 +0000]
(travis) Fix INC-poison thinko from 6d74b82cc

Ensure stable DBIC is in fact in INC by test time ( detected courtesy of the
@INC-state reporter in t/00describe_environment.t \o/ )

8 years ago(travis) Revert version.pm workaround dd94f6ef
Peter Rabbitson [Thu, 18 Feb 2016 04:14:29 +0000]
(travis) Revert version.pm workaround dd94f6ef

8 years agoEeeeep /x doesn't affect the insides of [...]
Peter Rabbitson [Sat, 13 Feb 2016 17:27:11 +0000]
Eeeeep /x doesn't affect the insides of [...]

8 years agoApply debian downstream spelling patch 481e21bf
gregor herrmann [Sat, 13 Feb 2016 18:56:13 +0000]
Apply debian downstream spelling patch 481e21bf

8 years agoAdjust Changes to reflect what was shipped in 0.082821
Peter Rabbitson [Sat, 13 Feb 2016 20:01:48 +0000]
Adjust Changes to reflect what was shipped in 0.082821

8 years agoAdd experimental meta flags signifying the status of parallel testing
Peter Rabbitson [Thu, 11 Feb 2016 17:07:51 +0000]
Add experimental meta flags signifying the status of parallel testing

8 years agoAdd explicit patronage listing (should have done this a while ago)
Peter Rabbitson [Thu, 11 Feb 2016 17:52:40 +0000]
Add explicit patronage listing (should have done this a while ago)

Not generalizing it (yet) as patrons are few and far between

8 years agoProper fix for the lazy workaround in 7e1774f7
Dagfinn Ilmari Mannsåker [Mon, 8 Feb 2016 16:31:22 +0000]
Proper fix for the lazy workaround in 7e1774f7

Pure-perl subs return values as mortal copies on the stack, incrementing
the reference count until the next statement.  In the case of the last
statement in a sub, that is in the caller, after the other lexicals have
been GCed.

  if ( ... ) { ... };

counts as a single statement for this purpose, since it compiles to

  ( ... ) && do { ... };

The reason this doesn't bite when using XS is that Class::XSAcessor
returns the SV directly from the hash, rather than a mortal copy, so the
reference count never gets incremented.

Generalize the fix to a similar problem (8e9b9ce5) and pepper potentially
problematic codepaths with explicit NEXTSTATEs. Many of the changes do not
resolve anything as there is no "statement leakage" in most of this code,
but it is a good idea to have them there nevertheless: This way future
code-flow modifications will not accidentally reintroduce this problem.

8 years agoSilence more spurious warnings (this one is a serious wtf)
Peter Rabbitson [Thu, 4 Feb 2016 09:30:30 +0000]
Silence more spurious warnings (this one is a serious wtf)

Seen in no-XS CI (e.g https://travis-ci.org/dbsrgits/dbix-class/jobs/106811389)
on all perls and too involved to diagnose properly given the tight schedule

Just go for a cop out

8 years agoDo our best to disconnect on request (goes with 45792de6)
Peter Rabbitson [Thu, 4 Feb 2016 09:18:51 +0000]
Do our best to disconnect on request (goes with 45792de6)

This ensures that a failed rollback won't leave is in a weird state

8 years agoRemove statement cache eviction before disconnect
Peter Rabbitson [Thu, 4 Feb 2016 08:54:13 +0000]
Remove statement cache eviction before disconnect

This was added for no apparent reason with a ton of other code in f200d74b.
It is known to have unintended effects on at least ::Pg handles (as detailed
in theory/dbix-connector/issues/39) and generally seems like a gratuitous
action to take.

Given it doesn't seem to add extra noise on any of the test runs - kill it
with fire.

8 years agoStreamline couple code paths/texts, no func changes (goes with 7cb35852)
Peter Rabbitson [Thu, 4 Feb 2016 09:16:40 +0000]
Streamline couple code paths/texts, no func changes (goes with 7cb35852)

8 years agoProtect DBIC as best we can from the failure mode in 7cb35852
Peter Rabbitson [Wed, 3 Feb 2016 00:32:00 +0000]
Protect DBIC as best we can from the failure mode in 7cb35852

The main idea is that while exception_action works just like $SIG{__DIE__},
this is less than ideal as non-sufficiently-careful software can completely
abort a callstack by goto()-ing out of it (not to mention the annoyance of
users when receiving callbacks on exceptions that DBIC later handles).

So this changeset makes exception_action() behave *better* than $SIG{__DIE__}
by meticlously annotating every DBIC-internal recoverable-exception site and
ensuring that exception_action (and any $SIG{__DIE__} callback) is not
invoked in this case ( see the diff of t/61findnot.t specifically )

This is a rather heavy and involved set of changes, but there seems to be no
other way to go around this. There were complaints already due to firing o
handlers on recoverable errors, but this is the first time the integrity of
the actul DBIC code flow was broken. Thus an executive decision was made to
solve this for good (took about 2 full days of work, sigh...)

The main part of this changset is in ::Schema.pm and ::_Util.pm, the rest is
simply switching from try/eval =>  dbic_internal_try. Some codepaths can not
be executed due to lack of RDBMS, but afaict it all works.

The changes were audited by a combination of:

  watch -x grep -rnP --exclude='*.pod' '^(?!\s*\#).*?(\beval\b|\btry\b)' lib

  git diff HEAD^ \
  |  perl -0777 -e 'my $str = <>; while( $str =~ /(?:\A|^index)(.+?)(?:^diff|\z)/gsm) { my $substr = $1; warn $substr if ( $substr =~ /dbic_internal_try/ and $substr !~ /DBIx::Class::_Util/ ) }' 2>&1 \
  | less

And a BaseSchema.pm exception_action hook which registers failures on any
invocation which is not paired with an eval/thows_ok/etc in a t/**.t frame.
In other words we make sure when exception_action is invoked - a test is there
waiting for the resulting exception, assuming any other exception is transient
( needs DBICTEST_ASSERT_NO_SPURIOUS_EXCEPTION_ACTION to be set ).

Additionally there is a global CI-enabled Try::Tiny::try override which fails
on calls from within the DBIx::Class namespace.

8 years agoCleaner assertion envvar handling
Peter Rabbitson [Tue, 15 Dec 2015 22:26:07 +0000]
Cleaner assertion envvar handling

No functional changes, aside from making few envvars always set on CI

8 years agoFix test failure with DBD::mysql < 4.023 introduced in 729656c5
Peter Rabbitson [Wed, 3 Feb 2016 18:39:56 +0000]
Fix test failure with DBD::mysql < 4.023 introduced in 729656c5

8 years agoDetect and very loudly warn about Return::Multilevel in exception_action()
Peter Rabbitson [Tue, 2 Feb 2016 10:23:04 +0000]
Detect and very loudly warn about Return::Multilevel in exception_action()

8 years agoRemove gratuituous use of eval
Peter Rabbitson [Wed, 3 Feb 2016 00:30:36 +0000]
Remove gratuituous use of eval

8 years agoRemove last remaining accesses to ->VERSION in lib
Peter Rabbitson [Sat, 24 Jan 2015 15:16:14 +0000]
Remove last remaining accesses to ->VERSION in lib

Beef up and streamline (with caching) the ::_Util mod version checks

Read under -w

8 years agoStreamline BYTEA (binary) Pg optdeps using the new augmentation system
Peter Rabbitson [Mon, 19 Jan 2015 14:00:42 +0000]
Streamline BYTEA (binary) Pg optdeps using the new augmentation system

Read under -w

8 years agoRemove Config::Any from the core dep set
Peter Rabbitson [Sat, 9 May 2015 12:20:28 +0000]
Remove Config::Any from the core dep set

Originally introduced by b6cd6478, the dep is used *very* rarely. Relegate
it to optdep state instead, thus removing a Module::Pluggable entry from the
depchain (evicted from core in 5.20)

8 years agoRemove dead code commented out since 2006 ( 953a18ef )
Peter Rabbitson [Tue, 2 Feb 2016 18:16:20 +0000]
Remove dead code commented out since 2006 ( 953a18ef )

The todo test it refers to are either the ones deleted in 8452e496 OR the ones
still there in t/relationship/core.t:

 git log -S'relationship checking needs fixing'

8 years agoEnsure the $storage state reflects the current connection state closely
Peter Rabbitson [Wed, 27 Jan 2016 12:35:55 +0000]
Ensure the $storage state reflects the current connection state closely

Add several extra calls to ->disconnect, ensuring that oddball events do not
leave things in an undefined state. Even more rather hideous testcases, looks
like that problem has been nailed now. Several remain, see next commits :(

8 years agoAnother overhaul (hopefully one of the last ones) of the rollback handling
Peter Rabbitson [Wed, 27 Jan 2016 11:27:25 +0000]
Another overhaul (hopefully one of the last ones) of the rollback handling

This subsystem has seen several passes (most notably 90d7422fc), all of them
utterly misguided and of rather terrible quality :( Lay groundwork for a saner
system by consolidating the "rollback after exception, with potential rewrite"
mechanism. There should be no notably changes in behavior (aside from several
transaction texts), for that see next commit.

Contains a rather hideous piece of code propagated over several years. Not
tackling that yet, as too many things are in motion.

Read under -w

8 years agoRemove useless try{} and rename some variables in ::TxnScopeGuard
Peter Rabbitson [Wed, 27 Jan 2016 17:12:00 +0000]
Remove useless try{} and rename some variables in ::TxnScopeGuard

No functional changes, read under --color-words

8 years agoConsolidate various $storage state resets in $storage->disconnect()
Peter Rabbitson [Fri, 22 Jan 2016 12:07:49 +0000]
Consolidate various $storage state resets in $storage->disconnect()

Currently no functional changes, but see next commits

8 years agoMake sure Win32-like DBICTest checks are not tripped by repeated disconnects
Peter Rabbitson [Fri, 22 Jan 2016 13:14:58 +0000]
Make sure Win32-like DBICTest checks are not tripped by repeated disconnects

8 years agoEven more elaborate txnguard testing, augmenting 6e102c8f
Peter Rabbitson [Mon, 14 Dec 2015 11:08:31 +0000]
Even more elaborate txnguard testing, augmenting 6e102c8f

Essentially this ensures the claim in 35cf7d1af (exception codepaths within
DBIC are not affected by a leftover non-cooperative exception object present
in $@) is semi-correct

Read under -w

8 years agoThrow away remnant commented out in 36099e8c
Peter Rabbitson [Mon, 14 Dec 2015 10:40:21 +0000]
Throw away remnant commented out in 36099e8c

The stuff being tested is too touchy already to try adding extra sugar to the
test. If anything further moving away from Test::* might be in order.

8 years agoRelax overly aggressive exception-well-formedness checks from 84e4e006
Peter Rabbitson [Sun, 13 Dec 2015 16:25:38 +0000]
Relax overly aggressive exception-well-formedness checks from 84e4e006

Given that the actual exception codepaths within DBIC are not affected by
a leftover non-cooperative exception object present in $@, it is rather
counterproductive to warn out the PSA in these cases

8 years agoMicrooptimize various "is this string empty" checks
Peter Rabbitson [Mon, 14 Dec 2015 09:18:17 +0000]
Microoptimize various "is this string empty" checks

Checking the truthiness of the separately tracked string length is vastly
faster than doing actual string comparison

Working set identified via: grep -nPr "\b(ne|eq)\b\s*(\"\"|''|q{}|q())" lib

8 years agoRemove all uses of Scope::Guard from the tests, use our own version
Peter Rabbitson [Tue, 14 Feb 2012 22:13:30 +0000]
Remove all uses of Scope::Guard from the tests, use our own version

A deferred constraints rework several commits later will remove all remaining
uses from lib/ and as such we will lose the dep entirely

8 years agoAdd the repository-specific git config include (git >= 1.7.10)
Peter Rabbitson [Tue, 19 Jan 2016 21:08:10 +0000]
Add the repository-specific git config include (git >= 1.7.10)

!!! NOTE - potential security RISK !!!

 You *MUST*
  - check the file is legit:
     git diff 7eb1f0e165a4 maint/git_config_dbic.inc

  - copy the file to your .git directory:
     cp maint/git_config_dbic.inc .git/

  - and include it:
     git config --add include.path git_config_dbic.inc

 **NEVER** include the file directly from the repository itself, e.g.

 [include]
   path = ../maint/git_config_dbic.inc

!!! NOTE - potential security RISK !!!

Adds extra maint-specific repositories, and defines two gitk shortcuts:

 `git vis` - showing all current heads/stashes of interest in progress
 `git prvis` - showing all unattended to github PRs

8 years ago(travis) Add DB2 to the CI lineup
Dagfinn Ilmari Mannsåker [Thu, 8 Jan 2015 12:00:34 +0000]
(travis) Add DB2 to the CI lineup

Not testing on legacy infrastructure (3G Ram) for the time being

8 years ago(travis) Instead of polluting the log on failure, just be loud on OOM alone
Peter Rabbitson [Fri, 8 Jan 2016 18:19:38 +0000]
(travis) Instead of polluting the log on failure, just be loud on OOM alone

Printing the entire VM state has not been useful for the 2 years it's been in
place, so just retire it altogether

8 years ago(travis) Install extra deps for the t/52leaks.t persistency tests
Peter Rabbitson [Fri, 23 Jan 2015 06:50:50 +0000]
(travis) Install extra deps for the t/52leaks.t persistency tests

These are not part of OptDeps as the stuff on CPAN is hopelessly outdated.
But if we leverage the excellent patchsets prepared by the debian-perl group
we can get very very far indeed.

8 years agoAudit/simplify various ->is_* runmode specs
Peter Rabbitson [Tue, 19 Jan 2016 20:45:32 +0000]
Audit/simplify various ->is_* runmode specs

8 years agoRevert sloppy workaround in dabde0bc5, addressed by prev. commit
Peter Rabbitson [Thu, 7 Jan 2016 17:37:28 +0000]
Revert sloppy workaround in dabde0bc5, addressed by prev. commit

Tighten up the Firebird setup, add an explicit travis-brewed 5.10 smoke and
add extra randomness to the testing order in t/750firebird.t

Tested to bits with:

--- a/maint/travis-ci_scripts/40_script.bash
+++ b/maint/travis-ci_scripts/40_script.bash
@@ -28,15 +28,17 @@ if [[ "$CLEANTEST" = "true" ]] ; then
   run_or_err "Prepare blib" "make pure_all"
   run_harness_tests
 else
-  PROVECMD="prove -lrswj$VCPU_USE xt t"
+  PROVECMD="prove -lrswj$VCPU_USE t/750firebird.t"

   # FIXME - temporary, until Package::Stash is fixed
   if perl -M5.010 -e 1 &>/dev/null ; then
     PROVECMD="$PROVECMD -T"
   fi

+  for f in $(seq 200) ; do
     echo_err "$(tstamp) running tests with \`$PROVECMD\`"
     $PROVECMD 2> >(tee "$TEST_STDERR_LOG")
+  done
 fi
 TEST_T1=$SECONDS

Results at: https://travis-ci.org/ribasushi/dbix-class/builds/100894293

8 years agoThe complete fix for intermittent t/750firebird.t failures (RT#110979)
Peter Rabbitson [Thu, 7 Jan 2016 17:26:02 +0000]
The complete fix for intermittent t/750firebird.t failures (RT#110979)

It makes no sense to throw values away in case the finish() failed - they are
good regardless. Not sure what I was thinking at the time :(

See also next commit

8 years ago(deplist) Make it clear which non-existent yet known directories are in @INC
Peter Rabbitson [Sat, 20 Jun 2015 13:51:57 +0000]
(deplist) Make it clear which non-existent yet known directories are in @INC

Also add explicit xt/ entries (not that I've seen this in the wild)

8 years ago(travis) Make sure we really test everything when using cpanm (devrels)
Peter Rabbitson [Thu, 7 Jan 2016 15:55:46 +0000]
(travis) Make sure we really test everything when using cpanm (devrels)

This is to work around https://github.com/miyagawa/cpanminus/issues/462

Note: even if cpanm itself gets fixed, it will take forever for changes to
trickle down to various travis builds (currently 4 different configurations)

8 years ago(travis) Work around RT#110882
Peter Rabbitson [Thu, 7 Jan 2016 15:35:06 +0000]
(travis) Work around RT#110882

8 years ago(travis) Adjust test infrastructure for recent extensive TravisCI changes
Peter Rabbitson [Wed, 16 Dec 2015 21:32:47 +0000]
(travis) Adjust test infrastructure for recent extensive TravisCI changes

I mean who does that?!?!
https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments

This is an initial pass to get things moving again, one more overhaul needs to
take place based on 7f6d73eb. For now just make sure we run under both sudo
and non-sudo, and be explicit which platform are we running on.

Read diff under -w

8 years ago(travis) Fix version check on non-module-named dists (lapse from a223f7584)
Peter Rabbitson [Tue, 1 Dec 2015 22:43:39 +0000]
(travis) Fix version check on non-module-named dists (lapse from a223f7584)

8 years ago(travis) Work around RT#107392
Peter Rabbitson [Tue, 1 Dec 2015 22:04:44 +0000]
(travis) Work around RT#107392

9 years agoFix POD typo
Vadim Pushtaev [Fri, 13 Nov 2015 09:19:11 +0000]
Fix POD typo

9 years agoFix typo
Zoffix Znet [Mon, 9 Nov 2015 02:40:18 +0000]
Fix typo

9 years agoMove the rows/offset sanity checks from DBI to _resolved_attrs
Peter Rabbitson [Wed, 4 Nov 2015 04:02:04 +0000]
Move the rows/offset sanity checks from DBI to _resolved_attrs

Doing this much earlier should tie all loose ends wrt rows => 0 (sigh...)

9 years agoReplace \D with [^0-9] in sensitive spots
Peter Rabbitson [Wed, 4 Nov 2015 03:42:17 +0000]
Replace \D with [^0-9] in sensitive spots

9 years ago(travis) Do not run the git authorship check within a github PR
Peter Rabbitson [Tue, 3 Nov 2015 17:35:03 +0000]
(travis) Do not run the git authorship check within a github PR

Before running the CI test github "helpfully" generates a merge-commit,
which uses the email as listed in the github profile, NOT using the
email/name as seen on the merged commit itself. This can cause the entire
thing to fail for no apparent reason

Since any PR is scrutinized and tested to bits after the fact - skipping
the test is safe

Read under -w

9 years agoReally make sure xt/ tests run on non-plain installs (fix c26b30de)
Peter Rabbitson [Tue, 3 Nov 2015 14:32:08 +0000]
Really make sure xt/ tests run on non-plain installs (fix c26b30de)

FACEDESK: Module::Install::Makefile::tests_recursive() takes a single arg and
throws the rest away... I mean what the flying...

Also remove some of the "is this plain user" checks from within xt/

Read under -w

9 years agoAdjust view-dependency tests to work on newer libsqlite
Peter Rabbitson [Tue, 3 Nov 2015 13:35:35 +0000]
Adjust view-dependency tests to work on newer libsqlite

The test and mechanism behind it is largely useless in these cases, but old
sqlite installations will lurk around for ever, so keep the check while moving
it to xt/

9 years agoFix spurious ROLLBACK statements when a TxnScopeGuard fails a deferred commit
Peter Rabbitson [Tue, 3 Nov 2015 12:23:52 +0000]
Fix spurious ROLLBACK statements when a TxnScopeGuard fails a deferred commit

This is a *temporary workaround*, and I am really unhappy about it... it just
feels wrong. See the comment in lib/DBIx/Class/Storage/TxnScopeGuard.pm

9 years agoFix oversight in 096ab902 breaking { -value => $array } insertion
Peter Rabbitson [Wed, 20 May 2015 13:25:06 +0000]
Fix oversight in 096ab902 breaking { -value => $array } insertion

This was never tested for, but also never shipped

9 years agoStop requiring explicit bindtype specification for non-scalar references
Peter Rabbitson [Tue, 3 Nov 2015 10:47:34 +0000]
Stop requiring explicit bindtype specification for non-scalar references

As ilmari correctly pointed out this is not necessary, I am not sure why I
didn't catch this on review...

<ilmari> ribasushi: why does DBIC think every DBD needs speical attrs to bind non-scalar values?
<ilmari> DBD::Pg handles binding arrayrefs autmoatically
<ribasushi> ilmari: at the time this was written DBD::Pg *did not* auto-infer bindtype for arrays, that's a relatively new thing
<ribasushi> ilmari: hmmm... this does not seem to be the case, will dig deeper...

9 years agoFix failures and protect the suite from spurious VERSION-related warnings
Peter Rabbitson [Sun, 1 Nov 2015 12:08:12 +0000]
Fix failures and protect the suite from spurious VERSION-related warnings

A new SQL::Translator devrel missed a s/_// line and made several tests fail

Fix t/752sqlite.t and t/icdt/offline_pg.t, and also add an obnoxious CI mode
to ensure we will not fall prey to this again

9 years agoFix bizarre segfault on older perls, not seen on CI ( augments d63c9e64 )
Peter Rabbitson [Mon, 2 Nov 2015 22:50:17 +0000]
Fix bizarre segfault on older perls, not seen on CI ( augments d63c9e64 )

9 years agoFix test failure on 5.8.x with DBIC_TRACE=1 (introduced by 68b8ba54)
Peter Rabbitson [Tue, 3 Nov 2015 08:53:56 +0000]
Fix test failure on 5.8.x with DBIC_TRACE=1 (introduced by 68b8ba54)

The CI run did not smokje this particular combination
TLDR: like ... qr/.../m does not work on 5.8.x due to P5#3038

9 years agoSkip spurious compiler-related error with old DBD::SQLite and new gcc
Peter Rabbitson [Sun, 1 Nov 2015 11:29:11 +0000]
Skip spurious compiler-related error with old DBD::SQLite and new gcc

9 years agoFINALLY find and fix the elusive parallel test deadlock
Peter Rabbitson [Mon, 2 Nov 2015 21:05:04 +0000]
FINALLY find and fix the elusive parallel test deadlock

For more details see https://rt.cpan.org/Ticket/Display.html?id=108390

9 years agoFix fail with DBICTEST_DEBUG_CONCURRENCY_LOCKS set (thinko in 69016f65)
Peter Rabbitson [Mon, 2 Nov 2015 20:56:45 +0000]
Fix fail with DBICTEST_DEBUG_CONCURRENCY_LOCKS set (thinko in 69016f65)

9 years agoStop using bare $] throughout - protects the codebase from floating point hell
Peter Rabbitson [Fri, 9 Oct 2015 10:04:45 +0000]
Stop using bare $] throughout - protects the codebase from floating point hell

Issues similar, but likely not limited to, P5#72210 ( see prev commit)

9 years ago(travis) One more addition to the smoke-devrel family: 5.8.8 with long-doubles
Peter Rabbitson [Fri, 9 Oct 2015 09:48:45 +0000]
(travis) One more addition to the smoke-devrel family: 5.8.8 with long-doubles

This one to catch fallout of https://rt.perl.org/Ticket/Display.html?id=72210

9 years ago(travis) Now that File:Path is fixed, test the distbuild deps under devrel
Peter Rabbitson [Fri, 9 Oct 2015 12:21:46 +0000]
(travis) Now that File:Path is fixed, test the distbuild deps under devrel

This is not strictly necessary for anything I do, just add even more smoke
coverage to some pieces of the ecosystem (at the expense of extra 5 minutes,
but given it's in the "fail-ok" blocks - meh)

9 years agoAdd comprehensive concurrent-test-locking logging to aid future debugging
Peter Rabbitson [Thu, 8 Oct 2015 07:40:25 +0000]
Add comprehensive concurrent-test-locking logging to aid future debugging

9 years ago(travis) Minimize MySQL config further - even less chance of OOMs
Peter Rabbitson [Tue, 6 Oct 2015 13:54:55 +0000]
(travis) Minimize MySQL config further - even less chance of OOMs

Although in reality it is the preceeding commits that make the real difference

9 years ago(travis) Stop using the ramdisk for MySQL/Pg data
Peter Rabbitson [Thu, 8 Oct 2015 23:01:34 +0000]
(travis) Stop using the ramdisk for MySQL/Pg data

Given the very low amount of RAM, the travis setup DOES NOT HELP. Instead of
fishing out the changed configs, just symlink the dirs back where they belong

9 years ago(travis) When running under CI make t/storage/quote_names.t respect locking
Peter Rabbitson [Thu, 8 Oct 2015 07:30:06 +0000]
(travis) When running under CI make t/storage/quote_names.t respect locking

Without this too many connections are fired at the MySQL and tasty OOMs occur

9 years agoReduce amount of initial connects during non-SQLite test-RDBMS lock-grabs
Peter Rabbitson [Wed, 7 Oct 2015 11:39:46 +0000]
Reduce amount of initial connects during non-SQLite test-RDBMS lock-grabs

I am not sure why I wrote things this way back in 8d6b1478d, perhaps I didn't
properly think through that sqlt_type will be correctly determined no matter
what. As a result any MySQL test would connect at least once, and under the
right circumstances consume enough per-connection-thread memory to get a
low-RAM system (like TravisCI) to start OOM-killing things indiscriminately.

9 years agoSwitch several caller() invocations to explicit CORE::caller()
Peter Rabbitson [Thu, 8 Oct 2015 19:18:49 +0000]
Switch several caller() invocations to explicit CORE::caller()

This not only fixes an obscure test failure due to an older Sub::Uplevel
(it would be too obnoxious to bump the dep just for the test case), but also
makes the entire codebase more robust in light of possible rogue/incomplete
caller() overrides

This was not a simple s/// job - each change was manually evaluated before
carrying out

Also while at it - fix the utterly annoying *UNKNOWN* eception site-marker:
it does not add any information and only confuses things. The heuristics in
Carp::Skip is supposed to be much much clearer, need to finish its tests...

9 years agoClarify comments/documentation regarding DBIC/SQLA/DQ relationship
Peter Rabbitson [Thu, 15 Oct 2015 15:32:34 +0000]
Clarify comments/documentation regarding DBIC/SQLA/DQ relationship

This discussion comes up several times per year, just put it to bed for good

9 years agoEven more aggressive streamline of SQL scanning in _resolve_aliastypes
Peter Rabbitson [Mon, 28 Sep 2015 15:58:07 +0000]
Even more aggressive streamline of SQL scanning in _resolve_aliastypes

No longer try to match individual pieces at all, simply treat every single
fragment as a single string. While rather barbaric, we are doing it anyway
in order to catch fragments, thus it makes no sense to keep the "proper"
codepath at all.

This concludes the shenanigans in this function

9 years agoSave one _resolve_aliastypes in the case of a subqueried prefetch
Peter Rabbitson [Mon, 28 Sep 2015 10:55:01 +0000]
Save one _resolve_aliastypes in the case of a subqueried prefetch

Instead reuse a previously calculated one, since the code flow allows it

There *seem* to be no functional changes, but one never knows...

9 years agoInstead of assembling many small regexes scan all the SQL in one pass
Peter Rabbitson [Tue, 22 Sep 2015 02:11:27 +0000]
Instead of assembling many small regexes scan all the SQL in one pass

Speeds up the analyzer massively, now it's mostly SQLA itself holding things
back... sigh

9 years agoA little more golfing - this time ::DBIHacks::_resolve_column_info
Peter Rabbitson [Mon, 28 Sep 2015 13:34:12 +0000]
A little more golfing - this time ::DBIHacks::_resolve_column_info

More surprising stuff showing up on the profiles...

9 years agoScanning strings piecemeal makes no sense - join them up
Peter Rabbitson [Tue, 22 Sep 2015 01:48:42 +0000]
Scanning strings piecemeal makes no sense - join them up

Read under -w

9 years agoAnother rewrap in ::DBIHacks::_resolve_aliastypes_from_select_args
Peter Rabbitson [Tue, 22 Sep 2015 00:31:17 +0000]
Another rewrap in ::DBIHacks::_resolve_aliastypes_from_select_args

No functional changes at all, just more efficient loops
Read under -w

9 years agoSimplify DBIHacks order_by scan generator
Peter Rabbitson [Mon, 21 Sep 2015 23:35:29 +0000]
Simplify DBIHacks order_by scan generator

There is no need to call out all the way to _extract_order_criteria -
we can do the necessary mangling ourselves

9 years agoNormalize _parse_rs_attrs - no functional changes
Peter Rabbitson [Mon, 21 Sep 2015 20:30:56 +0000]
Normalize _parse_rs_attrs - no functional changes

9 years agoThe weird scan-for-binds-before-scan was obviated by a9e985b7
Peter Rabbitson [Mon, 21 Sep 2015 20:22:15 +0000]
The weird scan-for-binds-before-scan was obviated by a9e985b7

Tighten up code while at it, no functional changes intended

9 years agoSimplify debugfh rebuilding after clearing
Dagfinn Ilmari Mannsåker [Sat, 29 Aug 2015 19:09:38 +0000]
Simplify debugfh rebuilding after clearing

9 years agoFix invalid variable names in ResultSource::View examples
Dagfinn Ilmari Mannsåker [Fri, 18 Sep 2015 10:31:45 +0000]
Fix invalid variable names in ResultSource::View examples

9 years ago(travis) Add a dev-rel non-clean test (with distbuilding) on really old perl
Peter Rabbitson [Thu, 10 Sep 2015 17:58:59 +0000]
(travis) Add a dev-rel non-clean test (with distbuilding) on really old perl

The *really* old version is needed to make sure we end up upgrading as much
stuff as possible, thus hopefully trapping more dev-rel problems before they
end up on CPAN

( absence of this entry caused EUMM@7.06 to slip by unnoticed )

9 years ago(travis) Revert pin of Sub::Identify (57947c1e)
Peter Rabbitson [Thu, 10 Sep 2015 17:54:13 +0000]
(travis) Revert pin of Sub::Identify (57947c1e)

9 years ago(travis) Enhance checks (and diag) whether a core module did in fact upgrade
Peter Rabbitson [Wed, 9 Sep 2015 19:33:34 +0000]
(travis) Enhance checks (and diag) whether a core module did in fact upgrade

9 years agoTrap exact condition of reported, yet undiagnosed IDENTITY_SELECT
Peter Rabbitson [Thu, 10 Sep 2015 15:56:55 +0000]
Trap exact condition of reported, yet undiagnosed IDENTITY_SELECT

Something is popagating the _autoinc_supplied_for_op flag where it shouldn't

9 years agoFix ::Sybase::ASE incorrect attempt to retrieve an autoinc on blob inserts
Tina Mueller [Wed, 29 Jul 2015 14:36:28 +0000]
Fix ::Sybase::ASE incorrect attempt to retrieve an autoinc on blob inserts

This is a temporary fixup, will be better taken care of with the lobwriter
  --ribasushi

9 years agoGreatly simplify the ::Sybase::ASE::insert() override
Peter Rabbitson [Thu, 10 Sep 2015 15:02:09 +0000]
Greatly simplify the ::Sybase::ASE::insert() override

The _insert sub-method actually isn't used by anything else, and as such is
not needed. The behavior has been verified to be identical by comparing
DBIC_TRACE=1=logfile runs before and after the changes.

Still - there may be dragons, if bisecting pay close attention to this fella

9 years agoFirst pass on Sybase::ASE - reformats and minor cleanups for future commits
Peter Rabbitson [Thu, 10 Sep 2015 10:58:27 +0000]
First pass on Sybase::ASE - reformats and minor cleanups for future commits

No functional changes were intended

9 years agoTrap expected t/746sybase.t warnings, use LC_ALL instead of LANG
Peter Rabbitson [Fri, 14 Aug 2015 05:22:33 +0000]
Trap expected t/746sybase.t warnings, use LC_ALL instead of LANG

9 years agoSwitch the ::Sybase family to _determine_connector_driver (same as 75d3bdb2)
Peter Rabbitson [Fri, 14 Aug 2015 04:51:13 +0000]
Switch the ::Sybase family to _determine_connector_driver (same as 75d3bdb2)

Simplify test a bit

9 years agoFix failing tests with DBICTEST_SYBASE_DSN set
Peter Rabbitson [Fri, 14 Aug 2015 03:31:52 +0000]
Fix failing tests with DBICTEST_SYBASE_DSN set

t/746sybase.t - broken by 2a6dda4b
t/storage/quote_names.t - implicitly broken by an oversight in f9b5239a

Sigh

9 years agoSilence warning introduced in sloppy workaround e9505615
Peter Rabbitson [Mon, 7 Sep 2015 15:40:49 +0000]
Silence warning introduced in sloppy workaround e9505615

9 years agoNot sure what I was thinking, but 18637ebb never worked :/
Peter Rabbitson [Fri, 14 Aug 2015 04:41:57 +0000]
Not sure what I was thinking, but 18637ebb never worked :/

While at it work around the newly-discovered RT#106935

9 years ago(travis) Pin Sub::Identify until RT#106929 is fixed
Peter Rabbitson [Mon, 7 Sep 2015 13:43:49 +0000]
(travis) Pin Sub::Identify until RT#106929 is fixed

9 years agoWork around EUMM 7.06 creating an empty blib/ dir, breaking prove -lr
Peter Rabbitson [Mon, 7 Sep 2015 10:53:00 +0000]
Work around EUMM 7.06 creating an empty blib/ dir, breaking prove -lr

9 years agoEnsure the stack properly deals and warns on Null-Pattern exception objects
Konstantin A. Pustovalov [Mon, 21 Jan 2013 20:40:58 +0000]
Ensure the stack properly deals and warns on Null-Pattern exception objects

Reuse the existing is_exception() utility to catch any and all instances of
objects stringifying to "" before passing them onwards

9 years agoEnhance exception action test (no functional changes)
Konstantin A. Pustovalov [Mon, 21 Jan 2013 20:40:58 +0000]
Enhance exception action test (no functional changes)

9 years agoAdd is_exception check to the result of exception_action (inspired by GHPR#15)
Peter Rabbitson [Mon, 10 Aug 2015 15:29:05 +0000]
Add is_exception check to the result of exception_action (inspired by GHPR#15)

This builds upon work in 841efcb3 and 9bea2000, tying loose ends before next
commits

Read under -w

9 years agoMerge branch 'current/for_cpan_index' into current/blead
Peter Rabbitson [Thu, 13 Aug 2015 11:55:47 +0000]
Merge branch 'current/for_cpan_index' into current/blead