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

Ai video rebase master 2 #3121

Merged
merged 41 commits into from
Aug 7, 2024
Merged

Ai video rebase master 2 #3121

merged 41 commits into from
Aug 7, 2024

Commits on Mar 27, 2024

  1. eth,eth/watcher: Create Chainlink price feed watcher (#2972)

    * eth/watchers: Create PriceFeed watcher
    
    Makefile: Use mockgen binary from tool dependencies
    
    eth/contracts: Add chainlink interfaces source
    
    Makefile: Generate Chainlink contracts ABI
    
    tools: Add abigen tool to repo
    
    eth/contracts: Generate chainlink bindings
    
    Makefile: Fix abigen bindings generation
    
    Revert everything abigen
    
    Turns out there's already bindings exported from the Chainlink lib.
    
    go.mod: Add chainlink library
    
    eth/watchers: Add pricefeed watcher
    
    eth/watchers: Clean-up event watching code
    
    eth/watchers: Improve price tracking
    
    Revert "go.mod: Add chainlink library"
    
    This reverts commit ac415bd.
    
    Revert "Revert everything abigen"
    
    This reverts commit b7c40b1.
    
    eth/contracts: Gen bindings for proxy iface
    
    eth/watchers: Use local bindings for contracts
    
    eth/watchers: Simplify event subs logic
    
    eth/watchers: Simplify&optimize truncated ticker
    
    eth/watchers: Update decimals on fetch
    
    eth/watchers: Improve handling of decimals
    
    eth/watchers: Fix price rat creation
    
    eth/watchers: Make sure we use UTC on truncated timer
    
    eth/contracts/chainlink: Generate only V3 contract bindings
    
    eth/watchers: Watch PriceFeed only with polling
    
    eth/watchers: Add a retry logic on price update
    
    eth/watchers: Use clog instead of fmt.Printf
    
    * eth: Create separate pricefeed client unit
    
    This will make the code more testable.
    
    * eth: Add tests for pricefeed client
    
    * eth/watchers: Add tests to the truncated ticker
    
    Gosh that was much harder than I thought
    
    * eth/watchers: Add tests for pricefeedwatcher
    
    * eth: Add comments to the new components
    
    * go fmt
    
    * eth: Address minor review comments
    
    * eth,eth/watchers: Improve pricefeed watcher interface
    
    * eth/watchers: Remove truncated ticker tests
    victorges authored Mar 27, 2024
    Configuration menu
    Copy the full SHA
    ef5d789 View commit details
    Browse the repository at this point in the history
  2. cmd/livepeer: Use price feed watcher for dynamic pricePerPixel (#2981)

    * eth/watchers: Create PriceFeed watcher
    
    Makefile: Use mockgen binary from tool dependencies
    
    eth/contracts: Add chainlink interfaces source
    
    Makefile: Generate Chainlink contracts ABI
    
    tools: Add abigen tool to repo
    
    eth/contracts: Generate chainlink bindings
    
    Makefile: Fix abigen bindings generation
    
    Revert everything abigen
    
    Turns out there's already bindings exported from the Chainlink lib.
    
    go.mod: Add chainlink library
    
    eth/watchers: Add pricefeed watcher
    
    eth/watchers: Clean-up event watching code
    
    eth/watchers: Improve price tracking
    
    Revert "go.mod: Add chainlink library"
    
    This reverts commit ac415bd.
    
    Revert "Revert everything abigen"
    
    This reverts commit b7c40b1.
    
    eth/contracts: Gen bindings for proxy iface
    
    eth/watchers: Use local bindings for contracts
    
    eth/watchers: Simplify event subs logic
    
    eth/watchers: Simplify&optimize truncated ticker
    
    eth/watchers: Update decimals on fetch
    
    eth/watchers: Improve handling of decimals
    
    eth/watchers: Fix price rat creation
    
    eth/watchers: Make sure we use UTC on truncated timer
    
    eth/contracts/chainlink: Generate only V3 contract bindings
    
    eth/watchers: Watch PriceFeed only with polling
    
    eth/watchers: Add a retry logic on price update
    
    eth/watchers: Use clog instead of fmt.Printf
    
    * eth: Create separate pricefeed client unit
    
    This will make the code more testable.
    
    * eth: Add tests for pricefeed client
    
    * eth/watchers: Add tests to the truncated ticker
    
    Gosh that was much harder than I thought
    
    * eth/watchers: Add tests for pricefeedwatcher
    
    * eth: Add comments to the new components
    
    * go fmt
    
    * cmd: make pricePerUnit flags strings
    
    * cmd: Allow price per unit to be speficied with a currency
    
    Currently ignoring the currency value.
    
    * cmd: Add logic to start price update loop
    
    * cmd: Add flag for specifying price feed address
    
    * cmd: Add a lil test to priceDataToWei
    
    * TODO: Reminder for something I noticed is missing
    
    * cmd/starter: Support currencies for custom broadcaster prices
    
    * eth: Address minor review comments
    
    * eth,eth/watchers: Improve pricefeed watcher interface
    
    * eth/watchers: Fix pricefeed watcher after merge
    
    * cmd,core,server: Support dynamic updates to price in USD
    
    * eth/watchers: Remove truncated ticker tests
    
    * eth/watchers: Finalize pricefeedwatcher docs/tests
    
    * cmd: Address review comment
    
    * core: Create tests for autoconvertedprice
    
    * cmd,core: Move wei default to AutoConvertedPrice
    
    * Address review comments
    
    * cmd: Fix the e2e flow for setting/updating configs
    
    * CHANGELOG
    
    * cmd: Make sure pricePerPixel can be specified with e notation
    
    Parse it directlty as a big.Rat from a raw string, like I was
    doing for pricePerUnit in some places.
    
    * Fix tests
    
    Turns out tests were not running on my branch due to base branch
    
    * go fmt
    
    * core: Fix typo in comment
    
    * cmd,server: Use 3 decimal points when logging PPP
    
    Found out that's officially supported precision on the
    discovery logic, so let's reflect that here.
    victorges authored Mar 27, 2024
    Configuration menu
    Copy the full SHA
    706ec33 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2024

  1. Release 0.7.3 (#2988)

    * release v0.7.3
    
    * release v0.7.3
    leszko authored Mar 29, 2024
    Configuration menu
    Copy the full SHA
    2572d97 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2024

  1. Revert "Bump ffmpeg version and nv-codec-headers" (#2989)

    * Revert "Bump ffmpeg version and nv-codec-headers (#2973)"
    
    This reverts commit cad6713.
    
    * Revert "Update CUDA build version from 11.7.1 to 12.0.0 (#2978)"
    
    This reverts commit 6c09a9f.
    
    * Reapply "Update CUDA build version from 11.7.1 to 12.0.0 (#2978)"
    
    This reverts commit ebbf210.
    
    * Force ffmpeg reinstall
    
    * Revert "Force ffmpeg reinstall"
    
    This reverts commit 5adb9a5.
    
    ---------
    
    Co-authored-by: Victor Elias <[email protected]>
    thomshutt and victorges authored Apr 2, 2024
    Configuration menu
    Copy the full SHA
    8c243ab View commit details
    Browse the repository at this point in the history
  2. Bump LPMS (#2992)

    thomshutt authored Apr 2, 2024
    Configuration menu
    Copy the full SHA
    f55d605 View commit details
    Browse the repository at this point in the history
  3. release v0.7.4 (#2993)

    leszko authored Apr 2, 2024
    Configuration menu
    Copy the full SHA
    85bea86 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2024

  1. server: Skip redundant maxPrice check in ongoing session (#2994)

    * server: Remove maxPrice check mid-session
    
    * server: Fix tests
    
    * server: Fix erroneous usage of assert.EqualErrorf
    
    When I was writing the tests for validatePrice I found out
    we were using that function wrong in a couple places and
    never checking any error. We were sending err.Error() to check
    the error from err.
    
    * server: Fix error checks after fixing assertion
    
    * CHANGELOG
    victorges authored Apr 3, 2024
    Configuration menu
    Copy the full SHA
    07fed97 View commit details
    Browse the repository at this point in the history
  2. server: Allow Os price to increase up to 2x mid-session (#2995)

    * server: Allow dynamic (and sometimes >max) prices for Os
    
    * CHANGELOG
    victorges authored Apr 3, 2024
    Configuration menu
    Copy the full SHA
    119f346 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. server,discovery: Allow B to use any O in case none match maxPrice (#…

    …2999)
    
    * discovery: Ignore maxPrice on db_discovery queries
    
    Still kept the feature on the db as it had all the tests
    already implemented and could still be useful in the future.
    I can remove it if preferred though.
    
    * server: Get prices as big rats for selection
    
    While this may not seem useful now since we just convert
    them to floats on the probability calculation, it will be
    useful later when comparing prices to max price.
    
    * server: Add maxPrice filter logic on selection algorithm
    
    * CHANGELOG
    
    * server: Break filter in 2 functions
    victorges authored Apr 5, 2024
    Configuration menu
    Copy the full SHA
    eb25467 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2024

  1. Configuration menu
    Copy the full SHA
    52186d7 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2024

  1. ci(ai): add AI issue templates

    This commit introduces two new AI-specific issue templates, aiming to streamline
    the routing of AI subnet-related issues and feature requests to the appropriate team.
    rickstaa committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    44c95d0 View commit details
    Browse the repository at this point in the history
  2. ci(ai): add AI pull request labeler

    This commit adds a pull request labeler action that automatically
    attaches the `ai` label when a pull request is created to the `ai-video`
    branch.
    rickstaa committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    c822b13 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

  1. ci(ai): add AI issue templates and pull request labeler

    This commit introduces two new AI-specific issue templates, aiming to streamline the routing of AI subnet-related issues and feature requests to the appropriate team. It also adds a pull request labeler action that automatically attaches the `ai` label when a pull request is created to the `ai-video` branch.
    rickstaa authored Apr 15, 2024
    Configuration menu
    Copy the full SHA
    25c3cd2 View commit details
    Browse the repository at this point in the history
  2. ci: change issue template order and add PR labeler config (#3006)

    * ci: change issue template order
    
    This commit ensures that the main branch issue templates are put above
    the AI related issue templates.
    
    * ci(ai): add PR labeler config file
    
    This commmit adds a https://github.com/actions/labeler configuration
    file so that all PRs on the `ai-video` branch will be correctly labeled
    with the `ai` label.
    rickstaa authored Apr 15, 2024
    Configuration menu
    Copy the full SHA
    8d378fd View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. ci(ai): fix incorrect labels (#3012)

    * ci(ai): fix incorrect labels
    
    This commit fixed the labels that were specified in the Issue Templates
    to the one found in the repository.
    
    * ci: rename labeler and remove trailing whitespace
    rickstaa authored Apr 16, 2024
    Configuration menu
    Copy the full SHA
    bc726a8 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2024

  1. ci(ai): fix pull request config warning (#3018) (#3019)

    * ci(ai): fix pull request config warning (#3018)
    
    This commit gets rid of the Pull request labeler configuration file
    warning.
    
    * ci(ai): auto assign AI issues
    
    This commit auto assigns the AI issues to the right member of the AI
    team.
    
    * ci(ai): cleanup labeler actions
    
    This commit cleans up the labeler actions and ensure they run on the
    right triggers.
    rickstaa authored Apr 19, 2024
    Configuration menu
    Copy the full SHA
    9305333 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. Configuration menu
    Copy the full SHA
    e9cbadb View commit details
    Browse the repository at this point in the history

Commits on May 8, 2024

  1. Fix CI Darwin Build (#3049)

    * Fix CI
    
    * Fix CI
    leszko authored May 8, 2024
    Configuration menu
    Copy the full SHA
    b1b2c03 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2024

  1. chore: fix function names (#3040)

    Signed-off-by: kevincatty <[email protected]>
    Co-authored-by: Rafał Leszko <[email protected]>
    kevincatty and leszko authored May 9, 2024
    Configuration menu
    Copy the full SHA
    6e49ae2 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. Configuration menu
    Copy the full SHA
    133ca8b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5f8bc55 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. Release 0.7.5 (#3051)

    leszko authored May 14, 2024
    Configuration menu
    Copy the full SHA
    7599f7f View commit details
    Browse the repository at this point in the history

Commits on May 16, 2024

  1. refactor: add -gateway and deprecate -broadcaster (#3053)

    * refactor: add -gateway and deprecate -broadcaster
    
    This commit adds the `gateway` flag and deprecates the `broadcaster` flag
    per core team decision (details:
    https://discord.com/channels/423160867534929930/1051963444598943784/1210356864643109004).
    
    * chore: update pending changelog
    
    ---------
    
    Co-authored-by: John | Elite Encoder <[email protected]>
    rickstaa and eliteprox authored May 16, 2024
    Configuration menu
    Copy the full SHA
    19f1cf6 View commit details
    Browse the repository at this point in the history
  2. refactor(census): rename Broadcaster metrics to Gateway (#3055)

    * refactor(census): rename Broadcaster metrics to Gateway
    
    This commit renames the metrics related to Broadcaster to Gateway, following
    a team decision. More details can be found in the discussion
    here:
    [Team Discussion Link](.com/channels/423160867534929930/1051963444598943784/1210356864643109004).
    
    * chore: update pending changelog
    rickstaa authored May 16, 2024
    Configuration menu
    Copy the full SHA
    304e47f View commit details
    Browse the repository at this point in the history

Commits on May 19, 2024

  1. refactor: add -pricePerGateway and deprecate -pricePerBroadcaster (#3056

    )
    
    * refactor: add -pricePerGateway and deprecate -pricePerBroadcaster
    
    This commit adds the `pricePerGateway` flag and deprecates the `pricePerBroadcaster` flag
    per core team decision (details:
    https://discord.com/channels/423160867534929930/1051963444598943784/1210356864643109004).
    
    * chore: update pending changelog
    
    * refactor: remove redundant deprecation comment
    
    This commit removes the `PricePerBroadcaster` deprecation comment since
    this is already clear from the glog warning below.
    
    * fix: correct the `pricePerBroadcaster` flag check
    
    This commit ensures that the deprecation condition for the `pricePerBroadcaster`
    flag properly handles the default empty string value.
    
    * fix: ensure 'pricePerGateway' is used
    
    This commit ensures that the `pricePerGateway` is correctly used instead
    of the `pricePerBroadcaster` when it is set.
    
    * refactor: deprecate 'pricePerGateway' broadcasters property in favor of 'gateways'
    
    This commit updates the configuration to replace the `broadcasters` property
    specified under the `pricePerGateway` flag with `gateways`. Additionally, it
    ensures that a warning is issued when the deprecated property is still used.
    
    * test: fix TestParseGetBroadcasterPrices test
    
    This commit ensures that the TestParseGetBroadcasterPrices function uses
    the new getGatewayPrices function.
    
    * test: rename TestParseGetBroadcasterPrices to reflect Gateway naming
    
    This commit updates the `TestParseGetBroadcasterPrices` function to
    `TestParseGetGatewayPrices` to align with the new node naming convention.
    rickstaa authored May 19, 2024
    Configuration menu
    Copy the full SHA
    b739f35 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. ci: protect Docker 'stable' tag (#3062)

    This commit introduces a safeguard to ensure that the Docker image
    tagged
    as 'stable' is only pushed when a new tag is created on the stable
    branch.
    This prevents unintended updates to the stable Docker image, ensuring
    consistency and reliability for users relying on the stable tag.
    rickstaa authored May 21, 2024
    Configuration menu
    Copy the full SHA
    6cfaf1e View commit details
    Browse the repository at this point in the history

Commits on May 28, 2024

  1. Return appropriate errors when auth fails, not just 5xx (#3065)

    * Return appropriate errors when auth fails, not just 5xx
    
    * Fix unit tests for new signature
    
    * Fix remaining tests
    
    * Fix another test
    
    * Refactor Forbidden to error type
    
    * Refactor Forbidden to error type
    
    ---------
    
    Co-authored-by: Rafał Leszko <[email protected]>
    thomshutt and leszko authored May 28, 2024
    Configuration menu
    Copy the full SHA
    fbb393e View commit details
    Browse the repository at this point in the history

Commits on May 29, 2024

  1. ci: fix syntax error in Docker action tags (#3068)

    * ci: fix syntax error in Docker action tags
    
    This commit addresses a syntax error in the Docker image tag creation
    step.
    
    * ci(docker): ensure stable tag is created on master branch
    
    This commit ensures that the stable tag is created on the master branch.
    rickstaa authored May 29, 2024
    Configuration menu
    Copy the full SHA
    29732e7 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2024

  1. chore: fix some comments (#3070)

    Signed-off-by: linghuying <[email protected]>
    linghuying authored Jun 1, 2024
    Configuration menu
    Copy the full SHA
    e8f079e View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2024

  1. Add logging to selection_algorithm.go (#3076)

    * Add logging to selection_algorithm.go
    
    * Add even more logging
    leszko authored Jun 11, 2024
    Configuration menu
    Copy the full SHA
    65f501a View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2024

  1. Fix typo in logs (#3079)

    leszko authored Jun 13, 2024
    Configuration menu
    Copy the full SHA
    df4c106 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2024

  1. Add ctx to logging for selection algorithm (#3080)

    * Add ctx to logging for selection algorithm
    
    * Reorg imports
    
    * Fix unit tests
    leszko authored Jun 14, 2024
    Configuration menu
    Copy the full SHA
    b62c60c View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2024

  1. chore: make function comment match function name (#3081)

    Signed-off-by: tongjicoder <[email protected]>
    tongjicoder authored Jun 16, 2024
    Configuration menu
    Copy the full SHA
    0dd670f View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. refactor: rename internal references from Broadcaster to Gateway (#3060)

    * refactor: rename internal references from Broadcaster to Gateway
    
    This commit updates internal references from 'Broadcaster' to 'Gateway'
    in accordance with the core team’s decision. For more details, refer to
    the discussion: [Discord
    Link](https://discord.com/channels/423160867534929930/1051963444598943784/1210356864643109004).
    
    * chore: update pending changelog
    rickstaa authored Jun 18, 2024
    Configuration menu
    Copy the full SHA
    20e81fb View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2024

  1. Configuration menu
    Copy the full SHA
    3dcdf3d View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2024

  1. Add /healthz endpoint (#3095)

    leszko authored Jul 15, 2024
    Configuration menu
    Copy the full SHA
    e6a712b View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2024

  1. Update LPMS to ffmpeg 7 (#3096)

    * install_ffmpeg: point to LPMS
    
    * Update to use ffmpeg7 LPMS
    j0sh authored Jul 24, 2024
    Configuration menu
    Copy the full SHA
    1624694 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2024

  1. release v0.7.6

    j0sh committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    a5cdcc6 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2024

  1. cmd: Use -gateway consistently

    Avoid references to deprecated CLI flags.
    j0sh committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    e9d4c39 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2024

  1. Configuration menu
    Copy the full SHA
    825b3e2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e9e0890 View commit details
    Browse the repository at this point in the history