Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(*): realign master branch to 3.0.0 release #144

Merged
merged 48 commits into from Nov 8, 2023

Conversation

nowNick
Copy link
Contributor

@nowNick nowNick commented Nov 2, 2023

Description

This PR fixes master branch so that it points to the latest changes and to the release of 3.0.0 introduced here: #142

It reverts the master branch back to 1.3.0 release (which is: dc2a6b6) via commit: d4eac10 and then reapplies the changes introduced in 1.4.x, 1.5.x, 1.6.x and 3.0.0.

Issue reference:

KAG-2704

locao and others added 30 commits January 7, 2021 12:46
* fix(healthcheck) use single timer for all active checks

* tests(*) removed tests that are not needed
Prevents a thundering herd issue whereby additional healthchecks are scheduled in the time in which it takes the healthcheck to complete.
* fix(healthcheck) record `last_run` when healthcheck is scheduled

Prevents a thundering herd issue whereby additional healthchecks are scheduled in the time in which it takes the healthcheck to complete.

* tests(active-probes) interval is respected

Co-authored-by: Brian Fox <brianhfox@gmail.com>
Co-authored-by: Brian Fox <brianhfox@gmail.com>

Co-authored-by: Brian Fox <brianhfox@gmail.com>
* chore(*) add GitHub Actions workflows

* fix(healthcheck) lint error
* simplify start of the checking timer, ensuring only one worker actively sends healthchecks.

one timer per worker, but before doing anything, tries to acquire an
expiration lock.  if fails, try again later.  if the "winning" worker
ever fails to renew it, some other worker would get it.
Also:
  - updated scm-1 rockspec
  - bumped openresty version in CI tests
Added new function delayed_clear. This function marks all targets to be
removed, but do not actually remove them. If before the delay parameter
any of them is re-added, it is unmarked for removal.

This function makes it possible to keep target state during config
changes, where the targets might be removed and then re-added.
* chore(readme) 1.5.0 release

* docs(*) release 1.5.0

Also added docs missing to delayed_clear() function.
- added latest openresty to the CI matrix
- added tests for when lua-resty-worker-events or lua-resty-events are
  used
* feat(healthcheck) support setting the events module

* fix(healthcheck) defaults to lua-resty-worker-events

* tests(workflows) fixed manual deps install

* fix(healthcheck) check empty opts

* chore(workflows) use last luarocks

* test(workflows) use pre-built deps, test with or 1.13-1.21

* chore(workflows) install lua-resty-events in ci

* tests(workflows) debug

* fixed tests and resty-events usage

* init resty-events in init_worker

