GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Skip task in example_dynamodb_to_s3.py by ferruzzi · Pull Request #41546 · apache/airflow

Conversation

@ferruzzi

@ferruzzi ferruzzi commented Aug 16, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

backup_db_to_point_in_time_incremental_export requires at least a 15-minute window of available data, causing the system tests to fail. Moving it into a branching task group will let us keep the code snippet in the docs without actually running the task in the test.

Workaround for the issue presented in #41304. If someone wants to take on an actual fix, tag me and I'll review it, but for now I want to get the test running again. Branching operators are a bit confusing, see how we did it in the Bedrock system test (here) if you want to see some existing working examples.

TLDR of the issue:

error: "from" time can't be equal to "to" time
tried: so I set "from" to export_time - 1_minute
error: "from" can't be less than table creation time
tried: revert the above and set "to" to be latest_export_time + 1_minute
error: Difference between "from" time and "to" is less than 15 minutes
tried: revert the above and set "to" to be latest_export_time + 16_minutes
error: "to" time cannot be greater than the current time
tried: revert the above and set "to" time to utcnow()
error: this gets set at parse time and "to" time is now in the past

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ferruzzi
Skip task in example_dynamodb_to_s3.py
fb03bec
`backup_db_to_point_in_time_incremental_export` requires at least a 15-minute window of available data, causing the system tests to fail.  Moving it into a branching task group will let us keep the code snippet in the docs without actually running the task in the test.
@ferruzzi
ferruzzi requested review from eladkal and o-nikolas as code owners August 16, 2024 19:10
@boring-cyborg boring-cyborg Bot added area:providers area:system-tests provider:amazon AWS/Amazon - related issues labels Aug 16, 2024
@ferruzzi
ferruzzi requested a review from vincbeck August 16, 2024 19:10
@ferruzzi ferruzzi mentioned this pull request Aug 16, 2024
Add incremental export and cross account export functionality in DynamoDBToS3Operator #41304
Merged
vincbeck
vincbeck approved these changes Aug 16, 2024
View reviewed changes
o-nikolas
o-nikolas approved these changes Aug 16, 2024
View reviewed changes
@potiuk
potiuk merged commit 8c2f563 into apache:main Aug 16, 2024
Artuz37 pushed a commit to Artuz37/airflow that referenced this pull request Aug 19, 2024
@ferruzzi @Artuz37
Skip task in example_dynamodb_to_s3.py (apache#41546)
6fb650b
`backup_db_to_point_in_time_incremental_export` requires at least a 15-minute window of available data, causing the system tests to fail.  Moving it into a branching task group will let us keep the code snippet in the docs without actually running the task in the test.
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Aug 20, 2024
@ferruzzi @romsharon98
Skip task in example_dynamodb_to_s3.py (apache#41546)
6cb0c12
`backup_db_to_point_in_time_incremental_export` requires at least a 15-minute window of available data, causing the system tests to fail.  Moving it into a branching task group will let us keep the code snippet in the docs without actually running the task in the test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@o-nikolas o-nikolas o-nikolas approved these changes
@vincbeck vincbeck vincbeck approved these changes
@eladkal eladkal Awaiting requested review from eladkal

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

area:providers area:system-tests provider:amazon AWS/Amazon - related issues

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@ferruzzi @o-nikolas @vincbeck @potiuk
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.