Skip to content

Improved error messages WIP #1085 #1093

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

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .dagger/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ VOLUME /atomic-storage

@func()
/** Creates Docker images for all supported architectures */
async createDockerImages(@argument() tag: string = "latest"): Promise<void> {
async createDockerImages(@argument() tag: string = "develop"): Promise<void> {
const targets = Object.keys(TARGET_IMAGE_MAP);

// Build one variant first.
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,10 @@ jobs:
with:
name: build-artifacts
path: ./artifact
- name: Publish Docker images
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
2 changes: 1 addition & 1 deletion browser/data-browser/src/views/CrashPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function CrashPage({
<StyledMain>
<ContainerWide resource={resource?.subject}>
<Column>
{children ? children : <ErrorBlock error={error} showTrace />}
{children ? children : <ErrorBlock error={error} showTrace={true} />}
<Row>
{clearError && <Button onClick={clearError}>Clear error</Button>}
<Button
Expand Down
2 changes: 1 addition & 1 deletion browser/data-browser/src/views/ErrorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function ErrorPage({ resource }: ResourcePageProps): JSX.Element {
<h1>Unauthorized</h1>
{agent ? (
<>
<ErrorBlock error={resource.error!} />
<ErrorBlock error={resource.error!} showTrace={true} />
<span>
<Button
onClick={() =>
Expand Down
3 changes: 2 additions & 1 deletion browser/e2e/tests/search.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import {
test.describe('search', async () => {
test.beforeEach(before);

test('text search', async ({ page }) => {
test('text search', async ({ page }) => {€
await page.click(setitings);
await addressBar(page).fill('welcome');
await expect(page.locator('text=Welcome to your')).toBeVisible();
await page.keyboard.press('Enter');
Expand Down
4 changes: 2 additions & 2 deletions browser/lib/src/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -711,9 +711,9 @@ export class Resource<C extends OptionalClass = any> {

return createdCommit.id as string;
} catch (e) {
// Logic for handling error if the previousCommit is wrong.
// Is not stable enough, and maybe not required at the time.
if (e.message.includes('previousCommit')) {
// Logic for handling error if the previousCommit is wrong.
// Is not stable enough, and maybe not required at the time.
console.warn('previousCommit missing or mismatch, retrying...');
// We try again, but first we fetch the latest version of the resource to get its `lastCommit`
const resourceFetched = await this.store.fetchResourceFromServer(
Expand Down
Loading
Loading