Skip to content

Commit

Permalink
Merge branch 'master' into rj/readonly-stop-message-info
Browse files Browse the repository at this point in the history
  • Loading branch information
Raalsky authored Dec 27, 2022
2 parents 1b2517a + cbabe8e commit 9453fd6
Show file tree
Hide file tree
Showing 136 changed files with 459 additions and 51 deletions.
32 changes: 32 additions & 0 deletions .github/actions/job-notify/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Notify about job status
description: Send Slack channel notification about job finish status
inputs:
slack-webhook:
description: "A Slack Webhook to post a notification"
required: true
job-status:
description: "Finish status of a preceding job"
required: true


runs:
using: "composite"
steps:
- name: Notify about failure
uses: 8398a7/action-slack@v3
if: ${{ inputs.job-status != 'success' }}
env:
SLACK_WEBHOOK_URL: ${{ inputs.slack-webhook }}
with:
status: failure
fields: repo,message,author,job,eventName,took

- name: Notify about success
uses: 8398a7/action-slack@v3
if: ${{ inputs.job-status == 'success' }}
env:
SLACK_WEBHOOK_URL: ${{ inputs.slack-webhook }}
with:
status: success
fields: repo,message,author,job,eventName,took
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Notify
name: Notify about workflow status
description: Send Slack channel notification about workflow finish status
inputs:
slack-webhook:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ jobs:
ref: ${{ github.event.client_payload.pull_request.head.ref }}

- name: Notify
uses: ./.github/actions/notify
uses: ./.github/actions/workflow-notify
with:
slack-webhook: ${{ secrets.E2E_REGULAR_SLACK_WEBHOOK }}

Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ jobs:
ref: ${{ github.event.client_payload.pull_request.head.ref }}

- name: Notify
uses: ./.github/actions/notify
uses: ./.github/actions/job-notify
with:
slack-webhook: ${{ secrets.E2E_INTEGRATIONS_SLACK_WEBHOOK }}
job-status: ${{ needs.fastai.result }}

kedro:
env:
Expand Down Expand Up @@ -98,9 +99,10 @@ jobs:
ref: ${{ github.event.client_payload.pull_request.head.ref }}

- name: Notify
uses: ./.github/actions/notify
uses: ./.github/actions/job-notify
with:
slack-webhook: ${{ secrets.E2E_INTEGRATIONS_SLACK_WEBHOOK }}
job-status: ${{ needs.kedro.result }}

prophet:
env:
Expand Down Expand Up @@ -143,9 +145,10 @@ jobs:
ref: ${{ github.event.client_payload.pull_request.head.ref }}

- name: Notify
uses: ./.github/actions/notify
uses: ./.github/actions/job-notify
with:
slack-webhook: ${{ secrets.E2E_INTEGRATIONS_SLACK_WEBHOOK }}
job-status: ${{ needs.prophet.result }}

keras:
env:
Expand Down Expand Up @@ -188,9 +191,10 @@ jobs:
ref: ${{ github.event.client_payload.pull_request.head.ref }}

- name: Notify
uses: ./.github/actions/notify
uses: ./.github/actions/job-notify
with:
slack-webhook: ${{ secrets.E2E_INTEGRATIONS_SLACK_WEBHOOK }}
job-status: ${{ needs.keras.result }}

lightning:
env:
Expand Down Expand Up @@ -234,9 +238,10 @@ jobs:
ref: ${{ github.event.client_payload.pull_request.head.ref }}

- name: Notify
uses: ./.github/actions/notify
uses: ./.github/actions/job-notify
with:
slack-webhook: ${{ secrets.E2E_INTEGRATIONS_SLACK_WEBHOOK }}
job-status: ${{ needs.lightning.result }}

huggingface:
env:
Expand Down Expand Up @@ -280,9 +285,10 @@ jobs:
ref: ${{ github.event.client_payload.pull_request.head.ref }}

- name: Notify
uses: ./.github/actions/notify
uses: ./.github/actions/job-notify
with:
slack-webhook: ${{ secrets.E2E_INTEGRATIONS_SLACK_WEBHOOK }}
job-status: ${{ needs.huggingface.result }}

zenml:
env:
Expand Down Expand Up @@ -326,6 +332,7 @@ jobs:
ref: ${{ github.event.client_payload.pull_request.head.ref }}

- name: Notify
uses: ./.github/actions/notify
uses: ./.github/actions/job-notify
with:
slack-webhook: ${{ secrets.E2E_INTEGRATIONS_SLACK_WEBHOOK }}
job-status: ${{ needs.zenml.result }}
2 changes: 1 addition & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
ref: ${{ github.event.client_payload.pull_request.head.ref }}

