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

Docker and Cloudbuild fixes #1074

Merged
merged 48 commits into from
Jan 31, 2021
Merged

Docker and Cloudbuild fixes #1074

merged 48 commits into from
Jan 31, 2021

Conversation

wtgee
Copy link
Member

@wtgee wtgee commented Jan 28, 2021

Following changes in panoptes-utils, this cleans up and simplifies the Docker services.

Description

  • Breaking change Python 3.8
  • Breaking change Default service install does not include focuser dependencies.
  • Breaking change Default Docker command is a ipython console with the simulators loaded.
  • Breaking change Docker image only contains limited set of files.
  • Breaking change Directories inside the service image have been simplified for easier mapping onto desired targets on the host. The main top-level directory (i.e. $PANDIR) is now /POCS with other folders nested underneath.
  • Breaking change Removing peas scripts.
  • Simple example script for creating a POCS instance with all simulators.
  • Using threading.excepthook to log errors in camera exposure threads. Addresses some of Unit tests not catching major problems #1047.
  • Updated install script (includes ZSH again).
  • Pointing state is skipped if num_pointing_images==0.
  • Images use gcr.io/panoptes-exp/panoptes-utils as base.
  • Docker files are all contained within docker folder.
  • Docker image has tycho2 10-19 index files for plate-solving.
  • Docker services (config-server and pocs-control) are started in global mode so there can be only one.
  • Config changed to run with simulators out of the box.
  • Removing old scripts and config files.
  • Simplify testing service by removing tests/env file.
  • The default radius for solving images is 15°.

Related Issue

Needed by #1071, #1072

@wtgee wtgee changed the title Cloudbuild fixes Docker and Cloudbuild fixes Jan 28, 2021
@codecov
Copy link

codecov bot commented Jan 28, 2021

Codecov Report

Merging #1074 (f88587a) into develop (cb4d26e) will increase coverage by 1.62%.
The diff coverage is 81.57%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1074      +/-   ##
===========================================
+ Coverage    84.76%   86.39%   +1.62%     
===========================================
  Files           77       78       +1     
  Lines         6531     6600      +69     
  Branches       560      560              
===========================================
+ Hits          5536     5702     +166     
+ Misses         836      733     -103     
- Partials       159      165       +6     
Impacted Files Coverage Δ
src/panoptes/pocs/state/states/default/sleeping.py 62.50% <0.00%> (ø)
src/panoptes/pocs/utils/logger.py 100.00% <ø> (+4.65%) ⬆️
src/panoptes/pocs/state/states/default/pointing.py 75.00% <25.00%> (+17.62%) ⬆️
src/panoptes/pocs/state/machine.py 86.62% <66.66%> (ø)
src/panoptes/pocs/camera/camera.py 84.02% <100.00%> (+1.04%) ⬆️
src/panoptes/pocs/camera/simulator/dslr.py 94.11% <100.00%> (+0.27%) ⬆️
src/panoptes/pocs/core.py 92.64% <100.00%> (-0.07%) ⬇️
src/panoptes/pocs/images.py 93.80% <100.00%> (+0.88%) ⬆️
src/panoptes/pocs/mount/__init__.py 73.84% <100.00%> (ø)
src/panoptes/pocs/observatory.py 89.56% <100.00%> (+10.10%) ⬆️
... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cb4d26e...2f86d64. Read the comment docs.

…tor.

* Fixing incorrect `wait` call on `run` method.
* Shortening some long debug statements.
* Make example config file work with Docker images.
* Skip pointing if `num_pointing_images==0`
* Adding `threading.excepthook` to log errors from camera threads.
… to `0`.

* Only include index file that is needed for tests.
* Pointing doesn't try to correct itself in test.
@wtgee wtgee merged commit 0c220fd into panoptes:develop Jan 31, 2021
@wtgee wtgee deleted the cloudbuild-fixes branch January 31, 2021 16:56
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.

1 participant