* fix(tests) init events module (#107)

* add init_worker in 03-get_target_status.t

* fix 03-get_target_status.t

* fix 03-get_target_status_with_sleeps.t

* fix 04-report_success.t

* fix 05/06

* fix 07/08

* fix 09

* change 10

* fix 11

* fix 12

* change 13

* fix 15

* partial fix 16

* change 17

* fix 18

* change 13

* fix 16

* style 05

* fix 01/02

* use string.buffer in OpenResty 1.21.4.1 (#109)

* use string.buffer in OpenResty 1.21.4.1

* remove cjson require

* fix(healthcheck) use the events module set in defaults

* tests(with_resty-events) disabled tests that need more work

* fix(healthcheck) avoid breaking when opts are nil

* tests(with_resty-events) removed unnecessary test

* tests(with_resty-events) increased sleeps

Co-authored-by: Chrono <chrono_cpp@me.com>
* docs(readme) release 1.6.0

* fix(rockspec) typo

* chore(rockspec) release 1.6.0

* docs(*) release 1.6.0
* chore(workflows) bump deps versions

* chore(helathcheck) support any lua-resty-events 0.1.x
* fix(healthchecker) port 2.x lock fixes to 1.5.x

* chore(healthcheck) remove unused vars

* chore(healthcheck) fix indent level

* fix(healthcheck) correct duplicate handling in add_target

* fix(healthchecker) handle fetch_target_list failure in checker callback

* chore(healthcheck) apply suggestions from #112

Co-authored-by: Vinicius Mignot <vinicius.mignot@gmail.com>
)

* chore(healthcheck) increase verbosity for locked function failures

* tests(healthcheck) add tests for run_locked()
the health-check timer also checks if targets must be removed. to
safely remove targets, the targets list is locked. if this check runs
on every health-check cycle and there are a large number of targets, a
bazillion locks will be created. this change avoids that by lowering
the frequency the cleanup list is checked.

the side-effect is that targets marked for cleanup may exist for more
time (2.5s) than expected, and some unexpected active checks could
happen.
ADD-SP and others added 6 commits September 6, 2023 09:24
${{ env.* }} is not evaluated in `with` causing gha tries to cache `/`.
* feat(ci/KAG-1800): add lint and sast workflows using shared actions

* chore(ci): pin shared code quality actions

* chore(*): backport - localize some functions

A commit on master 80ee2e1
introduced localizing some functions. This commit backports that one.

Backports: #92

* fix(healthcheck): fixed incorrect default http_statuses when new() was called multiple times (#83)

* chore(lint): bump kong/public-shared-actions

* docs(README): added 1.5.2 and 1.5.3 releases

* chore(*) rename readme, add release instructions

* chore(healthcheck): fix get_defaults function

* fix(test): fix worker-events test

* release 3.0.0

* chore(github): cancel in progress workflows when new pushed

---------

Co-authored-by: saisatish karra <saisatish.karra@konghq.com>
Co-authored-by: Shuoqing Ding <dsq704136@gmail.com>
Co-authored-by: Vinicius Mignot <vinicius.mignot@gmail.com>
Co-authored-by: Thijs Schreijer <thijs@thijsschreijer.nl>
This reverts the master branch backs to the commit
of dc2a6b6 so that
we can skip over 2.0.0 release.
The 1.3.0 release is the first common commit between
master branch and 1.6.x (also 3.0.x) branches.
@CLAassistant
Copy link

CLAassistant commented Nov 2, 2023

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
8 out of 10 committers have signed the CLA.

✅ mayocream
✅ kayano
✅ onematchfox
✅ ADD-SP
✅ oowl
✅ chronolaw
✅ flrgh
✅ nowNick
❌ Murillo Paula
❌ HansK-p


Murillo Paula seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
8 out of 10 committers have signed the CLA.

✅ onematchfox
✅ kayano
✅ mayocream
✅ chronolaw
✅ oowl
✅ ADD-SP
✅ nowNick
✅ flrgh
❌ Murillo Paula
❌ HansK-p


Murillo Paula seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

docs/index.html Fixed Show fixed Hide fixed
docs/topics/readme.md.html Fixed Show fixed Hide fixed
t/with_worker-events/util/key.pem Dismissed Show dismissed Hide dismissed
@nowNick nowNick marked this pull request as ready for review November 6, 2023 15:31
@nowNick nowNick requested a review from locao November 6, 2023 16:04
@nowNick nowNick self-assigned this Nov 6, 2023
@nowNick nowNick requested a review from Tieske November 6, 2023 16:04
Tieske
Tieske previously approved these changes Nov 6, 2023
Copy link
Contributor

@locao locao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few details.

lua-resty-healthcheck-2.0.0-1.src.rock Outdated Show resolved Hide resolved
rockspecs/lua-resty-healthcheck-0.4.1-2.rockspec Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
rockspecs/lua-resty-healthcheck-2.0.0-1.rockspec Outdated Show resolved Hide resolved
t/21-run_locked.t Outdated Show resolved Hide resolved
Co-authored-by: Vinicius Mignot <vinicius.mignot@gmail.com>
@nowNick nowNick changed the title chore/revert master branch chore(*): realign master branch to 3.0.0 release Nov 8, 2023
Release 2.0.x introduced some rockspecs with fixes.
Reverting back to 1.3.0 and reapplying changes from 3.0.0
reversed those fixes. This commit reintroduces them.

KAG-2704
@@ -1,5 +1,10 @@
name: SAST

concurrency:
# for PR's cancel the running task, if another commit is pushed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! 🙌

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 😊 ! But I need to give credit where credit is due: @Tieske 👏
#142 (comment)

Copy link
Contributor

@locao locao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! 🎉

@nowNick nowNick merged commit 7478c5f into master Nov 8, 2023
6 of 7 checks passed
@nowNick nowNick deleted the chore/revert-master-branch branch November 8, 2023 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet