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: 解决测试工程访问 gl 环境不一致 #2369

Merged
merged 9 commits into from
Mar 29, 2024
Merged

Conversation

lvisei
Copy link
Member

@lvisei lvisei commented Mar 28, 2024

需求背景

  • CI 环境保持一致切换为 ubuntu,提升构建速度
  • headless-gl CONTEXT.getExtension('STACKGL_resize_drawingbuffer') 需要在 macos-latest 平台才可以使用

解决方案

  • jsdom 环境不需要真实 size,移除 resize 逻辑,gl width/height 统一保持一致
  • ubuntu 环境预装 headless-gl 依赖

后续 action

  • 移除 Scene 不规范参数 gl:REGL.Regl,切换 g-device 支持的 mock canvas
  • 测试切换为默认为 g-device,删除 regl test

@lvisei lvisei changed the title chore: 解决测试工程访问 gl 环境不一致 [WIP]chore: 解决测试工程访问 gl 环境不一致 Mar 28, 2024
@lzxue
Copy link
Contributor

lzxue commented Mar 29, 2024

后期Action 彻底去除要等到 regl 下线之后,目前g-device 还有写bug

@lvisei lvisei changed the title [WIP]chore: 解决测试工程访问 gl 环境不一致 ci: 解决测试工程访问 gl 环境不一致 Mar 29, 2024
@lvisei
Copy link
Member Author

lvisei commented Mar 29, 2024

后期Action 彻底去除要等到 regl 下线之后,目前g-device 还有写bug

目前 device webgl 下,除了 mask 还是其他的吗

cc @xiaoiver

@lvisei lvisei merged commit ef4d3dd into master Mar 29, 2024
11 checks passed
@lvisei lvisei deleted the chore/jsdom-test-gl branch March 29, 2024 08:21
@xiaoiver
Copy link
Contributor

后期Action 彻底去除要等到 regl 下线之后,目前g-device 还有写bug

具体是啥 bug

@lzxue
Copy link
Contributor

lzxue commented Mar 29, 2024

后期Action 彻底去除要等到 regl 下线之后,目前g-device 还有写bug

具体是啥 bug

目前我记录了两个 ISSUE #2350 #2361

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants