Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nobl9/nobl9-go
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.83.0
Choose a base ref
...
head repository: nobl9/nobl9-go
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.84.0
Choose a head ref

Commits on Jul 18, 2024

  1. chore: Add SLO end-to-end tests (#494)

    Added SLO end-to-end tests.
    
    The bigger object batches are run in batches, unfortunately for some of
    the objects it is not possible to run multiple `apply` operations
    concurrently, so we need to do it synchronously.
    
    The tested SLOs operate on static Agent and Direct sets which are
    applied before each test but do are not removed after the tests finish,
    they also have static names and project, so the apply will not create
    any new objects if they were already applied.
    
    ## Extra changes
    
    - switched SLO examples to use Agent instead of Direct as this is safer,
    since not all integrations support Direct mode
    - minor issues with Agent and Direct examples
    - fixed `docgen` which was not working with the current examples
    - fixed bad over total metric examples which were generated incorrectly
    - added new line in `http.go` for retry log which was there once before
    but got removed by accident
    nieomylnieja authored Jul 18, 2024
    Copy the full SHA
    4a6a10e View commit details

Commits on Jul 22, 2024

  1. chore: Update dependency cspell to v8.12.1 (#496)

    [![Mend
    Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [cspell](https://streetsidesoftware.github.io/cspell/)
    ([source](https://togithub.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell))
    | [`8.11.0` ->
    `8.12.1`](https://renovatebot.com/diffs/npm/cspell/8.11.0/8.12.1) |
    [![age](https://developer.mend.io/api/mc/badges/age/npm/cspell/8.12.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/cspell/8.12.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/cspell/8.11.0/8.12.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/cspell/8.11.0/8.12.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>streetsidesoftware/cspell (cspell)</summary>
    
    ###
    [`v8.12.1`](https://togithub.com/streetsidesoftware/cspell/blob/HEAD/packages/cspell/CHANGELOG.md#small8121-2024-07-22-small)
    
    [Compare
    Source](https://togithub.com/streetsidesoftware/cspell/compare/v8.11.0...v8.12.1)
    
    - fix: make sure the version is up to date
    ([f6ab018](https://togithub.com/streetsidesoftware/cspell/commit/f6ab018))
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "after 10pm every weekday,before 5am
    every weekday,every weekend" (UTC), Automerge - At any time (no schedule
    defined).
    
    🚦 **Automerge**: Enabled.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR was generated by [Mend
    Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
    [repository job log](https://developer.mend.io/github/nobl9/nobl9-go).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJqYXZhc2NyaXB0IiwicmVub3ZhdGUiXX0=-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jul 22, 2024
    Copy the full SHA
    966b51d View commit details

Commits on Jul 24, 2024

  1. chore: Update dependency yaml to v2.5.0 (#497)

    [![Mend
    Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [yaml](https://eemeli.org/yaml/)
    ([source](https://togithub.com/eemeli/yaml)) | [`2.4.5` ->
    `2.5.0`](https://renovatebot.com/diffs/npm/yaml/2.4.5/2.5.0) |
    [![age](https://developer.mend.io/api/mc/badges/age/npm/yaml/2.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/yaml/2.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/yaml/2.4.5/2.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/yaml/2.4.5/2.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>eemeli/yaml (yaml)</summary>
    
    ### [`v2.5.0`](https://togithub.com/eemeli/yaml/compare/v2.4.5...v2.5.0)
    
    [Compare
    Source](https://togithub.com/eemeli/yaml/compare/v2.4.5...v2.5.0)
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "after 10pm every weekday,before 5am
    every weekday,every weekend" (UTC), Automerge - At any time (no schedule
    defined).
    
    🚦 **Automerge**: Enabled.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR was generated by [Mend
    Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
    [repository job log](https://developer.mend.io/github/nobl9/nobl9-go).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJqYXZhc2NyaXB0IiwicmVub3ZhdGUiXX0=-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jul 24, 2024
    Copy the full SHA
    4512294 View commit details

Commits on Jul 25, 2024

  1. chore: Allow sequential apply/delete execution for end-to-end tests (#…

    …498)
    
    ## Motivation
    
    Since we're currently running into concurrency problems, we need to be
    able to constrain parallelism of apply/delete operations on demand.
    
    ## Testing
    
    ```shell
    export NOBL9_SDK_TEST_RUN_SEQUENTIAL_APPLY_AND_DELETE=true
    make test/e2e
    ```
    
    https://github.com/nobl9/nobl9-go/actions/runs/10095740091
    nieomylnieja authored Jul 25, 2024
    Copy the full SHA
    b3c4b77 View commit details

Commits on Jul 26, 2024

  1. chore: Add Alert Silence end-to-end tests (#499)

    Added v1alpha `AlertSilence` end-to-end tests.
    nieomylnieja authored Jul 26, 2024
    Copy the full SHA
    5088224 View commit details
  2. chore: Add Data Export end-to-end tests (#500)

    Adds v1alpha `DataExport` e2e tests.
    nieomylnieja authored Jul 26, 2024
    Copy the full SHA
    ae9b21d View commit details

Commits on Jul 29, 2024

  1. chore: Add Annotations end-to-end tests (#501)

    Adds v1alpha `Annotation` e2e tests.
    nieomylnieja authored Jul 29, 2024
    Copy the full SHA
    415cba1 View commit details

Commits on Jul 30, 2024

  1. feat: PC-13028 Support Azure Monitor managed service for Prometheus i…

    …n Direct (#449)
    
    Support new integration with Azure Monitor managed service for Prometheus in Direct mode
    dawidwisn authored Jul 30, 2024
    Copy the full SHA
    cb65251 View commit details
  2. fix: Fix tests for Azure Prometheus Direct [PC-13028] (#504)

    Fix failing tests for Azure Prometheus
    dawidwisn authored Jul 30, 2024
    Copy the full SHA
    22b7418 View commit details
  3. chore: Update dependency cspell to v8.13.0 (#508)

    [![Mend
    Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [cspell](https://streetsidesoftware.github.io/cspell/)
    ([source](https://togithub.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell))
    | [`8.12.1` ->
    `8.13.0`](https://renovatebot.com/diffs/npm/cspell/8.12.1/8.13.0) |
    [![age](https://developer.mend.io/api/mc/badges/age/npm/cspell/8.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/cspell/8.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/cspell/8.12.1/8.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/cspell/8.12.1/8.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>streetsidesoftware/cspell (cspell)</summary>
    
    ###
    [`v8.13.0`](https://togithub.com/streetsidesoftware/cspell/blob/HEAD/packages/cspell/CHANGELOG.md#8130-2024-07-30)
    
    [Compare
    Source](https://togithub.com/streetsidesoftware/cspell/compare/v8.12.1...v8.13.0)
    
    - chore: Update Integration Test Performance Data
    ([#&#8203;6011](https://togithub.com/streetsidesoftware/cspell/issues/6011))
    ([135838a](https://togithub.com/streetsidesoftware/cspell/commit/135838a)),
    closes
    [#&#8203;6011](https://togithub.com/streetsidesoftware/cspell/issues/6011)
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "after 10pm every weekday,before 5am
    every weekday,every weekend" (UTC), Automerge - At any time (no schedule
    defined).
    
    🚦 **Automerge**: Enabled.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR was generated by [Mend
    Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
    [repository job log](https://developer.mend.io/github/nobl9/nobl9-go).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJqYXZhc2NyaXB0IiwicmVub3ZhdGUiXX0=-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jul 30, 2024
    Copy the full SHA
    0751b17 View commit details

Commits on Jul 31, 2024

  1. chore: gitsync updates (#507)

    Synced the following files:
    
    - .golangci.yml
    - .github/renovate.json5
    - .github/scripts/release-notes.sh
    
    Root repository ref: https://github.com/nobl9/go-repo-template
    
    Pull request generated by
    [gitsync](https://github.com/nieomylnieja/gitsync)
    nieomylnieja authored Jul 31, 2024
    Copy the full SHA
    d663548 View commit details

Commits on Aug 1, 2024

  1. chore: Update developer docs and examples (#509)

    - Update developer docs
    - Add test for making sure each new `manifest.Object` has generated
    examples
    - Add `UserGroup` to non-applicable objects
    nieomylnieja authored Aug 1, 2024
    Copy the full SHA
    b75e9ca View commit details

Commits on Aug 2, 2024

  1. chore: Update dependency cspell to v8.13.1 (#511)

    [![Mend
    Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [cspell](https://streetsidesoftware.github.io/cspell/)
    ([source](https://togithub.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell))
    | [`8.13.0` ->
    `8.13.1`](https://renovatebot.com/diffs/npm/cspell/8.13.0/8.13.1) |
    [![age](https://developer.mend.io/api/mc/badges/age/npm/cspell/8.13.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/cspell/8.13.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/cspell/8.13.0/8.13.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/cspell/8.13.0/8.13.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>streetsidesoftware/cspell (cspell)</summary>
    
    ###
    [`v8.13.1`](https://togithub.com/streetsidesoftware/cspell/blob/HEAD/packages/cspell/CHANGELOG.md#small8131-2024-08-02-small)
    
    [Compare
    Source](https://togithub.com/streetsidesoftware/cspell/compare/v8.13.0...v8.13.1)
    
    - chore: Update Integration Test Performance Data
    ([#&#8203;6028](https://togithub.com/streetsidesoftware/cspell/issues/6028))
    ([738d2a9](https://togithub.com/streetsidesoftware/cspell/commit/738d2a9)),
    closes
    [#&#8203;6028](https://togithub.com/streetsidesoftware/cspell/issues/6028)
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "after 10pm every weekday,before 5am
    every weekday,every weekend" (UTC), Automerge - At any time (no schedule
    defined).
    
    🚦 **Automerge**: Enabled.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR was generated by [Mend
    Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
    [repository job log](https://developer.mend.io/github/nobl9/nobl9-go).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJqYXZhc2NyaXB0IiwicmVub3ZhdGUiXX0=-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Aug 2, 2024
    Copy the full SHA
    1106a0d View commit details

Commits on Aug 6, 2024

  1. feat: PC-13263 Add Report kind (#495)

    ## Summary
    
    Add Report kind for creating, updating and deleting reports. Only System
    Health Review report type is supported.
    
    ## Release Notes
    
    New `Report` kind for handling creating, updating and deleting reports.
    Only System Health Review report type is currently supported. This
    feature is currently in early access, and is available only on demand.
    If you want to utilize SDK for reports management, please reach out to
    Nobl9 Support.
    
    ---------
    
    Co-authored-by: lukasz-dobek <lukasz.dobek@nobl9.com>
    natalialanga and lukasz-dobek authored Aug 6, 2024
    Copy the full SHA
    c739a50 View commit details
  2. chore: Update module golang.org/x/tools/cmd/goimports to v0.24.0 (#512)

    [![Mend
    Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | golang.org/x/tools/cmd/goimports | `v0.23.0` -> `v0.24.0` |
    [![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2ftools%2fcmd%2fgoimports/v0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2ftools%2fcmd%2fgoimports/v0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2ftools%2fcmd%2fgoimports/v0.23.0/v0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2ftools%2fcmd%2fgoimports/v0.23.0/v0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "after 10pm every weekday,before 5am
    every weekday,every weekend" (UTC), Automerge - At any time (no schedule
    defined).
    
    🚦 **Automerge**: Enabled.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR was generated by [Mend
    Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
    [repository job log](https://developer.mend.io/github/nobl9/nobl9-go).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xOC4xNyIsInVwZGF0ZWRJblZlciI6IjM4LjE4LjE3IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZSJdfQ==-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Aug 6, 2024
    Copy the full SHA
    97658dc View commit details

Commits on Aug 7, 2024

  1. fix: Removing redundant validation in LogicMonitor [PC-13783] (#514)

    ## Release Notes
    
    Removing redundant validation for `ClientID` and `ClientSecret` in Logic Monitor
    dawidwisn authored Aug 7, 2024
    Copy the full SHA
    70e68d0 View commit details
  2. Copy the full SHA
    1f71b3f View commit details

Commits on Aug 8, 2024

  1. chore: Update dependency cspell to v8.13.2 (#515)

    [![Mend
    Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [cspell](https://streetsidesoftware.github.io/cspell/)
    ([source](https://togithub.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell))
    | [`8.13.1` ->
    `8.13.2`](https://renovatebot.com/diffs/npm/cspell/8.13.1/8.13.2) |
    [![age](https://developer.mend.io/api/mc/badges/age/npm/cspell/8.13.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/cspell/8.13.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/cspell/8.13.1/8.13.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/cspell/8.13.1/8.13.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>streetsidesoftware/cspell (cspell)</summary>
    
    ###
    [`v8.13.2`](https://togithub.com/streetsidesoftware/cspell/blob/HEAD/packages/cspell/CHANGELOG.md#small8132-2024-08-08-small)
    
    [Compare
    Source](https://togithub.com/streetsidesoftware/cspell/compare/v8.13.1...v8.13.2)
    
    - chore: Update Integration Test Performance Data
    ([#&#8203;6060](https://togithub.com/streetsidesoftware/cspell/issues/6060))
    ([c766d18](https://togithub.com/streetsidesoftware/cspell/commit/c766d18)),
    closes
    [#&#8203;6060](https://togithub.com/streetsidesoftware/cspell/issues/6060)
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "after 10pm every weekday,before 5am
    every weekday,every weekend" (UTC), Automerge - At any time (no schedule
    defined).
    
    🚦 **Automerge**: Enabled.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR was generated by [Mend
    Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
    [repository job log](https://developer.mend.io/github/nobl9/nobl9-go).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yMC4xIiwidXBkYXRlZEluVmVyIjoiMzguMjAuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwiamF2YXNjcmlwdCIsInJlbm92YXRlIl19-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Aug 8, 2024
    Copy the full SHA
    dd4d013 View commit details

Commits on Aug 12, 2024

  1. chore: Update dependency cspell to v8.13.3 (#517)

    [![Mend
    Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [cspell](https://streetsidesoftware.github.io/cspell/)
    ([source](https://togithub.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell))
    | [`8.13.2` ->
    `8.13.3`](https://renovatebot.com/diffs/npm/cspell/8.13.2/8.13.3) |
    [![age](https://developer.mend.io/api/mc/badges/age/npm/cspell/8.13.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/cspell/8.13.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/cspell/8.13.2/8.13.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/cspell/8.13.2/8.13.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>streetsidesoftware/cspell (cspell)</summary>
    
    ###
    [`v8.13.3`](https://togithub.com/streetsidesoftware/cspell/blob/HEAD/packages/cspell/CHANGELOG.md#small8133-2024-08-12-small)
    
    [Compare
    Source](https://togithub.com/streetsidesoftware/cspell/compare/v8.13.2...v8.13.3)
    
    - chore: Update Integration Test Performance Data
    ([#&#8203;6079](https://togithub.com/streetsidesoftware/cspell/issues/6079))
    ([dd28ef5](https://togithub.com/streetsidesoftware/cspell/commit/dd28ef5)),
    closes
    [#&#8203;6079](https://togithub.com/streetsidesoftware/cspell/issues/6079)
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "after 10pm every weekday,before 5am
    every weekday,every weekend" (UTC), Automerge - At any time (no schedule
    defined).
    
    🚦 **Automerge**: Enabled.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR was generated by [Mend
    Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
    [repository job log](https://developer.mend.io/github/nobl9/nobl9-go).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yMC4xIiwidXBkYXRlZEluVmVyIjoiMzguMjAuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwiamF2YXNjcmlwdCIsInJlbm92YXRlIl19-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Aug 12, 2024
    Copy the full SHA
    c7f18b6 View commit details

Commits on Aug 13, 2024

  1. Copy the full SHA
    37596ab View commit details
  2. chore: PC-13744 Composite SLOs in examples and SDK e2e tests (#516)

    ## Motivation
    
    Recently added SDK e2e tests were developed when Composite SLOs were not
    released yet. We need to close that test coverage gap.
    
    ## Summary
    
    The code that generates examples of SLOs now includes all variants for
    Composite SLOs. Few cases required special handling:
    * Composite SLOs don't have `indicator` section and don't have an
    association with data sources
    * Composite SLOs depend on other SLOs. Normal SLOs depend only on
    objects of other kinds.
    
    YAML examples were regenerated from updated code.
    
    `Makefile` contains small improvement that when running e2e tests
    locally `NOBL9_SDK_TEST_RUN_SEQUENTIAL_APPLY_AND_DELETE` env var is set
    to `true`, because usually, tests run locally are run against smaller
    and slower dev environments.
    
    Fixed `check/generate` target in `Makefile` that was not checking
    generated yaml examples.
    
    ## Testing
    
    Locally:
    ```
    make test/e2e
    ```
    
    Run "End-to-end tests dispatch" workflow with and without sequential
    requests option:
    
    
    https://github.com/nobl9/nobl9-go/actions/runs/10355310664/job/28662650970
    
    https://github.com/nobl9/nobl9-go/actions/runs/10355329422/job/28662712884
    ditrytus authored Aug 13, 2024
    Copy the full SHA
    c2e5c03 View commit details
  3. fix: PC-13744 Removed anomaly config from composite e2e test (#520)

    ## Summary
    
    Removed anomaly config from composite tests
    ditrytus authored Aug 13, 2024
    Copy the full SHA
    abca389 View commit details

Commits on Aug 14, 2024

  1. chore: Update dependency golangci/golangci-lint to v1.60.1 (#521)

    [![Mend
    Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Update | Change |
    |---|---|---|
    | [golangci/golangci-lint](https://togithub.com/golangci/golangci-lint)
    | minor | `v1.59.1` -> `v1.60.1` |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>golangci/golangci-lint (golangci/golangci-lint)</summary>
    
    ###
    [`v1.60.1`](https://togithub.com/golangci/golangci-lint/compare/v1.60.0...v1.60.1)
    
    [Compare
    Source](https://togithub.com/golangci/golangci-lint/compare/v1.59.1...v1.60.1)
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "after 10pm every weekday,before 5am
    every weekday,every weekend" (UTC), Automerge - At any time (no schedule
    defined).
    
    🚦 **Automerge**: Enabled.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR was generated by [Mend
    Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
    [repository job log](https://developer.mend.io/github/nobl9/nobl9-go).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGUiXX0=-->
    
    ---------
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Mateusz Hawrus <mateusz.hawrus@nobl9.com>
    renovate[bot] and nieomylnieja authored Aug 14, 2024
    Copy the full SHA
    dc8fab2 View commit details

Commits on Aug 17, 2024

  1. chore: Update dependency cspell to v8.14.1 (#522)

    [![Mend
    Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [cspell](https://streetsidesoftware.github.io/cspell/)
    ([source](https://togithub.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell))
    | [`8.13.3` ->
    `8.14.1`](https://renovatebot.com/diffs/npm/cspell/8.13.3/8.14.1) |
    [![age](https://developer.mend.io/api/mc/badges/age/npm/cspell/8.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/cspell/8.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/cspell/8.13.3/8.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/cspell/8.13.3/8.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>streetsidesoftware/cspell (cspell)</summary>
    
    ###
    [`v8.14.1`](https://togithub.com/streetsidesoftware/cspell/blob/HEAD/packages/cspell/CHANGELOG.md#small8141-2024-08-17-small)
    
    [Compare
    Source](https://togithub.com/streetsidesoftware/cspell/compare/v8.13.3...v8.14.1)
    
    - fix: Fix publishing
    ([8a56148](https://togithub.com/streetsidesoftware/cspell/commit/8a56148))
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "after 10pm every weekday,before 5am
    every weekday,every weekend" (UTC), Automerge - At any time (no schedule
    defined).
    
    🚦 **Automerge**: Enabled.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR was generated by [Mend
    Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
    [repository job log](https://developer.mend.io/github/nobl9/nobl9-go).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwiamF2YXNjcmlwdCIsInJlbm92YXRlIl19-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Aug 17, 2024
    Copy the full SHA
    a2a4e66 View commit details

Commits on Aug 19, 2024

  1. chore: Update DEVELOPMENT.md (#523)

    Add section about e2e tests.
    nieomylnieja authored Aug 19, 2024
    Copy the full SHA
    7579676 View commit details
  2. feat: add Replay support to Logic Monitor (#510)

    ## Motivation
    Adds Replay support to Logic Monitor data source.
    
    
    ## Summary
    
    Adds Logic Monitor to Agent and Direct max duration retrieval
    definitions.
    
    ## Release Notes
    
    Adds Replay support to Logic Monitor data source.
    mkaras-nobl9 authored Aug 19, 2024
    Copy the full SHA
    6024cba View commit details

Commits on Aug 21, 2024

  1. chore: Update dependency cspell to v8.14.2 (#524)

    [![Mend
    Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [cspell](https://streetsidesoftware.github.io/cspell/)
    ([source](https://togithub.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell))
    | [`8.14.1` ->
    `8.14.2`](https://renovatebot.com/diffs/npm/cspell/8.14.1/8.14.2) |
    [![age](https://developer.mend.io/api/mc/badges/age/npm/cspell/8.14.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/cspell/8.14.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/cspell/8.14.1/8.14.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/cspell/8.14.1/8.14.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>streetsidesoftware/cspell (cspell)</summary>
    
    ###
    [`v8.14.2`](https://togithub.com/streetsidesoftware/cspell/blob/HEAD/packages/cspell/CHANGELOG.md#small8142-2024-08-20-small)
    
    [Compare
    Source](https://togithub.com/streetsidesoftware/cspell/compare/v8.14.1...v8.14.2)
    
    - chore: Update Integration Test Performance Data
    ([#&#8203;6126](https://togithub.com/streetsidesoftware/cspell/issues/6126))
    ([012c897](https://togithub.com/streetsidesoftware/cspell/commit/012c897)),
    closes
    [#&#8203;6126](https://togithub.com/streetsidesoftware/cspell/issues/6126)
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "after 10pm every weekday,before 5am
    every weekday,every weekend" (UTC), Automerge - At any time (no schedule
    defined).
    
    🚦 **Automerge**: Enabled.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR was generated by [Mend
    Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
    [repository job log](https://developer.mend.io/github/nobl9/nobl9-go).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwiamF2YXNjcmlwdCIsInJlbm92YXRlIl19-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Aug 21, 2024
    Copy the full SHA
    f2f7faf View commit details

Commits on Aug 22, 2024

  1. feat: PC-13831 unique SLOs validation and test (#526)

    ## Release Notes
    
    Added BudgetAdjustment validation for unique SLOs in filters
    jakubpieta authored Aug 22, 2024
    Copy the full SHA
    b988a29 View commit details
Showing with 4,316 additions and 520 deletions.
  1. +2 −4 .github/renovate.json5
  2. +2 −2 .github/scripts/release-notes.sh
  3. +6 −0 .github/workflows/e2e-tests-dispatch.yml
  4. +6 −0 .github/workflows/e2e-tests.yml
  5. +0 −2 .golangci.yml
  6. +6 −3 Makefile
  7. +4 −0 cspell.yaml
  8. +22 −4 docs/DEVELOPMENT.md
  9. +1 −1 docs/RELEASE.md
  10. +40 −0 docs/mock_example/mocks/objects_v1.go
  11. +1 −0 go.mod
  12. +2 −0 go.sum
  13. +1 −0 internal/cmd/docgen/README.md
  14. +25 −4 internal/cmd/docgen/object_doc.go
  15. +7 −0 internal/cmd/docgen/objects.go
  16. +21 −0 internal/cmd/examplegen/README.md
  17. +1 −0 internal/cmd/examplegen/main.go
  18. +2 −1 internal/manifest/objects_test.go
  19. +2 −0 internal/manifest/v1alpha/examples/agent.go
  20. +9 −0 internal/manifest/v1alpha/examples/direct.go
  21. +8 −0 internal/manifest/v1alpha/examples/doc.go
  22. +55 −0 internal/manifest/v1alpha/examples/example_test.go
  23. +116 −0 internal/manifest/v1alpha/examples/report.go
  24. +32 −13 internal/manifest/v1alpha/examples/slo.go
  25. +115 −0 internal/manifest/v1alpha/examples/slo_composite.go
  26. +86 −53 internal/manifest/v1alpha/examples/slo_variants.go
  27. +2 −2 internal/manifest/v1alpha/examples/validation_test.go
  28. +1 −1 internal/sdk/response_errors.go
  29. +4 −4 internal/validation/rule_test.go
  30. +1 −1 internal/validation/string.go
  31. +3 −1 internal/validation/unique.go
  32. +2 −1 manifest/kind.go
  33. +8 −1 manifest/kind_enum.go
  34. +1 −1 manifest/v1alpha/agent/examples/cloud-watch.yaml
  35. +1 −1 manifest/v1alpha/agent/examples/google-cloud-monitoring.yaml
  36. +7 −0 manifest/v1alpha/agent/examples/logic-monitor.yaml
  37. +4 −1 manifest/v1alpha/budgetadjustment/validation.go
  38. +45 −0 manifest/v1alpha/budgetadjustment/validation_test.go
  39. +3 −0 manifest/v1alpha/data_sources.go
  40. +12 −0 manifest/v1alpha/direct/direct.go
  41. +24 −0 manifest/v1alpha/direct/examples/azure-prometheus.yaml
  42. +1 −1 manifest/v1alpha/direct/examples/google-cloud-monitoring.yaml
  43. +7 −0 manifest/v1alpha/direct/examples/logic-monitor.yaml
  44. +14 −7 manifest/v1alpha/direct/validation.go
  45. +61 −10 manifest/v1alpha/direct/validation_test.go
  46. +3 −0 manifest/v1alpha/parser/parser.go
  47. +3 −0 manifest/v1alpha/report/doc.go
  48. +303 −0 manifest/v1alpha/report/example_test.go
  49. +66 −0 manifest/v1alpha/report/examples.yaml
  50. +87 −0 manifest/v1alpha/report/report.go
  51. +54 −0 manifest/v1alpha/report/report_object.go
  52. +27 −0 manifest/v1alpha/report/row_group_by.go
  53. +82 −0 manifest/v1alpha/report/row_group_by_enum.go
  54. +11 −0 manifest/v1alpha/report/slo_history.go
  55. +27 −0 manifest/v1alpha/report/snapshot_point.go
  56. +82 −0 manifest/v1alpha/report/snapshot_point_enum.go
  57. +25 −0 manifest/v1alpha/report/system_health_review.go
  58. +102 −0 manifest/v1alpha/report/validation.go
  59. +60 −0 manifest/v1alpha/report/validation_slo_history.go
  60. +91 −0 manifest/v1alpha/report/validation_system_health_review.go
  61. +860 −0 manifest/v1alpha/report/validation_test.go
  62. +8 −8 manifest/v1alpha/slo/examples/amazon-prometheus.yaml
  63. +12 −12 manifest/v1alpha/slo/examples/app-dynamics.yaml
  64. +24 −24 manifest/v1alpha/slo/examples/azure-monitor.yaml
  65. +12 −12 manifest/v1alpha/slo/examples/azure-prometheus.yaml
  66. +8 −8 manifest/v1alpha/slo/examples/big-query.yaml
  67. +36 −36 manifest/v1alpha/slo/examples/cloud-watch.yaml
  68. +264 −0 manifest/v1alpha/slo/examples/composite-slo.yaml
  69. +8 −8 manifest/v1alpha/slo/examples/datadog.yaml
  70. +8 −8 manifest/v1alpha/slo/examples/dynatrace.yaml
  71. +8 −8 manifest/v1alpha/slo/examples/elasticsearch.yaml
  72. +8 −8 manifest/v1alpha/slo/examples/generic.yaml
  73. +8 −8 manifest/v1alpha/slo/examples/google-cloud-monitoring.yaml
  74. +8 −8 manifest/v1alpha/slo/examples/grafana-loki.yaml
  75. +8 −8 manifest/v1alpha/slo/examples/graphite.yaml
  76. +12 −12 manifest/v1alpha/slo/examples/honeycomb.yaml
  77. +8 −8 manifest/v1alpha/slo/examples/influx-d-b.yaml
  78. +20 −20 manifest/v1alpha/slo/examples/instana.yaml
  79. +20 −20 manifest/v1alpha/slo/examples/lightstep.yaml
  80. +12 −12 manifest/v1alpha/slo/examples/logic-monitor.yaml
  81. +8 −8 manifest/v1alpha/slo/examples/new-relic.yaml
  82. +8 −8 manifest/v1alpha/slo/examples/open-t-s-d-b.yaml
  83. +12 −12 manifest/v1alpha/slo/examples/pingdom.yaml
  84. +8 −8 manifest/v1alpha/slo/examples/prometheus.yaml
  85. +8 −8 manifest/v1alpha/slo/examples/redshift.yaml
  86. +8 −8 manifest/v1alpha/slo/examples/splunk-observability.yaml
  87. +8 −8 manifest/v1alpha/slo/examples/splunk.yaml
  88. +16 −16 manifest/v1alpha/slo/examples/sumo-logic.yaml
  89. +28 −28 manifest/v1alpha/slo/examples/thousand-eyes.yaml
  90. +7 −8 manifest/v1alpha/slo/slo.go
  91. +1 −1 manifest/v1alpha/twindow/twindow.go
  92. +2 −2 package.json
  93. +2 −2 scripts/check-generate.sh
  94. BIN sdk/config_activity.png
  95. +2 −0 sdk/endpoints/objects/v1/endpoints_interface.go
  96. +13 −0 sdk/endpoints/objects/v1/endpoints_v1alpha.go
  97. +4 −0 sdk/endpoints/objects/v1/request.go
  98. +1 −1 sdk/http.go
  99. +5 −0 tests/examples_test.go
  100. +101 −15 tests/helpers_test.go
  101. +26 −2 tests/main_test.go
  102. +14 −19 tests/v1alpha_agent_test.go
  103. +2 −2 tests/v1alpha_alertmethod_test.go
  104. +3 −3 tests/v1alpha_alertpolicy_test.go
  105. +244 −0 tests/v1alpha_alertsilence_test.go
  106. +215 −0 tests/v1alpha_annotation_test.go
  107. +113 −0 tests/v1alpha_dataexport_test.go
  108. +5 −2 tests/v1alpha_direct_test.go
  109. +2 −2 tests/v1alpha_project_test.go
  110. +3 −3 tests/v1alpha_rolebinding_test.go
  111. +2 −7 tests/v1alpha_service_test.go
  112. +297 −0 tests/v1alpha_slo_test.go
6 changes: 2 additions & 4 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -22,17 +22,16 @@
"commitMessagePrefix": "chore:",
// This will run go mod tidy after each go.mod update.
"postUpdateOptions": ["gomodTidy"],
// Groups:
"packageRules": [
// Groups:
{
"matchManagers": ["gomod"],
"matchUpdateTypes": [
"minor",
"patch",
],
"groupName": "minor and patch golang dependencies",
"groupName": "minor and patch Golang dependencies",
},
// Labels:
{
"matchManagers": ["github-actions"],
"addLabels": ["github-actions"],
@@ -59,6 +58,5 @@
"**/vendor/**",
"**/node_modules/**",
"**/test_data/**",
"examples/**",
]
}
4 changes: 2 additions & 2 deletions .github/scripts/release-notes.sh
Original file line number Diff line number Diff line change
@@ -22,10 +22,10 @@ extract_header() {
local commit="$1"
local header_name="$2"
awk "
/^\s?$/ {next}
/^\s?$/ {next};
/^--+/ {rn=0};
/^Signed-off-by|Co-authored-by/ {rn=0};
/^## $header_name/ {rn=1}
/^## $header_name/ {rn=1};
rn && !/^##/ && !/^--+/ {print};
/^##/ && !/^## $header_name/ {rn=0}" <<<"$commit"
}
6 changes: 6 additions & 0 deletions .github/workflows/e2e-tests-dispatch.yml
Original file line number Diff line number Diff line change
@@ -18,6 +18,11 @@ on:
description: Okta authentication server identifier
required: false
type: string
sequentialApplyAndDelete:
description: Perform apply/delete requests sequentially
required: false
type: boolean
default: true
jobs:
test:
uses: ./.github/workflows/e2e-tests.yml
@@ -26,5 +31,6 @@ jobs:
ref: "${{ github.ref_name }}"
oktaOrgUrl: "${{ inputs.oktaOrgUrl }}"
oktaAuthServer: "${{ inputs.oktaAuthServer }}"
sequentialApplyAndDelete: "${{ inputs.sequentialApplyAndDelete }}"
secrets:
clientSecret: "${{ inputs.clientSecret }}"
6 changes: 6 additions & 0 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
@@ -19,6 +19,11 @@ on:
required: false
type: string
default: main
sequentialApplyAndDelete:
description: Whether to perform apply/delete requests sequentially
required: false
type: boolean
default: true
secrets:
clientSecret:
description: Client secret to use for authentication
@@ -44,4 +49,5 @@ jobs:
NOBL9_SDK_OKTA_ORG_URL: ${{ inputs.oktaOrgUrl }}
NOBL9_SDK_OKTA_AUTH_SERVER: ${{ inputs.oktaAuthServer }}
NOBL9_SDK_NO_CONFIG_FILE: true
NOBL9_SDK_TEST_RUN_SEQUENTIAL_APPLY_AND_DELETE: ${{ inputs.sequentialApplyAndDelete }}
run: make test/e2e
2 changes: 0 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -22,8 +22,6 @@ issues:
- linters:
- revive
text: "error-strings: error strings should not be capitalized or end with punctuation or a newline"
exclude-dirs:
- scripts
# Value 0 means show all.
max-issues-per-linter: 0
max-same-issues: 0
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -8,11 +8,11 @@ GO_ENUM_VERSION := v0.6.0
# renovate datasource=github-releases depName=securego/gosec
GOSEC_VERSION := v2.20.0
# renovate datasource=github-releases depName=golangci/golangci-lint
GOLANGCI_LINT_VERSION := v1.59.1
GOLANGCI_LINT_VERSION := v1.60.1
# renovate datasource=go depName=golang.org/x/vuln/cmd/govulncheck
GOVULNCHECK_VERSION := v1.1.3
# renovate datasource=go depName=golang.org/x/tools/cmd/goimports
GOIMPORTS_VERSION := v0.23.0
GOIMPORTS_VERSION := v0.24.0
# renovate datasource=go depName=github.com/vburenin/ifacemaker
IFACEMAKER_VERSION := v1.2.1

@@ -44,6 +44,9 @@ test:
## Run all end-to-end tests (requires Nobl9 platform credentials).
test/e2e:
# The '-count=1' flag disables tests results caching, as per https://go.dev/doc/go1.10#test.
@if [ "$(GITHUB_ACTIONS)" != "true" ]; then \
export NOBL9_SDK_TEST_RUN_SEQUENTIAL_APPLY_AND_DELETE=true; \
fi; \
go test -count=1 -race -test.v -timeout=5m -tags=e2e_test ./tests

## Record tests and save them in ./bin/recorded-tests.json.
@@ -116,7 +119,7 @@ generate/code:
echo "Generating Go code..."
$(call _ensure_installed,binary,go-enum)
$(call _ensure_installed,binary,ifacemaker)
go generate ./... ./docs/mock_example
go generate -tags=e2e_test ./... ./docs/mock_example
${MAKE} format/go

## Generate examples from code.
4 changes: 4 additions & 0 deletions cspell.yaml
Original file line number Diff line number Diff line change
@@ -68,8 +68,10 @@ words:
- dynatrace
- endef
- enduml
- errgroup
- examplegen
- fatalf
- generify
- gobin
- gofile
- goimports
@@ -113,9 +115,11 @@ words:
- opentsdb
- opsgenie
- pagerduty
- pastlatest
- pathutils
- plantuml
- preconfigured
- projectservice
- promql
- puml
- retryable
26 changes: 22 additions & 4 deletions docs/DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -29,8 +29,7 @@ and makes local debugging easier.

## Testing

Currently nobl9-go is automatically verified with unit tests only.
It is encouraged to create a simple MVP program which verifies the introduced
It is encouraged to create a simple MVP program which verifies that introduced
changes work. There's a dedicated section in PR template `## Testing` which
is a great place to add such `main.go` code snippet.
Here's an example:
@@ -87,6 +86,20 @@ rules:
If you wish to record the tests run `make test/record`.
By default, the tests are recorded inside `./bin` folder.

### End-to-end test

Tests which are run against Nobl9 API are located under [tests](../tests/)
folder.
They are standard Go tests, annotated with build tag `e2e_test`, they can
be executed with `make test/e2e`.
In order to run them, a set of basic Nobl9 credentials is required:

- *NOBL9_SDK_CLIENT_ID*
- *NOBL9_SDK_CLIENT_SECRET*

There's also a [dispatch action](https://github.com/nobl9/nobl9-go/actions/workflows/e2e-tests-dispatch.yml)
available.

## Releases

Refer to [RELEASE.md](./RELEASE.md) for more information on release process.
@@ -101,8 +114,13 @@ We use the following tools to do that:
your own const-based enums. It can generate methods for decoding the custom
type from and to string, so you can use the enum type directly in your
struct.
- [Our custom tool](scripts/generate-object-impl.go)
for generating `manifest.Object` methods implementation for all object kinds.
- [objectimpl](../internal/cmd/objectimpl)
for generating `manifest.Object` implementation for all object kinds.
- [docgen](../internal/cmd/docgen/)
for generating documentation based on validation rules, Go doc comments and
generate examples.
- [examplegen](../internal/cmd/examplegen/)
for generating examples for each manifest object.

## Validation

2 changes: 1 addition & 1 deletion docs/RELEASE.md
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ created. For example, If you end up changing PR title from `sec:` to `fix:`
you'll have to manually remove `security` label.

On each commit to `main` branch, Release Drafter will update the next release
draft. Once you're ready to create new version, simply publish this draft.
draft.

In addition to Release Drafter, we're also running a script which extracts
explicitly listed release notes and breaking changes which are optionally
40 changes: 40 additions & 0 deletions docs/mock_example/mocks/objects_v1.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ require (
github.com/stretchr/testify v1.9.0
github.com/teambition/rrule-go v1.8.2
golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8
golang.org/x/sync v0.7.0
golang.org/x/text v0.16.0
golang.org/x/time v0.5.0
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -57,6 +57,8 @@ golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A=
golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU=
golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 h1:LoYXNGAShUG3m/ehNk4iFctuhGX/+R1ZpfJ4/ia80JM=
golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI=
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y=
1 change: 1 addition & 0 deletions internal/cmd/docgen/README.md
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ It merges:
- Go doc comments
- [Validation plan](../../validation/plan.go)
- Custom documentation and formatting
- Generated examples

into a single YAML file.

29 changes: 25 additions & 4 deletions internal/cmd/docgen/object_doc.go
Original file line number Diff line number Diff line change
@@ -116,11 +116,32 @@ var validationInferredProperties = []struct {

func readObjectExamples(root string, typ reflect.Type) []string {
relPath := strings.TrimPrefix(typ.PkgPath(), moduleRootPath)
objectPath := filepath.Join(root, relPath, "example.yaml")
examplesPath := filepath.Join(root, relPath, "examples.yaml")
// #nosec G304
data, err := os.ReadFile(objectPath)
data, err := os.ReadFile(examplesPath)
if err == nil {
return []string{string(data)}
}
if !os.IsNotExist(err) {
log.Panicf("failed to read examples for object, path: %s, err: %v", examplesPath, err)
}
examplesDirPath := filepath.Join(filepath.Dir(examplesPath), "examples")
dir, err := os.ReadDir(examplesDirPath)
if err != nil {
log.Panicf("failed to read examples for object, path: %s, err: %v", objectPath, err)
log.Panicf("failed to read examples for object, path: %s, err: %v", examplesDirPath, err)
}
examples := make([]string, 0, len(dir))
for _, entry := range dir {
if entry.IsDir() {
continue
}
path := filepath.Join(examplesDirPath, entry.Name())
// #nosec G304
data, err = os.ReadFile(path)
if err != nil {
log.Panicf("failed to read examples for object, path: %s, err: %v", path, err)
}
examples = append(examples, string(data))
}
return []string{string(data)}
return examples
}
7 changes: 7 additions & 0 deletions internal/cmd/docgen/objects.go
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@ import (
v1alphaDataExport "github.com/nobl9/nobl9-go/manifest/v1alpha/dataexport"
v1alphaDirect "github.com/nobl9/nobl9-go/manifest/v1alpha/direct"
v1alphaProject "github.com/nobl9/nobl9-go/manifest/v1alpha/project"
v1alphaReport "github.com/nobl9/nobl9-go/manifest/v1alpha/report"
v1alphaRoleBinding "github.com/nobl9/nobl9-go/manifest/v1alpha/rolebinding"
v1alphaService "github.com/nobl9/nobl9-go/manifest/v1alpha/service"
v1alphaSLO "github.com/nobl9/nobl9-go/manifest/v1alpha/slo"
@@ -104,6 +105,12 @@ var objectsRegistry = []*ObjectDoc{
validationProperties: objectPlansToDocs(validation.Plan(v1alphaRoleBinding.RoleBinding{}.GetValidator())),
object: v1alphaRoleBinding.RoleBinding{},
},
{
Kind: manifest.KindReport,
Version: manifest.VersionV1alpha,
validationProperties: objectPlansToDocs(validation.Plan(v1alphaReport.Report{}.GetValidator())),
object: v1alphaReport.Report{},
},
}

func objectPlansToDocs(plans []validation.PropertyPlan) []PropertyDoc {
21 changes: 21 additions & 0 deletions internal/cmd/examplegen/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# examplegen

`examplegen` is a tool that generates examples for manifest objects.

These examples are usually stored in the `examples` directory of
the respective object's package or in the object's package directory itself
inside `examples.yaml` file.

Each object can have its variants and sub-variants.
Example of such distinction for SLO is Prometheus based SLO with
_calendar aligned_ time window.
Prometheus will be the variant and _calendar aligned_ time window
will be the sub-variant.

## Usage

Run from the repository root's Makefile:

```shell
make generate/examples
```
1 change: 1 addition & 0 deletions internal/cmd/examplegen/main.go
Original file line number Diff line number Diff line change
@@ -71,6 +71,7 @@ func getV1alphaExamplesConfigs() []examplesGeneratorConfig {
v1alphaExamples.BudgetAdjustment(),
v1alphaExamples.DataExport(),
v1alphaExamples.RoleBinding(),
v1alphaExamples.Report(),
}
for _, examples := range allExamples {
object := examples[0].GetObject().(manifest.Object)
3 changes: 2 additions & 1 deletion internal/manifest/objects_test.go
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ package manifest

import (
"context"
"os"
"path/filepath"
"testing"

@@ -17,7 +18,7 @@ import (

func TestMain(m *testing.M) {
v1alphaParser.UseStrictDecodingMode = true
m.Run()
os.Exit(m.Run())
}

func TestObjectExamples(t *testing.T) {
2 changes: 2 additions & 0 deletions internal/manifest/v1alpha/examples/agent.go
Original file line number Diff line number Diff line change
@@ -41,6 +41,8 @@ var betaChannelAgents = []v1alpha.DataSourceType{
v1alpha.LogicMonitor,
v1alpha.AzurePrometheus,
v1alpha.GCM,
// In order to use AWS cross-account o11y.
v1alpha.CloudWatch,
}

func (a agentExample) Generate() v1alphaAgent.Agent {
Loading