-
Notifications
You must be signed in to change notification settings - Fork 8
feat(site): prebuild trajectory share urls #17
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
7fec6ae
feat(site): prebuild trajectory share urls
liangfung 4c99e68
update
liangfung 517ab6b
update
liangfung 9080b00
update
liangfung 4b2d8ee
update
liangfung ffd2cb4
update
liangfung f708e58
update
liangfung 55546cc
add tasks.json
liangfung File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove, do not use pre-push |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/usr/bin/env sh | ||
|
|
||
| ./site/scripts/check-missing-trajectory-id.ts |
1 change: 1 addition & 0 deletions
1
...6-03-08__16-54-33/jj_abandon_wip_revisions_revsets__cg3D8X7/agent/pochi/trajectory-id.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 1avj7FtT |
1 change: 1 addition & 0 deletions
1
jobs/2026-03-08__16-54-33/jj_amend_working_copy__EcZoXvo/agent/pochi/trajectory-id.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ZpkJoMPs |
1 change: 1 addition & 0 deletions
1
jobs/2026-03-08__16-54-33/jj_bookmark_create_and_move__mCVNvnG/agent/pochi/trajectory-id.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ljyVNHyr |
1 change: 1 addition & 0 deletions
1
jobs/2026-03-11__16-18-23/jj_git_export_patch_series__sRj4MQy/agent/pochi/trajectory-id.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| GbY4G3Od |
1 change: 1 addition & 0 deletions
1
...6-03-11__16-18-23/jj_template_changelog_and_releas__LzSiuCH/agent/pochi/trajectory-id.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 0vlY8QN5 |
1 change: 1 addition & 0 deletions
1
...2026-03-11__16-18-23/jj_template_ci_build_metadata__MBZLj8G/agent/pochi/trajectory-id.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| XrjDASVY |
1 change: 1 addition & 0 deletions
1
...026-03-11__16-18-23/jj_template_patch_email_bundle__9Z6XUtH/agent/pochi/trajectory-id.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ZAyJoMPs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| #!/usr/bin/env bun | ||
|
|
||
| import fs from 'fs/promises'; | ||
| import path from 'path'; | ||
|
|
||
| type TaskTrialEntry = { | ||
| job_name?: unknown; | ||
| trial_name?: unknown; | ||
| trajectory_id?: unknown; | ||
| }; | ||
|
|
||
| async function main() { | ||
| const tasksPath = path.join(process.cwd(), 'site', 'tasks.json'); | ||
| const raw = await fs.readFile(tasksPath, 'utf-8'); | ||
| const parsed = JSON.parse(raw) as unknown; | ||
|
|
||
| if (typeof parsed !== 'object' || parsed === null) { | ||
| throw new Error(`Invalid tasks.json format: ${tasksPath}`); | ||
| } | ||
|
|
||
| const tasks = parsed as Record<string, unknown>; | ||
| const missing: Array<{ taskName: string; jobName: string; trialName: string }> = []; | ||
|
|
||
| for (const [taskName, entries] of Object.entries(tasks)) { | ||
| if (!Array.isArray(entries)) { | ||
| continue; | ||
| } | ||
|
|
||
| for (const entry of entries) { | ||
| if (typeof entry !== 'object' || entry === null) { | ||
| continue; | ||
| } | ||
|
|
||
| const trial = entry as TaskTrialEntry; | ||
| const jobName = typeof trial.job_name === 'string' ? trial.job_name : 'unknown-job'; | ||
| const trialName = typeof trial.trial_name === 'string' ? trial.trial_name : 'unknown-trial'; | ||
| const trajectoryId = typeof trial.trajectory_id === 'string' ? trial.trajectory_id.trim() : ''; | ||
|
|
||
| if (!trajectoryId) { | ||
| missing.push({ taskName, jobName, trialName }); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| if (missing.length > 0) { | ||
| console.error(`Missing trajectory_id in ${missing.length} trial(s):`); | ||
| const maxLines = 100; | ||
| for (const item of missing.slice(0, maxLines)) { | ||
| console.error(`- ${item.taskName}: ${item.jobName}/${item.trialName}`); | ||
| } | ||
| if (missing.length > maxLines) { | ||
| console.error(`... and ${missing.length - maxLines} more`); | ||
| } | ||
| process.exit(1); | ||
| } | ||
|
|
||
| console.log('All trials have trajectory_id.'); | ||
| } | ||
|
|
||
| main().catch((error) => { | ||
| console.error(error instanceof Error ? error.message : String(error)); | ||
| process.exit(1); | ||
| }); |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
remove, do not make it part of pre-push