Skip to content

Move FromScriptLogger and FromCompositorLogger to seperate file - #29692

Merged
bors-servo merged 1 commit into
servo:masterfrom
atbrakhi:move_loggers_from_constellation
May 3, 2023
Merged

bors-servo merged 1 commit into
servo:masterfrom
atbrakhi:move_loggers_from_constellation

Conversation

@atbrakhi

@atbrakhi atbrakhi commented May 1, 2023 •

Copy link
Copy Markdown
Member

This PR is an attempt to refactor the constellation.rs file in order to make it more readable. Starting the initiative with moving FromScriptLogger and FromCompositorLogger to a separatelogger.rs file as they don't have any major dependency to be in the constellation.rs file itself.

Also noticed a broken link in docs/HACKING_QUICKSTART.md file. Adding the correct url.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #___ (GitHub issue number if applicable)
  • There are tests for these changes OR
  • These changes do not require tests because ___

@atbrakhi atbrakhi self-assigned this May 1, 2023

@mrobinson mrobinson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice work! I have a couple small comments and perhaps logger.rs could be called logging.rs since there are multiple loggers there.

Comment thread components/constellation/lib.rs Resolved
Comment thread components/constellation/lib.rs Resolved
@atbrakhi
atbrakhi marked this pull request as ready for review May 1, 2023 20:11
@atbrakhi
atbrakhi requested a review from mrobinson May 2, 2023 08:58
Constellation seems to have lots of code that could be moved into
seperate files. `FromScriptLogger` and `FromCompositorLogger` seem
to qualify for that.
Moved FromScriptLogger and FromScriptLogger to logger file.
@mrobinson
mrobinson force-pushed the move_loggers_from_constellation branch from 0eb462a to 7d7abef Compare May 2, 2023 15:03

@mrobinson mrobinson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@mrobinson

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 7d7abef has been approved by mrobinson

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 7d7abef with merge 29dd6c3...

bors-servo added a commit that referenced this pull request May 2, 2023
…obinson

Move `FromScriptLogger` and  `FromCompositorLogger`  to seperate file

<!-- Please describe your changes on the following line: -->
This PR is an attempt to refactor the `constellation.rs` file in order to make it more readable.  Starting the initiative with moving `FromScriptLogger` and  `FromCompositorLogger` to a separate`logger.rs` file as they don't have any major dependency to be in the `constellation.rs` file itself.

Also noticed a broken link in `docs/HACKING_QUICKSTART.md` file. Adding the correct url.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
@github-actions

github-actions Bot commented May 2, 2023

Copy link
Copy Markdown

