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

ci(): add build.lock #8290

Merged
merged 30 commits into from Sep 20, 2022
Merged

ci(): add build.lock #8290

merged 30 commits into from Sep 20, 2022

Conversation

ShaMan123
Copy link
Contributor

@ShaMan123 ShaMan123 commented Sep 14, 2022

This PR adds a lock file to the repo when build is in progress.
Then tests listen to the lock file to wait for the build to complete and avoid running during the build.

So now we can run tests without checking if build finished. I got frustrated from that.

Changes

  • extracted build logic to scripts/build.mjs
  • scripts/buildLock.mjs - lock logic
  • scripts/buildReporter.mjs - called by build script

Next Up

  • I want to extract logic from scripts/index.js to modules in a dedicated PR so it becomes readable
  • I will use this in the sandbox PR ci(): codesandbox #8135 instead of running rollup API

@github-actions
Copy link
Contributor

github-actions bot commented Sep 14, 2022

Coverage after merging ci-build-lock into master will be

82.44%

Coverage Report<
FileStmtsBranchesFuncsLinesUncovered Lines
HEADER.js54.90%48.15%0%65.22%105, 105, 105, 12, 14, 14, 14, 14, 14, 16–17, 21, 21–22, 22, 22, 24, 24, 26, 28, 30–31
src
   cache.ts97.06%90%100%100%57
   canvas.class.ts93.44%90.36%94.23%95.58%1077, 1077–1078, 1081, 1101, 1101, 1136, 1169–1170, 1198–1199, 1232, 1240, 1350–1351, 1353–1354, 1374–1375, 1533, 1538, 1548, 1552, 485–486, 491, 500, 649–651, 696–697, 761–762, 765, 767, 814–816, 858, 863–864, 892–893
   config.ts77.27%66.67%66.67%84.62%130, 138–140, 151–153
   constants.ts100%100%100%100%
   intersection.class.ts100%100%100%100%
   pattern.class.ts92.19%85.71%100%96.30%110, 116, 127, 136, 88
   point.class.ts100%100%100%100%
   shadow.class.ts95.95%90%100%100%172, 239, 8
   static_canvas.class.ts90.10%83.79%96.70%92.75%1152–1153, 1153, 1153–1154, 1288, 1354–1355, 1358, 1407–1408, 1501, 1516, 1520, 1546–1547, 1576–1577, 1610–1611, 1652–1653, 1656, 1658, 1658, 1658, 1658, 1662, 1662, 1662–1664, 1686–1687, 1728–1729, 1732, 1734, 1734, 1734, 1734, 1738, 1738, 1738–1740, 1813, 1813–1814, 1873, 1875, 1875, 1875, 1875, 1875–1876, 1879–1880, 1880, 1880–1881, 1884, 1884, 1884, 1886, 1889, 1895, 1897–1898, 1898, 1898, 1901–1902, 1902, 1902, 1905, 278–279, 281–282, 284–285, 298–299, 301–302, 616, 642, 698–701, 901
src/brushes
   base_brush.class.ts100%100%100%100%
   circle_brush.class.ts2.99%0%0%3.92%100–101, 103, 105–107, 116, 116, 116, 118, 120, 122–124, 126–129, 137, 144, 146, 26, 31–32, 40–44, 48–52, 59–62, 70–74, 76, 84, 84, 84, 84, 84–85, 87, 87, 87–90, 92
   pattern_brush.class.ts5.26%0%0%8.33%16, 20–23, 25–26, 26, 26–29, 37–38, 40, 44, 55, 55, 55, 63–65, 65, 65, 72–73, 75–76, 76, 80
   pencil_brush.class.ts91.95%85.42%100%93.69%125–126, 155, 155–157, 279, 283, 288–289, 71–72, 87–88
   spray_brush.class.ts2.30%0%0%3.08%102–104, 106–107, 115, 115, 115, 115, 115–116, 118–119, 126–127, 129, 131–135, 144, 148–149, 149, 157, 157, 157–160, 162–165, 169–170, 172, 174–177, 180, 187–188, 190, 192–193, 195, 202–203, 205–206, 209, 209, 216, 216, 220, 25–26, 28–30, 30, 30–32, 36, 45, 52, 59, 66, 73, 80, 92–94
src/color
   color.class.ts91.67%84.51%100%94.44%325–326, 330–331, 334–335, 41, 45, 72–73, 73, 75, 75, 75–76, 78–79
   color_map.ts100%100%100%100%
   constants.ts100%100%100%100%
   index.ts100%100%100%100%
   util.ts100%100%100%100%
src/controls
   control.class.ts90.24%81.48%86.67%97.50%210, 304, 304, 348, 372, 6
   controls.actions.ts76.80%69.20%93.75%80.67%161, 163, 163, 163, 165, 167, 26, 28, 28, 28, 290–293, 321, 323, 330–331, 333, 333–334, 336–337, 341, 373, 375, 382–383, 385, 385–386, 388–389, 393, 421–422, 424, 426, 431, 434, 434, 434–435, 435, 435, 437, 437, 437–438, 438, 438, 441, 441, 441–442, 442, 442, 475–476, 478, 480, 485, 488, 488, 488–489, 489, 489, 491, 491, 491–492, 492, 492, 495, 495, 495–496, 496, 496, 520–522, 528, 528, 528–529, 532–535, 537, 537, 537–539, 539, 539–541, 543, 543, 543–545, 545, 545–546, 551, 551, 551–552, 554, 556–558, 57, 589–590, 592–594, 641–643, 8, 841
   controls.render.ts85.11%84.78%100%84.78%23, 27, 42–49, 58–59, 82, 86
   default_controls.ts94.29%50%100%100%115, 83
