+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

ci: run ci using the version on main #3076

Merged
merged 2 commits into from
Aug 17, 2022
Merged

Conversation

ematipico
Copy link
Contributor

Summary

This PR replace the usage of setup-rome, with the usage of the current version we have on main.

The main reason for changing this, is that we don't have enough occasions to dogfooding rome, and this change will help use doing so. Now we are starting to have a bunch JS code that we can use as guinea big.

While doing so, I found a bunch of false positives. There's also some cases that we haven't considered:

app.on(res, req) {
	req.something;
}

In this snippet res is not used, and the suggested fix asks to remove res. Not sure if we should ignore the case or leave it as is.

Test Plan

The CI should pass

@ematipico ematipico requested a review from a team August 17, 2022 13:53
@ematipico ematipico temporarily deployed to aws August 17, 2022 13:53 Inactive
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Aug 17, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 560a0de
Status: ✅  Deploy successful!
Preview URL: https://3f976348.tools-8rn.pages.dev
Branch Preview URL: https://chore-ci-with-current-rome.tools-8rn.pages.dev

View logs

@github-actions
Copy link

github-actions bot commented Aug 17, 2022

Copy link
Contributor

@MichaReiser MichaReiser left a comment

Choose a reason for hiding this comment

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

Thank you.

One thing to keep in mind is that this will increase the size of any formatter diff because there are now even more changes (and changes to the playground may cause formatter conflicts as well)

Copy link
Contributor

@leops leops left a comment

Choose a reason for hiding this comment

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

Currently there's a test-cli job in the pull_request workflow that does more or less the same thing (build and run the CLI on the editors and website directories) but is marked as continue-on-error, I guess it can be removed now.
Also we should probably change the trigger for the pull_request_js workflow now to include the Rust codebase as well, to ensure the JS code doesn't go out of sync again when we change the analyzer or formatter (unfortunately it makes the Rust / JS workflow separation somewhat meaningless)

@ematipico ematipico temporarily deployed to aws August 17, 2022 15:26 Inactive
@ematipico
Copy link
Contributor Author

Unfortunately it makes the Rust / JS workflow separation somewhat meaningless

Are you up to merge pull_request_js and pull_request and run JS and Rust test in one single workflow action? I think we're arrived at that point now...

@leops
Copy link
Contributor

leops commented Aug 17, 2022

Unfortunately it makes the Rust / JS workflow separation somewhat meaningless

Are you up to merge pull_request_js and pull_request and run JS and Rust test in one single workflow action? I think we're arrived at that point now...

I don't think I would completely merge the existing workflows, I think we could still have 3 pull_request_rs, pull_request_js and pull_request workflows, and redistribute the various jobs to the correct workflow

@ematipico
Copy link
Contributor Author

Unfortunately it makes the Rust / JS workflow separation somewhat meaningless

Are you up to merge pull_request_js and pull_request and run JS and Rust test in one single workflow action? I think we're arrived at that point now...

I don't think I would completely merge the existing workflows, I think we could still have 3 pull_request_rs, pull_request_js and pull_request workflows, and redistribute the various jobs to the correct workflow

OK, another PR for that :) better to not lose focus. Cheers

@ematipico ematipico merged commit e71739f into main Aug 17, 2022
@ematipico ematipico deleted the chore/ci-with-current-rome branch August 17, 2022 16:04
IWANABETHATGUY pushed a commit to IWANABETHATGUY/tools that referenced this pull request Aug 22, 2022
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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载