Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRefactor `CommonScriptMsg::Task` to include the name of the task-source #21527
Comments
|
I'd like to give this a shot. |
|
You're welcome to do so. Depending on when #21388 merges, I will either have to rebase off of your work, or you could integrate yours into the The later would require changing Some other methods of For example here, obviously the task-source name could be used directly, instead of doing it via the category: https://github.com/servo/servo/pull/21388/files#diff-eac74606d6d2a29782f87f355cd3e0bbR63 and here too: https://github.com/servo/servo/pull/21388/files#diff-eac74606d6d2a29782f87f355cd3e0bbR89 |
|
Awesome! I'll start working on this in the afternoon. Thanks. |
|
I just finished the integration previous to your commit. I just rebased and started the other instructions. Hopefully will have a pr in the weekend :) |
|
Great, looking forward to it. One thing I didn't mention previously, is that the Also, we still want to keep If anything is unclear, don't hesitate to open a PR with what you have so we can discuss it concretely... |
|
There are some tests failing with this change that I wasn't expecting. I'm digging into them to understand why. |
Add task source name Refactor `CommonScriptMsg::Task` to include `TaskSourceName`. Sorry for the delay, between doing this after work and the time I spent trying to ramp up on the project, it took me a bit longer than I expected. Test still don't pass in local, but they fail the same way on master, so I guess it's ok. I may have forgotten something, I refactored mostly the stuff that the compiler complained about. Please let me know if I missed anything. I tried to dump my thought process on the commit messages, so feel free to go commit by commit to understand context. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21527 - [ ] There are tests for these changes OR - [x] These changes do not require tests because it's mostly refactor, no new behavior added. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21583) <!-- Reviewable:end -->
Add task source name Refactor `CommonScriptMsg::Task` to include `TaskSourceName`. Sorry for the delay, between doing this after work and the time I spent trying to ramp up on the project, it took me a bit longer than I expected. Test still don't pass in local, but they fail the same way on master, so I guess it's ok. I may have forgotten something, I refactored mostly the stuff that the compiler complained about. Please let me know if I missed anything. I tried to dump my thought process on the commit messages, so feel free to go commit by commit to understand context. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21527 - [ ] There are tests for these changes OR - [x] These changes do not require tests because it's mostly refactor, no new behavior added. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21583) <!-- Reviewable:end -->
|
Sorry for commenting in a closed issue, but I didn't know where else I could ask this: I'd like to keep contributing to the project. I was thinking in addressing #21589 and #21590. They seem pretty straight forward, so I don't expect to be blocked there for long. What other issues could I take? (keeping in mind that I do this after work and I can sadly allocate 5-10 hours/week to the project). Thanks! |
|
@AgustinCB thanks for your help. I think you might also want to take a look at those issues: https://github.com/servo/servo/issues?q=is%3Aopen+is%3Aissue+label%3AE-candidate-for-mentoring and https://github.com/servo/servo/issues?q=is%3Aopen+is%3Aissue+label%3AB-interesting-project I personally recommend this one, #17442 it looks like fun and has a mentor available |
|
@AgustinCB you might be interested in #21481 as well, which is similar to #21590 |
Message enum is at:
servo/components/script/script_runtime.rs
Line 54 in da36740
Name of task sources is found at:
servo/components/script/task_source/mod.rs
Line 24 in da36740
The
CommonScriptMsg::Taskshould include the task-source name.Follow up on #21388
See 263ad79#r212802334