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

start adding build to database before building, surface all build errors to the user #2467

Merged
merged 3 commits into from
Jun 23, 2024

Conversation

syphar
Copy link
Member

@syphar syphar commented Mar 22, 2024

This is the next step towards #1011, should solve #1849, #797 , and unblocks actually running our consistency check (#766) .

Focus for this PR was having a place where to show all build errors, while specifically not showing in-progress builds anywhere. I wanted to keep this PR smaller and focus on one topic, in-progress builds will be handled in a separate PR.

Still, while not specifically needed for just showing errors, I intentionally already create the in-progress records, to see better where things might fail already, partially in the tests that I fixed then, or the interface later on.

I also tried to change the necessary views & APIs in way that they can handle incomplete metadata, as we might have it for certain build errors.

I'm happy to take any feedback. I feel like the design could be improved in some places, which would depend on your feedback. But many places will be changed anyways with the next steps.

I think this definitely needs manual testing for the affected views, perhaps someone also has better ideas around the interface or the changes to the build etc. Also if the surfaced errors are enough so we can start.

Also I'm not sure if the "catch all errors for the user" is the right / best approach, because this might hide for example database errors from us.

next steps after this

( for later PRs)

All of that initially on the "full build" level,
in a later step perhaps per target?

@syphar syphar requested a review from a team as a code owner March 22, 2024 10:27
@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Mar 22, 2024
@syphar syphar force-pushed the in-progress-builds branch 2 times, most recently from 300538a to 93e32f8 Compare March 22, 2024 10:31
@syphar
Copy link
Member Author

syphar commented Mar 22, 2024

@Nemo157 I want to do some more edge case testing on top of the manual testing I already did,

but I would very much appreciate your input at this point.

Generally I believe the change works as I intended.

@syphar
Copy link
Member Author

syphar commented Apr 5, 2024

I just rebased & fixed conflicts.

@Nemo157 any chance for some feedback? ❤️

@syphar syphar force-pushed the in-progress-builds branch 2 times, most recently from d2f6219 to 772852d Compare May 3, 2024 10:42
@syphar syphar removed the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label May 4, 2024
@syphar syphar marked this pull request as draft May 4, 2024 09:25
@syphar
Copy link
Member Author

syphar commented May 4, 2024

Short update: I decided to write some more tests for the changes I made.

When these are finished, I'll try again to get a review.

@syphar syphar marked this pull request as ready for review June 22, 2024 13:05
@syphar syphar self-assigned this Jun 22, 2024
@syphar syphar merged commit 34981d9 into rust-lang:master Jun 23, 2024
16 checks passed
@syphar syphar deleted the in-progress-builds branch June 23, 2024 08:16
@github-actions github-actions bot added the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label Jun 23, 2024
@syphar syphar removed the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label Jun 23, 2024
@jyn514
Copy link
Member

jyn514 commented Jun 23, 2024

oh shit, this is really cool! nice work!

@syphar
Copy link
Member Author

syphar commented Jun 23, 2024

oh shit, this is really cool! nice work!

thanks! ❤️

rustfest impl days gave me some time for the last missing pieces :)

@jyn514
Copy link
Member

jyn514 commented Jun 23, 2024

wait are you at rustfest zurich???? i am in a hotel 15 minutes away let me join you

@syphar
Copy link
Member Author

syphar commented Jun 23, 2024

wait are you at rustfest zurich???? i am in a hotel 15 minutes away let me join you

not too quick, I have to leave in 20 for the day, but will be back tomorrow.

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