src/filters
   2d_backend.class.ts96.43%83.33%100%100%78
   WebGLProbe.ts40%40%57.14%34.78%38–39, 49–53, 61, 64, 66, 66, 66–67, 67, 67–70, 72, 74, 78
   base_filter.class.ts28.90%31.82%36.36%26.17%100–102, 102, 102–103, 112–116, 116, 116–117, 124–125, 125, 125–128, 143, 159, 169–174, 178, 181, 181, 181–184, 184, 184–185, 185, 188–189, 195, 204–205, 210–214, 257–260, 273, 273, 273–274, 276, 292–294, 294, 294, 294, 294–295, 297, 299–300, 306–307, 309–311, 315–316, 318, 322–324, 328, 332, 352, 352, 352–356, 393, 78, 78, 78–79, 79, 79–80, 80, 80–81, 86–89, 89, 89–90, 99

Copy link
Contributor Author

@ShaMan123 ShaMan123 left a comment

Choose a reason for hiding this comment

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

READY

@ShaMan123 ShaMan123 mentioned this pull request Sep 15, 2022
1 task
Copy link
Contributor Author

@ShaMan123 ShaMan123 left a comment

Choose a reason for hiding this comment

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

Refactored to use the rollup cli hooks as they are more reliable
READY

@asturur
Copy link
Member

asturur commented Sep 18, 2022

What is wrong with the rollup js api?
This CI is growing in complexity non stop.

@asturur
Copy link
Member

asturur commented Sep 18, 2022

I read somewhere you were asking to install a certain app to the repo, related to codesandbox.
I checked in settings but the only installed app is the stale bot.
Where did you try to add it?

@ShaMan123
Copy link
Contributor Author

ShaMan123 commented Sep 19, 2022

This CI is growing in complexity non stop.

complex CI means easy DX

ezgif.com-gif-maker.mp4

The rollup API is fine.
The need for a build lock is for testing.
It is annoying and pointless switching tabs to see when the build finished.
With this PR I don't need to. It waits and informs me.
In #8135 I had to use something to inform the sandbox to refresh so I used the rollup API but with the lock file it is much simpler.

@ShaMan123
Copy link
Contributor Author

ShaMan123 commented Sep 19, 2022

I wanted to add the codesandbox ci app for #8135
I tried via links redirecting me to github from codesandbox but I don't think I have permissions.

@asturur
Copy link
Member

asturur commented Sep 19, 2022

oh so give me those links i can add it, probably is an admin thing only

@asturur
Copy link
Member

asturur commented Sep 19, 2022

add changelog i ll merge it afterward

asturur
asturur previously approved these changes Sep 19, 2022
@asturur asturur merged commit 4f481af into master Sep 20, 2022
ShaMan123 added a commit that referenced this pull request Sep 20, 2022
commit 6a868f9
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Tue Sep 20 19:32:39 2022 +0300

    ws fix

commit e18d5c6
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Tue Sep 20 19:26:33 2022 +0300

    rename + ws

commit 7987763
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Tue Sep 20 19:20:56 2022 +0300

    rename

commit 00468ca
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Tue Sep 20 17:38:00 2022 +0300

    Update group.js

commit 2bb6551
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Tue Sep 20 17:37:53 2022 +0300

    Update object.svg_export.ts

commit c716e64
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Tue Sep 20 17:24:39 2022 +0300

    ws

commit 6b2e167
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Tue Sep 20 17:19:32 2022 +0300

    Update object.svg_export.ts

commit 83d3755
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Tue Sep 20 17:14:30 2022 +0300

    imports

commit 2c3ea4c
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Tue Sep 20 17:08:58 2022 +0300

    cleaner impl

commit a4a9013
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Tue Sep 20 16:47:46 2022 +0300

    fix(): group svg export

    expose `createClipPathSVGMarkup` for group to override

commit 6e21b15
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Tue Sep 20 09:45:07 2022 +0300

    cleanup

commit 3001858
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Tue Sep 20 09:36:57 2022 +0300

    fix(): group svg export

commit 4b0130b
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Tue Sep 20 09:08:23 2022 +0300

    Update object.svg_export.ts

commit 44d7b0b
Author: Andrea Bogazzi <andreabogazzi79@gmail.com>
Date:   Tue Sep 20 15:21:04 2022 +0200

    Update CHANGELOG.md

commit 4f481af
Author: Shachar <34343793+ShaMan123@users.noreply.github.com>
Date:   Tue Sep 20 13:41:01 2022 +0300

    ci(): add `build.lock` (#8290)

commit e84f9a0
Author: Shachar <34343793+ShaMan123@users.noreply.github.com>
Date:   Tue Sep 20 06:25:26 2022 +0300

    BREAKING: rename `data-fabric-hiddentextarea` to `data-fabric` (#8292)

    aligns with the rest of the data attribute usage

commit f291945
Author: Shachar <34343793+ShaMan123@users.noreply.github.com>
Date:   Mon Sep 19 13:21:25 2022 +0300

    fix(`WebGLProbe`): regression `enableGLFiltering` config + init bug (#8301)

commit 71193d3
Author: Andrea Bogazzi <andreabogazzi79@gmail.com>
Date:   Mon Sep 19 08:35:26 2022 +0200

    chore() Updating changelog (#8300)

commit d77dc9b
Author: Shachar <34343793+ShaMan123@users.noreply.github.com>
Date:   Mon Sep 19 01:55:39 2022 +0300

    fix(fabric.utils) added missing import in dom_misc (#8293)
@ShaMan123
Copy link
Contributor Author

ShaMan123 commented Sep 21, 2022

@ShaMan123 ShaMan123 deleted the ci-build-lock branch September 21, 2022 04:03
@ShaMan123
Copy link
Contributor Author

see #8135 for links and details

frankrousseau pushed a commit to cgwire/fabric.js that referenced this pull request Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants