Compare commits

...
Author SHA1 Message Date
Adw8 d6a8f8e080 Add logs 2024-09-13 12:59:42 +05:30
telackey f1fdc48aaa Work around this bug: https://github.com/python/cpython/pull/14064 (#941)
Lint Checks / Run linter (push) Successful in 38s
Publish / Build and publish (push) Successful in 1m30s
Smoke Test / Run basic test suite (push) Successful in 4m18s
Webapp Test / Run webapp test suite (push) Successful in 5m2s
Deploy Test / Run deploy test suite (push) Successful in 5m20s
Fixturenet-Laconicd-Test / Run Laconicd fixturenet and Laconic CLI tests (push) Successful in 19m7s
K8s Deploy Test / Run deploy test suite on kind/k8s (push) Failing after 30s
Database Test / Run database hosting test on kind/k8s (push) Failing after 32s
Container Registry Test / Run contaier registry hosting test on kind/k8s (push) Failing after 34s
External Stack Test / Run external stack test suite (push) Failing after 31s
Otherwise we sometimes see errors like:

```
cerc-webapp-deployer:   File "/root/.shiv/laconic-so_0f937aa98c2748ef9af8585d6f441dbc01546ace0d6660cbb159d1e5040aeddf/site-packages/stack_orchestrator/deploy/webapp/deploy_webapp_from_registry.py", line 671, in command
cerc-webapp-deployer:     shutil.rmtree(tempdir)
cerc-webapp-deployer:   File "/usr/lib/python3.10/shutil.py", line 725, in rmtree
cerc-webapp-deployer:     _rmtree_safe_fd(fd, path, onerror)
cerc-webapp-deployer:   File "/usr/lib/python3.10/shutil.py", line 681, in _rmtree_safe_fd
cerc-webapp-deployer:     onerror(os.unlink, fullname, sys.exc_info())
cerc-webapp-deployer:   File "/usr/lib/python3.10/shutil.py", line 679, in _rmtree_safe_fd
cerc-webapp-deployer:     os.unlink(entry.name, dir_fd=topfd)
cerc-webapp-deployer: FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.extra'
```

Reviewed-on: #941
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2024-08-28 23:17:13 +00:00
2 changed files with 6 additions and 2 deletions

No files matched your search

@@ -623,12 +623,16 @@ def command( # noqa: C901
main_logger.log(
f"Directing deployment logs to: {run_log_file_path}"
)
main_logger.log(f"Attempting to open: {run_log_file_path}")
run_log_file = open(run_log_file_path, "wt")
main_logger.log("After opening log file")
run_reg_client = LaconicRegistryClient(
laconic_config, log_file=run_log_file
)
main_logger.log("After running registry client")
build_logger = TimedLogger(run_id, run_log_file)
main_logger.log("After running timed logger")
build_logger.log("Processing ...")
process_app_deployment_request(
ctx,
@@ -668,4 +672,4 @@ def command( # noqa: C901
main_logger.log("UNCAUGHT ERROR:" + str(e))
raise e
finally:
shutil.rmtree(tempdir)
shutil.rmtree(tempdir, ignore_errors=True)
@@ -172,4 +172,4 @@ def command(
# Send the request
laconic.publish(deployment_request)
finally:
shutil.rmtree(tempdir)
shutil.rmtree(tempdir, ignore_errors=True)