Skip to content

ArtifactTree::cleanup_finished panics in open source builds #1274

@9999years

Description

@9999years

soft_error! returns Err(err) in open source builds and Ok(err) (maybe?) at FB:

// @oss-disable: let is_open_source = false;
let is_open_source = true; // @oss-enable
if is_open_source {
// We don't log these, and we have no legacy users, and they might not upgrade that often,
// so lets just break open source things immediately.
return Err(err);
}
Ok(err)

This seems pretty clearly designed to preferentially crash open source users ("lets just break open source things immediately").

Well, here's an .unwrap() call:

// NOTE: This shouldn't normally happen?
soft_error!("cleanup_finished_vacant", e, quiet: true).unwrap();

This whole approach seems bad.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions