You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/07/06 09:37:37 UTC
[GitHub] [airflow] zhongjiajie opened a new pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
zhongjiajie opened a new pull request #8231:
URL: https://github.com/apache/airflow/pull/8231
For now we remove all record in dag_tag, but actually
we only need to delete tag not exists in dag file
anymore
---
Make sure to mark the boxes below before creating PR: [x]
- [x] Description above provides context of the change
- [x] Unit tests coverage for changes (not needed for documentation changes)
- [x] Commits follow "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)"
- [x] Relevant documentation is updated including usage instructions.
- [x] I will engage committers as explained in [Contribution Workflow Example](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#contribution-workflow-example).
---
In case of fundamental code change, Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals)) is needed.
In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
In case of backwards incompatible changes please leave a note in [UPDATING.md](https://github.com/apache/airflow/blob/master/UPDATING.md).
Read the [Pull Request Guidelines](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#pull-request-guidelines) for more information.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] stale[bot] commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
stale[bot] commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-691487943
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] stale[bot] commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
stale[bot] commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-639245822
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] github-actions[bot] commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-922264436
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] zhongjiajie commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-917768543
Hello? Does someone have time to review this PR @potiuk @turbaszek @mik-laj
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] zhongjiajie commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-654127351
Reopen this PR
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] stale[bot] closed pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
stale[bot] closed pull request #8231:
URL: https://github.com/apache/airflow/pull/8231
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] github-actions[bot] commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-917738731
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] github-actions[bot] commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-732264818
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] stale[bot] commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
stale[bot] commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-691487943
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] zhongjiajie commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-732724814
@turbaszek @mik-laj @potiuk Could you please take a look at this PR, CI green, it be quit a long time
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] mik-laj commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
mik-laj commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-654169548
did you use a decorator on the method or on the class?
I added SQL tracking to pytest also.
https://github.com/apache/airflow/blob/master/TESTING.rst#tracking-sql-statements
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
potiuk commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-922264903
Sorry to keep you waiting @zhongjiajie !
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] zhongjiajie commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-922635254
It doesn't matter, nice to see you again. @potiuk
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] zhongjiajie commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-732653822
CI failed unrelated with
```log
The documentation has errors.
#################### Packages errors summary ####################
Package name Count of doc build errors Count of spelling errors
------------------------------------- --------------------------- --------------------------
apache-airflow-providers-apache-spark 0 1
##################################################
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] mik-laj commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
mik-laj commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-665659400
@zhongjiajie c Github Action are sad. Can you fix it?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] turbaszek commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
turbaszek commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-691511546
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] zhongjiajie commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-654165302
Hi, @mik-laj . I try to add decorator and test sql query using perf_kit, but could not work, could you tell what I miss? https://github.com/apache/airflow/blob/57b495caa40f9efe21ca66bba805a8dc7c7c1256/scripts/perf/perf_kit/__init__.py#L101-L103
The error message as below
```log
tests/models/test_dag.py:56: in <module>
class TestDag(unittest.TestCase):
tests/models/test_dag.py:657: in TestDag
@trace_queries
E TypeError: __init__() takes 1 positional argument but 2 were given
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] zhongjiajie commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-654326927
I think this patch could be accept. In L1529, we delete all tag in dag and in L1532 we create all new tag object and add all of them to `dag_tag` table. And this patch just remove not exists tag and add not exists one. So
the database query are the same(IMO), link https://github.com/apache/airflow/pull/8231#issuecomment-613395942 .
BTW, `pytest --trace-sql=num,sql,parameters --capture=no` are the good tool and more easier to use. good job @mik-laj
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] zhongjiajie commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-731512094
I reopen it, it be quit a long time, sooo sorry about that.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] zhongjiajie edited a comment on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
zhongjiajie edited a comment on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-731512094
> @zhongjiajie can you rebase please? It would be awesome to have it merged, so let us know if you need any help 👍
I rebase it, it be quit a long time, sooo sorry about that.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] turbaszek commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
turbaszek commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-691511546
@zhongjiajie can you rebase please? It would be awesome to have it merged, so let us know if you need any help 👍
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] stale[bot] commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
stale[bot] commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-691487943
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] turbaszek commented on pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
turbaszek commented on pull request #8231:
URL: https://github.com/apache/airflow/pull/8231#issuecomment-691511546
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk merged pull request #8231: Dag bulk_sync_to_db dag_tag only remove not exists
Posted by GitBox <gi...@apache.org>.
potiuk merged pull request #8231:
URL: https://github.com/apache/airflow/pull/8231
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org