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

feat: changesets #4253

Merged
merged 16 commits into from
Feb 1, 2025
Merged

feat: changesets #4253

merged 16 commits into from
Feb 1, 2025

Conversation

stuartwdouglas
Copy link
Collaborator

@stuartwdouglas stuartwdouglas commented Jan 31, 2025

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.

@stuartwdouglas stuartwdouglas requested review from a team and alecthomas as code owners January 31, 2025 01:45
@stuartwdouglas stuartwdouglas force-pushed the stuartwdouglas/changeset/squash branch 7 times, most recently from c792fdd to 394de04 Compare January 31, 2025 04:28
@stuartwdouglas stuartwdouglas requested a review from a team as a code owner January 31, 2025 04:28
This was referenced Jan 31, 2025
matt2e and others added 12 commits February 1, 2025 07:09
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
@stuartwdouglas stuartwdouglas force-pushed the stuartwdouglas/changeset/squash branch from dbfb896 to e6ff674 Compare January 31, 2025 20:09
@@ -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, '{}')
Copy link
Collaborator

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.

Comment on lines +15 to +21
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
})
Copy link
Collaborator

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.

Comment on lines +81 to +84
// 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)
Copy link
Collaborator

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.

@stuartwdouglas stuartwdouglas force-pushed the stuartwdouglas/changeset/squash branch from 464306d to 8d25762 Compare January 31, 2025 21:48
@stuartwdouglas stuartwdouglas force-pushed the stuartwdouglas/changeset/squash branch from 8d25762 to 9a78f1d Compare January 31, 2025 21:57
@stuartwdouglas stuartwdouglas force-pushed the stuartwdouglas/changeset/squash branch from 4c5d155 to a28a339 Compare February 1, 2025 01:18
@stuartwdouglas stuartwdouglas enabled auto-merge (squash) February 1, 2025 01:23
@stuartwdouglas stuartwdouglas merged commit 928a6df into main Feb 1, 2025
66 checks passed
@stuartwdouglas stuartwdouglas deleted the stuartwdouglas/changeset/squash branch February 1, 2025 01:30
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