- name: Notify
uses: ./.github/actions/notify
uses: ./.github/actions/workflow-notify
with:
slack-webhook: ${{ secrets.E2E_REGULAR_SLACK_WEBHOOK }}

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Fixes
- Disabled info about stopping when using read-only mode ([#1166](https://github.com/neptune-ai/neptune-client/pull/1166))
- Disabled "Explore the metadata" message when stopping in debug mode ([#1165](https://github.com/neptune-ai/neptune-client/pull/1165))

## neptune-client 0.16.15

Expand Down
34 changes: 33 additions & 1 deletion src/neptune/new/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# flake8: noqa

"""``neptune`` is a global object that you can use to start new tracked runs or re-connect to already existing ones.
Expand All @@ -24,6 +23,39 @@
.. _Neptune docs page:
https://docs.neptune.ai/api/neptune
"""
__all__ = [
"types",
"ANONYMOUS",
"ANONYMOUS_API_TOKEN",
"NeptunePossibleLegacyUsageException",
"NeptuneUninitializedException",
"get_project",
"init",
"init_model",
"init_model_version",
"init_project",
"init_run",
"Run",
"__version__",
"create_experiment",
"get_experiment",
"append_tag",
"append_tags",
"remove_tag",
"set_property",
"remove_property",
"send_metric",
"log_metric",
"send_text",
"log_text",
"send_image",
"log_image",
"send_artifact",
"delete_artifacts",
"log_artifact",
"stop",
"get_last_run",
]

from typing import Optional

Expand Down
2 changes: 2 additions & 0 deletions src/neptune/new/attributes/atoms/artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["Artifact"]

import pathlib
import typing

Expand Down
2 changes: 2 additions & 0 deletions src/neptune/new/attributes/atoms/atom.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["Atom"]

from neptune.new.attributes.attribute import Attribute


Expand Down
2 changes: 2 additions & 0 deletions src/neptune/new/attributes/atoms/boolean.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["Boolean"]

import typing

from neptune.new.attributes.atoms.copiable_atom import CopiableAtom
Expand Down
2 changes: 2 additions & 0 deletions src/neptune/new/attributes/atoms/copiable_atom.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["CopiableAtom"]

import abc
import typing

Expand Down
2 changes: 2 additions & 0 deletions src/neptune/new/attributes/atoms/datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["Datetime"]

import typing
from datetime import datetime

Expand Down
2 changes: 2 additions & 0 deletions src/neptune/new/attributes/atoms/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["File"]

from typing import Optional

from neptune.new.attributes.atoms.atom import Atom
Expand Down
2 changes: 2 additions & 0 deletions src/neptune/new/attributes/atoms/float.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["Float"]

import typing

from neptune.new.attributes.atoms.copiable_atom import CopiableAtom
Expand Down
1 change: 1 addition & 0 deletions src/neptune/new/attributes/atoms/git_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["GitRef"]

from neptune.new.attributes.atoms.atom import Atom

Expand Down
2 changes: 2 additions & 0 deletions src/neptune/new/attributes/atoms/integer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["Integer"]

import typing

from neptune.new.attributes.atoms.copiable_atom import CopiableAtom
Expand Down
2 changes: 2 additions & 0 deletions src/neptune/new/attributes/atoms/notebook_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["NotebookRef"]


from neptune.new.attributes.atoms.atom import Atom

Expand Down
1 change: 1 addition & 0 deletions src/neptune/new/attributes/atoms/run_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["RunState"]

from neptune.new.attributes.atoms.atom import Atom

Expand Down
2 changes: 2 additions & 0 deletions src/neptune/new/attributes/atoms/string.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["String"]

import typing

from neptune.new.attributes.atoms.copiable_atom import CopiableAtom
Expand Down
2 changes: 2 additions & 0 deletions src/neptune/new/attributes/attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["Attribute"]

from typing import (
TYPE_CHECKING,
List,
Expand Down
23 changes: 23 additions & 0 deletions src/neptune/new/attributes/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,29 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = [
"ARTIFACT_ATTRIBUTE_SPACE",
"LOG_ATTRIBUTE_SPACE",
"MONITORING_ATTRIBUTE_SPACE",
"MONITORING_STDERR_ATTRIBUTE_PATH",
"MONITORING_STDOUT_ATTRIBUTE_PATH",
"MONITORING_TRACEBACK_ATTRIBUTE_PATH",
"PARAMETERS_ATTRIBUTE_SPACE",
"PROPERTIES_ATTRIBUTE_SPACE",
"SOURCE_CODE_ATTRIBUTE_SPACE",
"SOURCE_CODE_ENTRYPOINT_ATTRIBUTE_PATH",
"SOURCE_CODE_FILES_ATTRIBUTE_PATH",
"SYSTEM_ATTRIBUTE_SPACE",
"SYSTEM_DESCRIPTION_ATTRIBUTE_PATH",
"SYSTEM_HOSTNAME_ATTRIBUTE_PATH",
"SYSTEM_NAME_ATTRIBUTE_PATH",
"SYSTEM_STATE_ATTRIBUTE_PATH",
"SYSTEM_TAGS_ATTRIBUTE_PATH",
"SYSTEM_FAILED_ATTRIBUTE_PATH",
"SYSTEM_STAGE_ATTRIBUTE_PATH",
"SIGNAL_TYPE_STOP",
"SIGNAL_TYPE_ABORT",
]

ARTIFACT_ATTRIBUTE_SPACE = "artifacts/"

Expand Down
2 changes: 2 additions & 0 deletions src/neptune/new/attributes/file_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["FileSet"]

import os
from typing import (
Iterable,
Expand Down
2 changes: 2 additions & 0 deletions src/neptune/new/attributes/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["Namespace", "NamespaceBuilder"]

import argparse
from collections.abc import MutableMapping
from typing import (
Expand Down
2 changes: 2 additions & 0 deletions src/neptune/new/attributes/series/fetchable_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["FetchableSeries"]

import abc
from datetime import datetime
from typing import (
Expand Down
2 changes: 2 additions & 0 deletions src/neptune/new/attributes/series/file_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["FileSeries"]

import imghdr
import os
import pathlib
Expand Down
2 changes: 2 additions & 0 deletions src/neptune/new/attributes/series/float_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["FloatSeries"]

from typing import (
Iterable,
Optional,
Expand Down
2 changes: 2 additions & 0 deletions src/neptune/new/attributes/series/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__all__ = ["Series"]

import abc
import time
from itertools import cycle
Expand Down
Loading

0 comments on commit 9453fd6

Please sign in to comment.