-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: changesets #4253
feat: changesets #4253
Conversation
c792fdd
to
394de04
Compare
small updates in todos tmp: changes fixes some progress kinda works getting closer progress it deploys some work tmp changes more tmp more work fix: more stuff minor lint routing needs work logs test fixes update frequency
dbfb896
to
e6ff674
Compare
@@ -28,6 +29,7 @@ test('send cron request', async ({ page }) => { | |||
test('submit cron form using ⌘+⏎ shortcut', async ({ page }) => { | |||
await navigateToDecl(page, 'cron', 'thirtySeconds') | |||
|
|||
await setVerbRequestBody(page, '{}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stuartwdouglas I think this is why the test was failing before. This bug probably existed before your PR btw, we just never hit the failure case here. Basically it was pressing the keyboard shortcut before the page had fully loaded and the request body was available. This should fix that.
const readyModules = modules.filter((module) => { | ||
const moduleElement = document.querySelector(`li#module-tree-module-${module}`) | ||
if (!moduleElement) return false | ||
|
||
const greenDot = moduleElement.querySelector('.bg-green-400') | ||
return greenDot !== null | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will make the "ready check" make sure the green dots are visible for all the modules we're starting.
// First subscribe to new events to avoid missing any | ||
events := make(chan *buildenginepb.EngineEvent, 64) | ||
u.engine.EngineUpdates.Subscribe(events) | ||
defer u.engine.EngineUpdates.Unsubscribe(events) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is just better before we play the history. I'm not sure if this was part of the blue dots showing when the terminal is happy, but thought I'd point it out.
464306d
to
8d25762
Compare
8d25762
to
9a78f1d
Compare
4c5d155
to
a28a339
Compare
This commit introduces the concept of a changeset. All modules are now deployed in a single changeset, which has removed some of the ordering invariants around deployments that we previously had with dependencies. For now this has been worked around with a 'retry until it works' approach, however significant further changes are required to get changesets to the desired end state.