Skip to content

Commit

Permalink
auto
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Jan 25, 2024
1 parent bb2b3c8 commit cc741cb
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"on" : {
"schedule" : [
{
"cron" : "38 21 * * *"
"cron" : "3 22 * * *"
}
]
}
Expand Down
21 changes: 18 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"matrix" : {
"include" : [
{
"env_TEST_MYSQL_VERSION" : "",
"env_TEST_MYSQL_VERSION" : "mariadb",
"experimental" : false,
"perl_version" : "latest"
},
Expand All @@ -129,7 +129,12 @@
"perl_version" : "latest"
},
{
"env_TEST_MYSQL_VERSION" : "",
"env_TEST_MYSQL_VERSION" : "mysql8",
"experimental" : false,
"perl_version" : "latest"
},
{
"env_TEST_MYSQL_VERSION" : "mariadb",
"experimental" : false,
"perl_version" : "5.14.2"
},
Expand All @@ -139,14 +144,24 @@
"perl_version" : "5.14.2"
},
{
"env_TEST_MYSQL_VERSION" : "",
"env_TEST_MYSQL_VERSION" : "mysql8",
"experimental" : false,
"perl_version" : "5.14.2"
},
{
"env_TEST_MYSQL_VERSION" : "mariadb",
"experimental" : false,
"perl_version" : "5.12.4"
},
{
"env_TEST_MYSQL_VERSION" : "mysql5.6",
"experimental" : false,
"perl_version" : "5.12.4"
},
{
"env_TEST_MYSQL_VERSION" : "mysql8",
"experimental" : false,
"perl_version" : "5.12.4"
}
]
}
Expand Down
7 changes: 4 additions & 3 deletions config/perl/pmb-install.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
AnyEvent~7.17
AnyEvent::FileLock~0.06
AnyEvent::Socket
Canary::Stability~2013
Carp~1.50
Class::Accessor::Lite~0.08
Crypt::OpenSSL::RSA~0.33
Crypt::OpenSSL::Random~0.15
Cwd~3.75
DBD::mysql~5.003
DBI~1.643
Expand All @@ -28,10 +31,8 @@ Path::Tiny~0.144
Scalar::Util~1.63
Socket~2.037
Term::ANSIColor~5.01
Test::Builder~1.302198
Test::Class~0.52
Test::More~1.302198
Test::mysqld~1.0013
Time::HiRes~1.9764
Try::Tiny~0.30
Crypt::OpenSSL::RSA
Try::Tiny~0.31
12 changes: 9 additions & 3 deletions lib/AnyEvent/MySQL/Client/Promise.pm
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,12 @@ sub _fulfill_promise ($$) {
my $promise = $_[0];
my $reactions = delete $promise->{promise_fulfill_reactions};
$promise->{promise_result} = $_[1];
delete $promise->{promise_reject_reactions};
my $x = delete $promise->{promise_reject_reactions};
$promise->{promise_state} = 'fulfilled';

## Run GC between promise callbacks
_enqueue { undef $x };

## TriggerPromiseReactions
_enqueue_promise_reaction_job $_, $_[1] for @$reactions;

Expand All @@ -91,10 +94,13 @@ sub _reject_promise ($$) {
my $promise = $_[0];
my $reactions = delete $promise->{promise_reject_reactions};
$promise->{promise_result} = $_[1];
delete $promise->{promise_fulfill_reactions};
my $x = delete $promise->{promise_fulfill_reactions};
$promise->{promise_state} = 'rejected';
_rejection_tracker_reject $promise unless $promise->{promise_is_handled};

## Run GC between promise callbacks
_enqueue { undef $x };

## TriggerPromiseReactions
_enqueue_promise_reaction_job $_, $_[1] for @$reactions;

Expand Down Expand Up @@ -417,7 +423,7 @@ sub DESTROY ($) {

=head1 LICENSE
Copyright 2014-2019 Wakaba <wakaba@suikawiki.org>.
Copyright 2014-2021 Wakaba <wakaba@suikawiki.org>.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
Expand Down

0 comments on commit cc741cb

Please sign in to comment.