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

Build race condition #727

Merged
merged 39 commits into from
Feb 5, 2024
Merged

Build race condition #727

merged 39 commits into from
Feb 5, 2024

Conversation

hwikle-lanl
Copy link
Collaborator

Code review checklist:

  • Code is generally sensical and well commented
  • Variable/function names all telegraph their purpose and contents
  • Functions/classes have useful doc strings
  • Function arguments are typed
  • Added/modified unit tests to cover changes.
  • New features have documentation added to the docs.
  • New features and backwards compatibility breaks are noted in the RELEASE.md

lib/pavilion/build_tracker.py Outdated Show resolved Hide resolved
lib/pavilion/build_tracker.py Outdated Show resolved Hide resolved
lib/pavilion/builder.py Outdated Show resolved Hide resolved
@@ -166,7 +166,8 @@ def log_updated(self) -> Union[float, None]:
except OSError:
return None

def create_build_hash(self) -> str:
@property
def build_hash(self) -> str:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cache this to a self._build_hash.

Comment on lines 403 to 408

for test in local_builds:
hash_thread = threading.Thread(
target=test.build,
args=(self.mb_tracker)
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete

Comment on lines 610 to 613
if not self.build_origin_path.exists():
tracker.warn(f"Build origin path {self.build_origin_path} does not exist.",
state=self.status.states.WARNING)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete

@Paul-Ferrell Paul-Ferrell marked this pull request as ready for review February 5, 2024 18:03
@Paul-Ferrell Paul-Ferrell merged commit 57c6d0d into master Feb 5, 2024
7 checks passed
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.

2 participants