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

Enable interpreter screenshot tests #50089

Closed

Conversation

Dosant
Copy link
Contributor

@Dosant Dosant commented Nov 7, 2019

Summary

In scope of #50063 I wanted to add a test for a bugfix in expression pipeline and discovered these interpreter functional tests. Most of those were disabled because of #42842 and I wanted to check it it is possible to enable them back

This pr enables back expression pipeline snapshot and screenshots tests
The assumption is:

  1. Snapshots tests weren't flaky and they can be just enabled back
  2. Since tests were disabled there were 2 chrome bumps + (probably) changes in screenshot service pipeline
    So, hopefully, we can just enable those back.

In case there are flaky, I have a draft pr which enables just snapshot tests #50080

Checklist

For maintainers

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@Dosant
Copy link
Contributor Author

Dosant commented Nov 8, 2019

retest

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@Dosant
Copy link
Contributor Author

Dosant commented Nov 8, 2019

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)


const metricExpr =
`metricVis metric={visdimension 1 format="number"} bucket={visdimension 0}`;
await expectExpression('partial_test_2', metricExpr, context).toMatchScreenshot();
`metricVis metric={visdimension 1 format="number"} bucket={visdimension 0} colorRange={range from=0 to=10000}`;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to specifically pass colorRange, otherwise metricVis renderer failed in runtime

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@Dosant Dosant marked this pull request as ready for review November 8, 2019 16:24
@Dosant Dosant added the review label Nov 8, 2019
@Dosant Dosant requested review from ppisljar and dmlemeshko November 8, 2019 16:25
@Dosant Dosant added the release_note:skip Skip the PR/issue when compiling release notes label Nov 8, 2019
@@ -55,6 +55,7 @@ class Main extends React.Component {

window.renderPipelineResponse = async (context = {}) => {
return new Promise(resolve => {
props.visualizationLoader.destroy(this.chartDiv);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sure previous visualisation is cleaned up before expected error to capture "empty" screenshot

@Dosant
Copy link
Contributor Author

Dosant commented Nov 11, 2019

@elasticmachine merge upstream

@Dosant Dosant requested a review from a team November 11, 2019 08:22
@@ -93,6 +93,7 @@ export const createMetricVisFn = (): ExpressionFunction<
colorRange: {
types: ['range'],
multi: true,
default: '{range from=0 to=10000}',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Had to explicitly setup default here, as if not provided, code fails in runtime in react component:

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@Dosant Dosant force-pushed the dev/enable-interpretator-screenshot-tests branch from 109c5ef to e943839 Compare November 12, 2019 22:38
@elasticmachine
Copy link
Contributor

💔 Build Failed

@Dosant Dosant force-pushed the dev/enable-interpretator-screenshot-tests branch from e943839 to 400cb7d Compare November 13, 2019 09:09
@Dosant Dosant removed the review label Nov 13, 2019
@Dosant
Copy link
Contributor Author

Dosant commented Nov 13, 2019

Closing and will rework because of changes in #46910

@Dosant Dosant closed this Nov 13, 2019
@elasticmachine
Copy link
Contributor

💔 Build Failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes v7.6.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants