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

build: dont prefer ts for cypress tests #10161

Merged
merged 1 commit into from
Jun 25, 2020
Merged

Conversation

ktmud
Copy link
Member

@ktmud ktmud commented Jun 25, 2020

SUMMARY

Cypress tests don't need to be TypeScript

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A

TEST PLAN

Check CI.

Tested in ktmud#153

@ktmud ktmud requested a review from etr2460 June 25, 2020 07:56
Copy link
Member

@etr2460 etr2460 left a comment

Choose a reason for hiding this comment

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

I feel like we should still prefer TS for all files (tests or not) but not force tests to be TS right away. What do you think? Note that this workflow doesn't block merging, this is an optional check

On a side note, I think the action that makes comments is broken by github changing their API. I need to figure out a fix...

}
echo ::set-output name=js_files_added::$(js_files_added)

- if: steps.check.outputs.js_files_added
Copy link
Member

Choose a reason for hiding this comment

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

i think this might need to still have the string comparison? how did you test this?

Copy link
Member

Choose a reason for hiding this comment

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

oh, i see your link to your fork. nevermind

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, fortunately empty string is also considered falsy in GitHub actions.

@ktmud
Copy link
Member Author

ktmud commented Jun 25, 2020

I feel like we should still prefer TS for all files (tests or not) but not force tests to be TS right away. What do you think? Note that this workflow doesn't block merging, this is an optional check

I think it's OK to not require TypeScript for Cypress tests, as they seldom need typing. It does block merging, see: #10158 (because of the broken comment action, I guess).

Copy link
Member

@etr2460 etr2460 left a comment

Choose a reason for hiding this comment

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

stamping with plans to add TS support to cypress's build config then to add back later

@ktmud ktmud merged commit ffefcd9 into apache:master Jun 25, 2020
ktmud added a commit to ktmud/superset that referenced this pull request Jun 29, 2020
Follow up apache#10161 :

- Enable TypeScript for Cypress
- Convert support files to TS
- Convert an example test (dashboard/filter.test.js) to TS
- Upgrade TypeScript for both `cypress-base` and `superset-frontend`
- Reenable Prefer TS check for `cypress-base`
@ktmud ktmud deleted the prefer-ts branch November 10, 2020 04:09
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.37.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/M 🚢 0.37.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants