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

Add new throttler pkg forked from nozzle/throttler #108

Merged
merged 26 commits into from
Jul 23, 2024

Commits on Jul 23, 2024

  1. Initial commit

    Co-authored-by: Nozzle <admin@nozzle.io>
    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    puerco and nozzle committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    557c7f2 View commit details
    Browse the repository at this point in the history
  2. Initial commit

    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    derekperkins authored and puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    ae4180e View commit details
    Browse the repository at this point in the history
  3. Changed throttler.NewThrottler to throttler.New

    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    derekperkins authored and puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    79d9eec View commit details
    Browse the repository at this point in the history
  4. Added Coveralls and Codeship integration & badges

    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    derekperkins authored and puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    b008968 View commit details
    Browse the repository at this point in the history
  5. Replaced doneChan chan bool with chan struct{}

    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    derekperkins authored and puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    da4f04a View commit details
    Browse the repository at this point in the history
  6. .Done() now requires an error / nil to be passed into it Added an err…

    …or channel + errorCount
    
    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    derekperkins authored and puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    7d4550d View commit details
    Browse the repository at this point in the history
  7. Clarified documentation

    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    derekperkins authored and puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    a5f85e2 View commit details
    Browse the repository at this point in the history
  8. Added Errs method with multiError handling

    Co-authored-by: Joe Bergevin <josephbergevin@gmail.com>
    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    puerco and josephbergevin committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    f66ecdb View commit details
    Browse the repository at this point in the history
  9. Fixed example_test.go

    Co-authored-by: Joe Bergevin <josephbergevin@gmail.com>
    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    puerco and josephbergevin committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    e094420 View commit details
    Browse the repository at this point in the history
  10. Testing tweaks

    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    derekperkins authored and puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    375dc68 View commit details
    Browse the repository at this point in the history
  11. Added Batching Feature

    Co-authored-by: Joe Bergevin <josephbergevin@gmail.com>
    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    puerco and josephbergevin committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    f0cba5e View commit details
    Browse the repository at this point in the history
  12. add circleci with test coverage

    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    derekperkins authored and puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    41f0bd0 View commit details
    Browse the repository at this point in the history
  13. add codecov.io upload

    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    derekperkins authored and puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    dafebc5 View commit details
    Browse the repository at this point in the history
  14. Fix data race in Done()

    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    derekperkins authored and puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    7db6856 View commit details
    Browse the repository at this point in the history
  15. add comments to fix golint errors

    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    derekperkins authored and puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    5168f2d View commit details
    Browse the repository at this point in the history
  16. fix test to call t.Fatal in main test goroutine

    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    derekperkins authored and puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    a59174a View commit details
    Browse the repository at this point in the history
  17. use atomic.Int32 to eliminate race conditions

    also changed order of channel sends/receives to send after updating atomic counters
    
    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    derekperkins authored and puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    5c66484 View commit details
    Browse the repository at this point in the history
  18. add support for SetMaxWorkers

    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    derekperkins authored and puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    7043ed5 View commit details
    Browse the repository at this point in the history
  19. update readme

    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    derekperkins authored and puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    466a4a2 View commit details
    Browse the repository at this point in the history
  20. Move throttler to package subdir

    This commit imports the code from the nozzle/throttle module and imports it
    into the release-utils repo as the relegn team will take care of maintaining
    it.
    
    The original module commit history is preserved.
    
    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    6e0fe9c View commit details
    Browse the repository at this point in the history
  21. Remove redundant files from nozzle/throtle import

    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    f173561 View commit details
    Browse the repository at this point in the history
  22. Add notices, credit notices

    This commit fixes the copyright notices for the the throttler files
    and adds a notice about the package fork.
    
    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    ff6ddb6 View commit details
    Browse the repository at this point in the history
  23. Fix linter for new throttle module

    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    2d65bad View commit details
    Browse the repository at this point in the history
  24. Rename multiError type to multiErrors

    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    330b853 View commit details
    Browse the repository at this point in the history
  25. Silence linter for rand/v2

    This commit mutes the linter warning for random/v2, for now we still
    support go 1.21. Drop this commit and move to random/v2 when we bump
    to go 1.22+
    
    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    fd37b22 View commit details
    Browse the repository at this point in the history
  26. Move files to ./throttle

    I messed up during the import and applied the patches in
    throttle/throttle. This commit moves the new package source to
    the proper location. Sorry :(
    
    Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
    puerco committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    50ded5a View commit details
    Browse the repository at this point in the history