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

1.0 release candidate #5267

Merged
merged 31 commits into from Jan 25, 2022
Merged

1.0 release candidate #5267

merged 31 commits into from Jan 25, 2022

Conversation

zanieb
Copy link
Contributor

@zanieb zanieb commented Dec 22, 2021

The first release candidate for 1.0.0

Highlights

  • Authentication with tokens has been removed; use API keys instead. - #4643
  • Python 3.6 is no longer supported. Use Python 3.7+ instead. - #5136
  • Flow Environments have been removed; use RunConfigs instead. - #5072, docs

Breaking Changes

  • The AWS Fargate agent has been removed; use the ECS agent instead. - #3812
  • DockerAgent(docker_interface=...) will now raise an exception if passed. - #4446
  • Agents will no longer check for authentication at the prefect.cloud.agent.auth_token config key. - #5140
  • Executors can no longer be imported from prefect.engine.executors; use prefect.executors instead. - #3798
  • Parameter is not importable from prefect.core.tasks anymore; use prefect.Parameter instead.
  • Exceptions are no longer importable from prefect.utilities.exceptions; use prefect.exceptions instead. - #4664
  • Client.login_to_tenant has been renamed to Client.switch_tenant
  • The prefect register flow command has been removed; use prefect register instead. - #4256
  • The prefect run flow command has been removed; use prefect run instead. - #4463
  • Authentication token CLI commands create-token, revoke-token, list-tokens have been removed; use API keys instead. - #4643
  • prefect auth login no longer accepts authentication tokens. - #5140
  • prefect auth purge-tokens has been added to delete the Prefect-managed tokens directory. - #5140
  • The log_to_cloud setting is now ignored; use send_flow_run_logs instead. - #4487]

zanieb and others added 27 commits October 28, 2021 12:46
* Remove deprecated `FargateAgent`

* Remove deprecated `prefect.environments` module

* Remove deprecated `Flow.environment` setting

* Remove deprecated `Flow.environment` serializers

* Add backwards compatibility for `Flow.environment` to flow diagnostics

* Update flow tests to reflect removal

* Update `get_flow_image` to use `run_config` instead of `environment`

* Oh, there are two `get_flow_image` functions -- deprecate the old looking one

Also, remove environment handling from the newer one

* Remove environments from `get_flow_run_command` tests

* Remove environment docker healthcheck tests

* Remove environment serialization tests

* Remove environment handling from `Client.register`

* Remove environment handling from `prefect build/register`

* Update `_get_run_config` to drop support for environments

* Remove `KubernetesAgent.generate_job_spec_from_environment`

* Remove `LocalEnvironment` from `DockerAgent` tests

* Remove `DockerAgent.network` tests

* Remove remaining `DockerAgent` environment tests

Missed a couple in c65b01c

* Drop some removed items from the API reference

Certainly there will be more but it is fickle locally

* Remove environments from serialization init

* Fixup tests

* Reformat

* Ignore attr missing typecheck because we check for the attr

* Remove environments from manifest

* Remove environment deprecated warning ignore from pytest

* Remove environments from docs/config.js

* Remove fargate agent docs page

* Remove custom environment docs page

* Remove environment docs

* Update environment upgrade doc to note removal

* Remove environment support from flow run execution hooks

* Remove fargate agent docs section

* Remove environment dependency check from healthcheck

* Remove unused import
* Remove deprecated executors import

* Remove deprecated config keys check

* Remove deprecated DockerAgent.docker_interface

* Remove token from local agent

* Remove token from agent cli

* Remove docker_interface from docker agent cli

* Remove token based login/list/create/revoke from CLI

Retains token logout

* Remove deprecated register command

* Remove deprecated run command

* Remove deprecated `Parameter` import path

* Remove deprecated exceptions module

* Remove `CloudHandler` support for deprecated `log_to_cloud` setting

* Remove local agent tests for token based auth

* Remove import of deprecated exceptions module

* Remove backwards compat imports from new exceptions module

* Update logging test to assert `log_to_cloud` is ignored

* Remove api token check from switch-tenants

* Remove deprecation tests for exceptions

* Remove tests for `prefect run flow`

* Remove tests for deprecated executors

* Remove test for deprecated parameter import path

* Remove tests for deprecated register cli

* Remove token handling from login cli

* Remove outdated tests auth cli

* Fixup agent cli and tests

* Fixup unused imports caught by flake8

* Remove token cli commands from docs

* Remove docs for prefect run flow

* Revert vscode autoformatting of toml

* Fixup doc references to removed items
* Remove experimental labels from outline

* Remove experimental label for py3.9

* Remove experimental labels from backend views
* Remove python 3.6 specific requirements

* Update minimum version in README

* Update versions in metadata

* Increase lower prefect version image to 3.7

* Remove 3.6 tests from CI

* Update 3.6 references in docs to 3.7

* Update 3.6 references in code to 3.7

* Drop test_36 from circle

* Run black

* Fix version in mock

* And similar mocks
* Tear auth token support out of the `Client`

* Remove usage of `as_user`

* Additional token cleanup

* Update tenant setter to enforce UUIDs and remove auth tokens from tests

* Remove backwards compatibility client tests

* Remove token handling from logout; add a token purging command

* Check for environment variables in token purge

* Add token checks to `prefect auth status`

* Fixup tenant switching and listing

* Update auth CLI tests

* Remove unecessary data

* Hardcode uuid for parallel test run consensus

* Remove auth tokens from agent tests and pass api keys as auth tokens for containerized backwards compatibility

GOODNESS

* Update execution tests

* Happy mypy

* Mock the docker engine

* lint

* Update logout command in docs

* Remove additional auth token references from tests

* Restore the `tenant_id` to `switch_tenant`

* Add tenant id null check

* Fixup bad test
1.0 will require a special changelog entry anyway; also adds some missing items
* Remove unlinked files. Content is under Getting Started already.

* Revise page with links to correct current docs pages.
* Returning legacy docs.

* Add legacy environments to nav.

* Update support warning, remove domain from prefect links.

* Minor edits to transitioning from tokens to keys.

* Update gitlab example to reflect new registration CLI per #4256

* Minor edits.

* Revisions based on review feedback.
* Fix broken links.

* Corrected URL.
* Set the docker storage base image correctly for 1.0rc

* Fixup dev image handling
* wip: manually add some

* add rest using addexports

* blackify

* indicate get_versions is private

* add changes
* switched to futures based LocalDaskExecutor

* empty commit

* switched to futures based LocalDaskExecutor

* Bumped dask to the oldest new version scheme

* Update to a recent dask version

* oldest version that still has dask.compatibility.apply defined

* fixed shutdown behaviour when not exiting early

* Cancel unstarted futures

* Undo cancel_futures flag
@zanieb zanieb marked this pull request as ready for review January 25, 2022 17:00
tpdorsey
tpdorsey previously approved these changes Jan 25, 2022
@zanieb zanieb requested a review from abrookins January 25, 2022 17:49
Copy link
Collaborator

@abrookins abrookins left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@zanieb zanieb merged commit f6d79b7 into master Jan 25, 2022
@zanieb zanieb deleted the 1.0rc branch January 25, 2022 17:54
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.

None yet

6 participants