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

Deleted files #291

Merged

Conversation

ishowvel
Copy link
Contributor

Resolves #270

@ishowvel
Copy link
Contributor Author

https://github.com/ishowvel/text-conversation-rewards/actions/runs/13540880010
tests should be passing, they pass locally and here too

@ishowvel
Copy link
Contributor Author

tests are becoming more and more unreliable because of the timeouts, they fail in both of my pull requests when they should have passed

@ishowvel ishowvel marked this pull request as ready for review February 26, 2025 10:04
@ubiquity-os-beta ubiquity-os-beta bot marked this pull request as draft February 26, 2025 10:04
Copy link
Contributor

@ubiquity-os-beta ubiquity-os-beta bot left a comment

Choose a reason for hiding this comment

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

The current implementation only skips counting deleted files but does not subtract their line counts from the total as specified in the issue. The code needs to be modified to: 1) Track the total lines removed from deleted files separately 2) Subtract those lines from the final line count calculation 3) Consider different weighting for deleted cypress test files vs application code. Please update the implementation to fully address these requirements.

@ishowvel
Copy link
Contributor Author

ishowvel commented Feb 26, 2025

The current implementation only skips counting deleted files but does not subtract their line counts from the total as specified in the issue. The code needs to be modified to: 1) Track the total lines removed from deleted files separately 2) Subtract those lines from the final line count calculation 3) Consider different weighting for deleted cypress test files vs application code. Please update the implementation to fully address these requirements.

@gentlementlegen total line count was made from adding the deletions of deleted files earlier, this implementation just skips adding the deleted files diff to avoid adding and then subtracting

edit: maybe this far-fetched but the bot could check if the requested changes message has been replied to; if it has, the bot could use the replies "counter argument" and review again. if the review fails again the bot should also say that "if you havent found this result satisfactory, please contact codeowners"

@ishowvel
Copy link
Contributor Author

will qa in a bit

@0x4007
Copy link
Member

0x4007 commented Feb 26, 2025

will qa in a bit

If you can show QA that will allow us to approve this easily.

@0x4007
Copy link
Member

0x4007 commented Feb 26, 2025

The current implementation only skips counting deleted files but does not subtract their line counts from the total as specified in the issue.

It seems like if you passed in the entire file as context (not just the diff) it would be able to understand the full picture and possibly let this pass.

@gentlementlegen
Copy link
Member

Also, I would like some unit tests with this pull-request.

@ishowvel
Copy link
Contributor Author

The current implementation only skips counting deleted files but does not subtract their line counts from the total as specified in the issue.

It seems like if you passed in the entire file as context (not just the diff) it would be able to understand the full picture and possibly let this pass.

Passing full files would eat up the context length really quickly, if a single log is edited on a file and the entire file gets submitted as context. That would be a waste in my opinion
@gentlementlegen what do you think?

@ishowvel
Copy link
Contributor Author

Also, I would like some unit tests with this pull-request.

Will add tomorrow, it's past midnight right now

@0x4007
Copy link
Member

0x4007 commented Feb 27, 2025

The current implementation only skips counting deleted files but does not subtract their line counts from the total as specified in the issue.

It seems like if you passed in the entire file as context (not just the diff) it would be able to understand the full picture and possibly let this pass.

Passing full files would eat up the context length really quickly, if a single log is edited on a file and the entire file gets submitted as context. That would be a waste in my opinion
@gentlementlegen what do you think?

I agree but I'm not sure how else to solve for this. Maybe it can request to see more of the file after internal reasoning step. Chain of thought @shiv810 rfc

@shiv810
Copy link
Contributor

shiv810 commented Feb 27, 2025

I agree but I'm not sure how else to solve for this. Maybe it can request to see more of the file after internal reasoning step. Chain of thought @shiv810 rfc

We could create a rolling code viewer, like the one used in swe-agent for code parsing. This would let us adjust the prompt step by step (CoT) as we go through the code. Another simpler option might be to look at one file(with diff) at a time, especially if the file is large. We could load as many relevant pages(file with diffs) as needed, remove unused pages, and replace them with new ones as we progress.

@0x4007
Copy link
Member

0x4007 commented Feb 27, 2025

I really hope that we can use an existing open source setup instead of reinventing the wheel.

@Keyrxng
Copy link
Contributor

Keyrxng commented Feb 27, 2025

I really hope that we can use an existing open source setup instead of reinventing the wheel.

ubiquity-os-marketplace/daemon-pull-review#15 - Let's start here?

I've suggested LangChain before and was told no, although they have a lot of those types of tools that we could use very easily

Copy link
Contributor

@ishowvel, you have used 3 of 3 available deadline extensions. Please provide an update on your progress.

@ishowvel
Copy link
Contributor Author

@ishowvel, you have used 3 of 3 available deadline extensions. Please provide an update on your progress.

Giving an exam today, will add tests and provide qa as soon as I come back

@0x4007
Copy link
Member

0x4007 commented Feb 28, 2025

You'll need to self unassign before you get disqualified.

@ishowvel
Copy link
Contributor Author

@ishowvel, you have used **3** of **3** available deadline extensions. Please provide an update on your progress.

on a side note, isnt the bot supposed to notify on each use of a deadline extension, or is this intentional?

@ishowvel
Copy link
Contributor Author

knip shouldnt fail as "GithubDiff" is used in both "process.issue.test.ts" and "review-incentivizer.test.ts", so its not an unused export

@gentlementlegen
Copy link
Member

@ishowvel, you have used **3** of **3** available deadline extensions. Please provide an update on your progress.

on a side note, isnt the bot supposed to notify on each use of a deadline extension, or is this intentional?

The top ups are based on the time since you started the task so it is intentional.

knip shouldnt fail as "GithubDiff" is used in both "process.issue.test.ts" and "review-incentivizer.test.ts", so its not an unused export

I don't think tests files are referenced as en entry point for knip which is probably why it considers that this file is not used.

@ishowvel
Copy link
Contributor Author

ishowvel commented Mar 1, 2025

knip shouldnt fail as "GithubDiff" is used in both "process.issue.test.ts" and "review-incentivizer.test.ts", so its not a u

@gentlementlegen heres the qa, i decided against removing the row with the empty changes as it wouldnt make sense at least in my opinion

@ishowvel ishowvel marked this pull request as ready for review March 1, 2025 07:21
@0x4007
Copy link
Member

0x4007 commented Mar 1, 2025

I just realized but the precheck said thumbs up and requested changes. It needs to clear its previous state after running again.

Copy link
Member

@0x4007 0x4007 left a comment

Choose a reason for hiding this comment

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

QA seems fine

Copy link
Member

@gentlementlegen gentlementlegen left a comment

Choose a reason for hiding this comment

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

Changes seem fine.

@gentlementlegen gentlementlegen merged commit 1fb1ea1 into ubiquity-os-marketplace:development Mar 1, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Review Incentives: Deleted Files
5 participants