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

fix(runtime-core): ensure jobs are in the correct order #7748

Merged
merged 1 commit into from Oct 21, 2023

Conversation

skirtles-code
Copy link
Contributor

Fixes #7576.

There is an existing PR to fix this issue, #7622, but I believe it introduces some new problems. The changes to findInsertionIndex() that I'm proposing here are quite different to the changes in that PR, so I decided it was better to open a new PR rather than just adding review feedback to the existing PR.

The additions to the first test case are exactly the same as in #7622, confirming that this fix also fixes the original problem. I've then added an extra test case, checking some of the edge cases that #7622 misses.

Whether the new job is pre: true doesn't affect the insertion point. Either way, the job should be inserted after any pre jobs with the same id. If there is a job with the same id without pre: true (there can only be one in the active part of the queue) then the insertion point should be before that job.

@sxzz
Copy link
Member

sxzz commented Feb 22, 2023

/ecosystem-ci run

@vue-bot
Copy link

vue-bot commented Feb 22, 2023

📝 Ran ecosystem CI: Open

suite result
nuxt ✅ success
pinia ✅ success
router ✅ success
test-utils ✅ success
vite-plugin-vue ✅ success
vitepress ✅ success
vue-macros ✅ success
vueuse ✅ success

@edison1105
Copy link
Member

LGTM

@edison1105 edison1105 added the ❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. label Oct 18, 2023
@edison1105
Copy link
Member

/ecosystem-ci run

@vue-bot
Copy link

vue-bot commented Oct 20, 2023

📝 Ran ecosystem CI: Open

suite result latest scheduled
language-tools failure success
nuxt failure success
pinia failure success
quasar failure failure
router failure success
test-utils failure success
vant failure success
vite-plugin-vue failure success
vitepress failure success
vue-i18n failure success
vue-macros failure failure
vuetify failure success
vueuse failure success
vue-simple-compiler success success

@yyx990803
Copy link
Member

yyx990803 commented Oct 20, 2023

@edison1105 ecosystem-ci failures are due to the branch being very outdated. I just force rebased.

@github-actions
Copy link

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 85.9 kB (+22 B) 32.7 kB (+21 B) 29.5 kB (-28 B)
vue.global.prod.js 132 kB (+22 B) 49.4 kB (+13 B) 44.3 kB (+50 B)

Usages

Name Size Gzip Brotli
createApp 47.9 kB (+22 B) 18.9 kB (+13 B) 17.2 kB (+60 B)
createSSRApp 50.7 kB (+22 B) 20 kB (+13 B) 18.2 kB (+7 B)
defineCustomElement 50.3 kB (+22 B) 19.7 kB (+13 B) 18 kB (+83 B)
overall 61.3 kB (+22 B) 23.7 kB (+13 B) 21.5 kB (-51 B)

@yyx990803
Copy link
Member

/ecosystem-ci run

@vue-bot
Copy link

vue-bot commented Oct 20, 2023

📝 Ran ecosystem CI: Open

suite result latest scheduled
language-tools success success
nuxt success success
pinia success success
quasar success success
router success success
test-utils success success
vant failure success
vite-plugin-vue success success
vitepress success success
vue-i18n success success
vue-macros failure failure
vuetify success success
vueuse success success
vue-simple-compiler success success

@edison1105
Copy link
Member

@edison1105 ecosystem-ci failures are due to the branch being very outdated. I just force rebased.

I've looked into #7576 in-depth before and this PR is correct

@yyx990803 yyx990803 merged commit a8f6638 into vuejs:main Oct 21, 2023
11 checks passed
lumozx pushed a commit to lumozx/core that referenced this pull request Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf.
Projects
Development

Successfully merging this pull request may close these issues.

Watchers no longer fire in the order they're defined from v3.2.38
5 participants