Test results for linux-wpt-layout-2013 from try job (#4862745777):

Flaky unexpected result (13)
  • TIMEOUT [expected OK] /_webgl/conformance/glsl/misc/shader-uniform-packing-restrictions.html (#28103)
    • NOTRUN [expected PASS] subtest: Overall test
  • TIMEOUT [expected OK] /_webgl/conformance/glsl/misc/shader-with-non-reserved-words.html (#16216)
    • NOTRUN [expected PASS] subtest: Overall test
  • OK /_webgl/conformance/state/state-uneffected-after-compositing.html (#26839)
    • FAIL [expected PASS] subtest: WebGL test Handle "close window" event and interrupt signal #3: reading from fbo after composite without rebinding should be green
      at (0, 0) expected: 0,255,0,255 was 0,0,0,0 assert_true: reading from fbo after composite without rebinding should be green
      at (0, 0) expected: 0,255,0,255 was 0,0,0,0 expected true got false
  • TIMEOUT [expected OK] /_webgl/conformance/uniforms/out-of-bounds-uniform-array-access.html (#26225)
    • NOTRUN [expected PASS] subtest: Overall test
  • TIMEOUT [expected OK] /fetch/api/basic/keepalive.any.html (#29536)
  • TIMEOUT [expected OK] /html/anonymous-iframe/worker-cookies.tentative.https.window.html?worker=dedicated_worker
    • TIMEOUT [expected FAIL] subtest: Worker spawned from credentialless iframe can't access global cookies Test timed out
  • OK /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/load-pageshow-events-iframe-contentWindow.html (#28681)
    • FAIL [expected PASS] subtest: load & pageshow events do not fire on contentWindow of <iframe> element created with src='' assert_unreached: load should not be fired Reached unreachable code
  • OK /html/canvas/element/manual/image-smoothing/imagesmoothing.html (#28417)
    • FAIL [expected PASS] subtest: Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) works with fillRect and createPattern(). assert_array_equals: expected property 0 to be 0 but got 255 (expected array [0, 255, 0, 255] got object "255,255,255,255")
    • FAIL [expected PASS] subtest: Test that imageSmoothingEnabled = false (nearest-neighbor interpolation) works with stroke() and createPattern(). assert_array_equals: expected property 1 to be 255 but got 0 (expected array [0, 255, 0, 255] got object "0,0,0,0")
  • OK /html/semantics/embedded-content/media-elements/media_fragment_seek.html (#24114)
    • FAIL [expected PASS] subtest: Video should seek to time specified in media fragment syntax assert_equals: expected 3 but got 0
  • ERROR [expected OK] /html/semantics/scripting-1/the-script-element/defer-script/async-script.html?reload (#29054)
  • OK /html/webappapis/dynamic-markup-insertion/document-write/module-delayed.html (#27659)
    • FAIL [expected PASS] subtest: async document.write in a module assert_true: onload must be called expected true got false
  • TIMEOUT [expected OK] /webmessaging/with-ports/017.html (#24486)
    • TIMEOUT [expected PASS] subtest: origin of the script that invoked the method, about:blank Test timed out
  • TIMEOUT [expected OK] /webmessaging/without-ports/018.html (#24485)
    • TIMEOUT [expected PASS] subtest: origin of the script that invoked the method, javascript: Test timed out
Stable unexpected results that are known to be intermittent (12)
Stable unexpected results (1)
  • TIMEOUT [expected OK] /html/semantics/forms/form-submission-0/reparent-form-during-planned-navigation-task.html
    • TIMEOUT [expected PASS] subtest: reparent-form-during-planned-navigation-task Test timed out

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - checks-github

@mrobinson

Copy link
Copy Markdown
Member

@bors-servo retry

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 7d7abef with merge 7202ee4...

@github-actions

github-actions Bot commented May 3, 2023

Copy link
Copy Markdown

Test results for linux-wpt-layout-2013 from try job (#4872847306):

Flaky unexpected result (15)
  • OK /_mozilla/mozilla/task_queue_throttling.any.html (#22519)
    • FAIL [expected PASS] subtest: Throttling the performance timeline task queue. assert_true: expected true got false
  • TIMEOUT [expected OK] /_webgl/conformance/glsl/misc/shader-uniform-packing-restrictions.html (#28103)
    • NOTRUN [expected PASS] subtest: Overall test
  • TIMEOUT [expected OK] /_webgl/conformance/glsl/misc/shader-with-non-reserved-words.html (#16216)
    • NOTRUN [expected PASS] subtest: Overall test
  • OK /html/browsers/browsing-the-web/navigating-across-documents/empty-iframe-load-event.html (#29066)
    • FAIL [expected PASS] subtest: Check execution order from nested timeout assert_equals: Expected nested setTimeout to run second expected true but got false
    • FAIL [expected PASS] subtest: Check execution order on load handler assert_equals: Expected onload to run first expected false but got true
  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-cross-origin.sub.window.html (#29056)
    • PASS [expected FAIL] subtest: Cross-origin navigation started from unload handler must be ignored
  • OK /html/browsers/browsing-the-web/read-media/pageload-image-in-popup.html (#23849)
    • PASS [expected FAIL] subtest: The document for a standalone media file should have one child in the body.
  • CRASH [expected OK] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-3.html (#24057)
  • TIMEOUT [expected OK] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-2.html (#22154)
    • NOTRUN [expected FAIL] subtest: Check that popups from a sandboxed iframe do not escape the sandbox
  • CRASH [expected OK] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-3.html (#24066)
  • OK /html/semantics/links/links-created-by-a-and-area-elements/htmlanchorelement_noopener.html (#23205)
    • FAIL [expected PASS] subtest: Check that rel=noopener with target=_self does a normal load this.openedWindow.findLink is not a function
  • OK /html/webappapis/dynamic-markup-insertion/document-write/module-delayed.html (#27659)
    • FAIL [expected PASS] subtest: async document.write in a module assert_true: onload must be called expected true got false
  • TIMEOUT [expected OK] /webaudio/the-audio-api/the-analysernode-interface/realtimeanalyser-fft-scaling.html (#21743)
  • ERROR [expected TIMEOUT] /webaudio/the-audio-api/the-audiocontext-interface/audiocontext-suspend-resume.html (#25731)
    • FAIL [expected PASS] subtest: X After close, offlineContext.state is not equal to closed. Got running. assert_true: expected true got false
  • OK [expected TIMEOUT] /webmessaging/with-ports/018.html (#24485)
    • PASS [expected TIMEOUT] subtest: origin of the script that invoked the method, javascript:
  • TIMEOUT [expected OK] /webmessaging/without-ports/017.html (#24486)
    • TIMEOUT [expected PASS] subtest: origin of the script that invoked the method, about:blank Test timed out
Stable unexpected results that are known to be intermittent (7)

@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - checks-github
Approved by: mrobinson
Pushing 7202ee4 to master...

1 similar comment
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - checks-github
Approved by: mrobinson
Pushing 7202ee4 to master...

@bors-servo
bors-servo merged commit 7202ee4 into servo:master May 3, 2023
@github-actions

github-actions Bot commented May 3, 2023

Copy link
Copy Markdown

Test results for linux-wpt-layout-2020 from try job (#4874468455):

Stable unexpected results that are known to be intermittent (8)
  • TIMEOUT [expected PASS] /_mozilla/css/iframe/stacking_context_position_a.html (#15678)
  • OK /_mozilla/mozilla/scrollBy.html (#21321)
    • FAIL [expected PASS] subtest: Ensure that the window.scrollBy function affects scroll position as expected assert_equals: expected 5000 but got 0
  • FAIL [expected PASS] /_mozilla/mozilla/scroll_root.html (#16603)
  • TIMEOUT [expected PASS] /css/css-color/animation/opacity-animation-ending-correctly-002.html (#29216)
  • TIMEOUT [expected FAIL] /css/css-transforms/css-transforms-3d-on-anonymous-block-001.html (#18865)
  • TIMEOUT [expected PASS] /css/css-transforms/transform-input-012.html (#26894)
  • TIMEOUT [expected PASS] /css/css-transforms/transform-input-018.html (#22725)
  • TIMEOUT [expected PASS] /css/css-transforms/transform-table-002.html (#23578)
Stable unexpected results (50)
  • TIMEOUT [expected PASS] /_mozilla/css/inline_block_stacking_context_a.html
  • TIMEOUT [expected PASS] /_mozilla/css/inline_stacking_context.html
  • TIMEOUT [expected FAIL] /_mozilla/mozilla/text-overflow-ellipsis-stacking-context.html
  • CRASH [expected OK] /css/CSS2/linebox/needs-layout-transform.html
  • TIMEOUT [expected PASS] /css/css-transforms/perspective-svg-001.html
  • TIMEOUT [expected FAIL] /css/css-transforms/perspective-untransformable-no-stacking-context.html
  • TIMEOUT [expected PASS] /css/css-transforms/preserve3d-button.html
  • TIMEOUT [expected PASS] /css/css-transforms/preserve3d-pseudo-element.html
  • TIMEOUT [expected FAIL] /css/css-transforms/transform-applies-to-002.xht
  • TIMEOUT [expected PASS] /css/css-transforms/transform-display-001.html
  • TIMEOUT [expected FAIL] /css/css-transforms/transform-generated-001.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-image-001.html
  • TIMEOUT [expected FAIL] /css/css-transforms/transform-inline-001.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-input-001.html
  • TIMEOUT [expected FAIL] /css/css-transforms/transform-input-002.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-input-003.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-input-004.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-input-005.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-input-006.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-input-007.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-input-008.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-input-009.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-input-010.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-input-011.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-input-013.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-input-014.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-input-015.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-input-016.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-input-017.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-input-019.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-table-001.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-table-003.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-table-004.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-table-005.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform-transformable-inline-block.html
  • TIMEOUT [expected FAIL] /css/css-transforms/transform-transformed-caption-contains-fixed-position.html
  • TIMEOUT [expected FAIL] /css/css-transforms/transform-transformed-tbody-contains-fixed-position.html
  • TIMEOUT [expected FAIL] /css/css-transforms/transform-transformed-td-contains-fixed-position.html
  • TIMEOUT [expected FAIL] /css/css-transforms/transform-transformed-tfoot-contains-fixed-position.html
  • TIMEOUT [expected FAIL] /css/css-transforms/transform-transformed-th-contains-fixed-position.html
  • TIMEOUT [expected FAIL] /css/css-transforms/transform-transformed-thead-contains-fixed-position.html
  • TIMEOUT [expected FAIL] /css/css-transforms/transform-transformed-tr-contains-fixed-position.html
  • TIMEOUT [expected FAIL] /css/css-transforms/transform-transformed-tr-percent-height-child.html
  • TIMEOUT [expected PASS] /css/css-transforms/transform3d-image-scale-001.html
  • TIMEOUT [expected FAIL] /css/css-transforms/transform3d-image-scale-002.html
  • CRASH [expected OK] /css/cssom-view/outer-svg.html
  • CRASH [expected ERROR] /css/cssom/caretPositionFromPoint-with-transformation.html
  • TIMEOUT [expected FAIL] /css/filter-effects/filter-cb-abspos-inline-002.html
  • TIMEOUT [expected PASS] /css/filter-effects/filter-cb-abspos-inline-003.html
  • TIMEOUT [expected PASS] /css/filter-effects/filter-region-transformed-child-001.html

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.

3 participants