-
-
Notifications
You must be signed in to change notification settings - Fork 812
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
PR Workflow Enhancement - Delta Error/Warning Checks #1117
Comments
@tasneemkoushar Please assign me this issue. |
Our policy is to assign no more than two issues to each contributor across all repositories. This way everyone gets a chance to participate in the projects. We sometimes give exceptions for more urgent cases and sometimes we lose track, but the policy stands. You have reached your limit, please wait until your existing issues are closed before requesting more issues. You could unassign yourself from one of the other issues too. |
@noman2002 i wanna contribute on this issue..please asssign me this |
sure @duplixx go ahead. But take this on priority |
yeah sure @tasneemkoushar i'll finish it on priority basis |
Hi @tasneemkoushar, I've made updates to the PR workflow to specifically check only the changed files rather than the entire repository. Could you please review it so that I can proceed to open the PR? |
already fixed the issue and merged can you please close it |
I had to revert the PR. A line you added is causing these PR tests to fail.
Please resubmit Reopening |
@duplixx Please take a look. This needs to be resolved. It's a really valuable feature that would greatly improve our code quality. Do you have any ideas as to why it's failing? It seems like GitHub may be using a different version of a dependency than what you may have installed on your system. |
yeah i am fixing it will push by EOD |
`name: PR Workflow env: jobs:
Graphql-Inspector:
` this should work now |
its merged please close this issue |
We have to revert the PR. It is not being applied to the deltas |
@palisadoes, I've made an attempt to address the issue, but unfortunately, I'm unable to resolve it. I would greatly appreciate assistance from the maintainers, especially @tasneemkoushar in resolving this. |
@duplixx Could this work? Use the |
@duplixx Any updates on this? |
Hey @palisadoes, I am resolving it as soon as possible. I have read the reference you shared. I'll update you by EOD |
@palisadoes I have added for loop for the changed file, Can you check it once.. |
@duplixx Yeah, the loop is fine, go ahead. |
@duplixx I have texted you on Slack, please check. |
Hello @tasneemkoushar @palisadoes, I am proposing a solution to enhance our linting checks and streamline the pull request (PR) workflow. My suggestion is to leverage Husky for this purpose. When we conduct linting checks on selected files through GitHub Actions, it can consume a significant amount of resources and time. Moreover, there's a risk of exceeding the actions time limit. To mitigate these challenges, I propose incorporating Husky into our workflow. Husky is a tool that automates tasks like checking for ESLint and Prettier errors. It executes these checks on precommit, ensuring that errors are addressed immediately. This approach not only prevents the introduction of errors into the codebase but also fixes or flags lint and Prettier issues directly in developers' terminals. By implementing Husky in our workflow, we can proactively identify and resolve issues during the development phase, avoiding disruptions to the PR workflow and ensuring a more efficient and error-free coding process. |
|
@tasneemkoushar can we check it now if this works |
@duplixx Please work with @anwersayeed on this for the next week as @tasneemkoushar will be unavailable. Contact him on Slack to coordinate the testing. |
sure !! |
@anwersayeed can you check the pull request i have raised regarding updated workflow |
Description
Currently, our PR Workflow checks the entire codebase for linting, formatting, and type errors, which can be time-consuming. This enhancement request is to optimize the workflow to only check for errors and warnings in the lines of code that are changed or added in the pull request.
Details:
Linting: Only check for linting errors and warnings in the modified or added lines of code.
Formatting: Run formatting checks only on the changes introduced in the pull request.
Type Errors: Optimize the type-checking process to focus on the modified or added code.
Context
This is the required check - PR Workflow / Check for linting, formatting and type errors (pull_request)
This enhancement aims to speed up the PR review process by narrowing down the scope of checks to the code that is directly affected by the pull request. It helps in quicker identification and resolution of issues related to the changes introduced in the PR.
Expected Behavior
The PR Workflow should only check for linting, formatting, and type errors in the modified or added lines of code.
The workflow should be optimized to reduce processing time for pull requests.
Additional Information
The text was updated successfully, but these errors were encountered: