Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Conversation

JamesGuthrie
Copy link
Member

@JamesGuthrie JamesGuthrie commented Apr 12, 2022

Description

In 1 we fixed some typos in the reset_metric_retention_period
function which caused the function to break when used with two-step
continuous aggregates.

This change adds tests cases to exercise reset_metric_retention_period
with two-step aggregates.

Merge requirements

Please take into account the following non-code changes that you may need to make with your PR:

  • CHANGELOG entry for user-facing changes
  • [] Updated the relevant documentation

@JamesGuthrie JamesGuthrie force-pushed the jg/fix-typo-idempotent-base branch from 207ce85 to 8521477 Compare April 12, 2022 11:59
@JamesGuthrie JamesGuthrie requested a review from a team as a code owner April 12, 2022 11:59
@JamesGuthrie JamesGuthrie requested review from paulfantom and removed request for a team April 12, 2022 11:59
@JamesGuthrie JamesGuthrie force-pushed the jg/fix-typo-idempotent-base branch from 8521477 to 3c070a3 Compare April 12, 2022 12:03
Copy link
Contributor

@niksajakovljevic niksajakovljevic left a comment

Choose a reason for hiding this comment

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

Can you please add description explaining the problem. It would make it easier for reviewing and it's also better for knowledge sharing.

@@ -33,6 +33,7 @@ We use the following categories for changes:
- Log warning when failing to write response to remote read requests [#1180]
- Fix Promscale running even when some component may fail to start [#1217]
- Fix `promscale_ingest_max_sent_timestamp_milliseconds` metric for tracing [#1270]
- Fix `prom_api.reset_metric_retention_period` on two-step continuous aggregates [#1294]
Copy link
Contributor

Choose a reason for hiding this comment

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

How is this a FIX? It's just a test change

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@niksajakovljevic niksajakovljevic Apr 12, 2022

Choose a reason for hiding this comment

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

Ok. I've found a related extension change here https://github.com/timescale/promscale_extension/pull/180/files
But still let's add some description explaining the problem and the fix. From extension PR it seems there was some problem with SQL script (a wrong variable name) if I am not mistaken

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

Choose a reason for hiding this comment

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

btw I am thinking if we should track extension changes in their own CHANGELOG? Obviously the fix in the extension can be released separately from Promscale connector so I am not sure why are we coupling these two? I am assuming that being able to release extension separately from connector is better (obviously in some cases that will not be possible...). Thoughts?

Copy link
Member Author

Choose a reason for hiding this comment

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

In general I think that you're probably right. Until we get the 0.11.0 and 0.5.0 versions of the connector and the extension out though, their release is tied to one another.

In [1] we fixed some typos in the `reset_metric_retention_period`
function which caused the function to break when used with two-step
continuous aggregates.

This change adds tests cases to exercise `reset_metric_retention_period`
with two-step aggregates.


[1]: timescale/promscale_extension#180
@JamesGuthrie JamesGuthrie force-pushed the jg/fix-typo-idempotent-base branch from 3c070a3 to 6467791 Compare April 12, 2022 12:15
JamesGuthrie added a commit to timescale/promscale_extension that referenced this pull request Apr 12, 2022
A couple of typos in this function broke it when used with two-step
continuous aggregates. A companion change in the promscale repository
adds a test to exercise this code path [1].

[1]: timescale/promscale#1294
@JamesGuthrie JamesGuthrie requested a review from sumerman April 12, 2022 14:18
JamesGuthrie added a commit to timescale/promscale_extension that referenced this pull request Apr 13, 2022
A couple of typos in this function broke it when used with two-step
continuous aggregates. A companion change in the promscale repository
adds a test to exercise this code path [1].

[1]: timescale/promscale#1294
@JamesGuthrie JamesGuthrie merged commit e91daaa into master Apr 13, 2022
@JamesGuthrie JamesGuthrie deleted the jg/fix-typo-idempotent-base branch April 13, 2022 07:44
jgpruitt pushed a commit to timescale/promscale_extension that referenced this pull request Apr 13, 2022
A couple of typos in this function broke it when used with two-step
continuous aggregates. A companion change in the promscale repository
adds a test to exercise this code path [1].

[1]: timescale/promscale#1294
cevian pushed a commit to timescale/promscale_extension that referenced this pull request May 11, 2022
A couple of typos in this function broke it when used with two-step
continuous aggregates. A companion change in the promscale repository
adds a test to exercise this code path [1].

[1]: timescale/promscale#1294
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants