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

Merge to main branch #142

Merged
merged 332 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
332 commits
Select commit Hold shift + click to select a range
4d1e3f5
[feat] raw_data DAG 2.0
poriz Feb 19, 2024
9ce017c
[feat] dag_raw_data v2.1 chzzk structure change, code refact
poriz Feb 19, 2024
9c413b8
[feat] dag_raw_data v2.2
poriz Feb 19, 2024
4e2365a
[feat] dag_raw_data v2.3
poriz Feb 19, 2024
5703535
[feat] dag_raw_data v3.0 error_check, slack
poriz Feb 19, 2024
839d04f
[feat] dag_raw_data v3.1 add slack
poriz Feb 19, 2024
2c7e8ad
[feat] : Create pre-commit config file
srlee056 Feb 19, 2024
65ca9a5
[fix] : re-formatted using black
srlee056 Feb 19, 2024
2f3f567
commit test
Feb 19, 2024
04cdf37
[fix]: rewrite path of files to check
Feb 19, 2024
ee99e81
[fix]: remove unused modules
Feb 19, 2024
372c88e
[fix]: remove unused modules
Feb 19, 2024
15d4504
[fix]: minor dag order fix for test
srlee056 Feb 19, 2024
cec2cf3
Delete dags/.gitkeep
hunsoodev Feb 20, 2024
598a875
[feat] dag_raw_data v4.0 add streamer_id(rds)
poriz Feb 20, 2024
045b77b
[feat] dag_raw_data v4.1 add current_time
poriz Feb 20, 2024
7771161
[feat] add glue code
poriz Feb 21, 2024
2f0e5f4
[feat] add glue code v1.1
poriz Feb 21, 2024
37cf15d
[feat] add glue code v1.2
poriz Feb 21, 2024
eea9325
[feat] add glue code v2.0
poriz Feb 21, 2024
a9ddf99
[feat] add glue code v2.1
poriz Feb 21, 2024
a0daf52
[feat] dag_raw_data v4.2
poriz Feb 21, 2024
6538fd8
[feat] dag_raw_data v4.2.1
poriz Feb 21, 2024
8714d3b
[feat] dag_raw_data v4.2.2
poriz Feb 21, 2024
114c3e2
[feat] dag_raw_data v4.3 change_conn name slack_api_key
poriz Feb 21, 2024
d439ddc
[feat] change s3 file path
poriz Feb 21, 2024
19a6793
Merge remote-tracking branch 'origin/feature/data_collector_dag' into…
poriz Feb 21, 2024
06a54d7
[feat] : remove flake8 and black from workflow (pre-commit)
srlee056 Feb 21, 2024
90b6aa2
Merge pull request #67 from zizzic/feature/ci-cd-workflow
poriz Feb 21, 2024
2c889ae
[feat] dag_raw_data v5.0
poriz Feb 21, 2024
66721ac
Merge branch 'develop' into feature/data_collector_dag
poriz Feb 21, 2024
8fbb5fd
[fix] : fix precommit yaml code
srlee056 Feb 21, 2024
2bbb684
[fix] add personal venv path
srlee056 Feb 21, 2024
939d8ec
[fix] : fix errors shown in pylint
srlee056 Feb 21, 2024
9095a19
[feat] : disable one error at pylint check, and fix pip install part
srlee056 Feb 21, 2024
3447003
Merge pull request #71 from zizzic/feature/ci-cd-workflow
srlee056 Feb 21, 2024
4b02d06
Update .gitignore
srlee056 Feb 21, 2024
6d2e198
[test]: test fix for testing pylint for this branch
srlee056 Feb 21, 2024
f3c53cd
[fix] : uninstall slack
srlee056 Feb 21, 2024
11690a8
Merge pull request #72 from zizzic/feature/ci-cd-workflow
srlee056 Feb 21, 2024
659396d
[test] : test fix for testing pylint
srlee056 Feb 21, 2024
de05013
Merge branch 'develop' into feature/data_collector_dag
srlee056 Feb 21, 2024
e71aa9b
[feat] result exception
poriz Feb 21, 2024
9688ab5
Merge remote-tracking branch 'origin/feature/data_collector_dag' into…
poriz Feb 21, 2024
f172708
[feature] DAGs for GCP Airflow
mediwind Feb 21, 2024
0ed3878
[feat]: using plugin as package
srlee056 Feb 21, 2024
28e74b8
Merge pull request #73 from zizzic/feature/data_collector_dag
srlee056 Feb 21, 2024
63a7717
[feat] : add steps when plugin created
srlee056 Feb 21, 2024
6d09cee
[fix] : remove plugin CI check -update later
srlee056 Feb 21, 2024
d14c7b7
[fix] update slack plugin (minor change)
srlee056 Feb 21, 2024
2e0331f
Merge pull request #74 from zizzic/ci-cd-worflow
srlee056 Feb 21, 2024
3678d12
[fix] : fix rsync code
srlee056 Feb 21, 2024
98afa15
Merge pull request #75 from zizzic/ci-cd-worflow
srlee056 Feb 21, 2024
ae86d10
[hotfix] tag and connections
mediwind Feb 21, 2024
fd7cf6b
[feat]: add pythonpath env for plugin check
srlee056 Feb 21, 2024
b4b3e9f
[test] : code fix for test
srlee056 Feb 21, 2024
a719e63
[feat] : add plugins to condition and checked folders
srlee056 Feb 21, 2024
148817c
[fix] : remove unused files
srlee056 Feb 21, 2024
5ca5ed8
[fix] : resolve 'not-an-iterable' error
srlee056 Feb 21, 2024
d3057cf
[fix] : import from plugin
srlee056 Feb 21, 2024
d600e29
[hotfix] tags & retries change - dag_raw_data.py
poriz Feb 21, 2024
fc1e122
[fix] : resolve 'not-an-iterable' error
srlee056 Feb 21, 2024
0e77bae
[fix] : add -r option for xargs
srlee056 Feb 21, 2024
8a57b46
[fix] : code not using xargs
srlee056 Feb 21, 2024
b8007f7
Merge pull request #78 from zizzic/ci-cd-workflow
srlee056 Feb 21, 2024
843b7ce
[hot fix] : module import error fix
srlee056 Feb 21, 2024
0d64aa2
[feature] test Glue files
mediwind Feb 22, 2024
2d4280c
[feat] live_viewer glue code v1.0
poriz Feb 22, 2024
81f1b38
[feat] live_viewer glue code v1.1
poriz Feb 22, 2024
85251e0
[feat] live_viewer glue code v1.2, dag_name, tags change
poriz Feb 22, 2024
6ade33a
[hotfix] change_timezone
poriz Feb 22, 2024
02407d8
[test] Error test
mediwind Feb 22, 2024
62267fc
Merge pull request #80 from zizzic/feature/glue_live_viewer
poriz Feb 22, 2024
a32fa52
[feat] : ignore all warning code of pylint
srlee056 Feb 22, 2024
3405dcf
[feat] live_viewer glue code v1.2, timechange
poriz Feb 22, 2024
dfa57cb
[feat] live_viewer glue code v1.3
poriz Feb 22, 2024
588760e
[fix] fix template code
mediwind Feb 22, 2024
34a9879
[feature] Glue DAG&Job
mediwind Feb 22, 2024
81d9997
[fix] DAG fix json structure
mediwind Feb 22, 2024
1c57150
[fix] DAG fix json structure
mediwind Feb 22, 2024
7eb339b
Merge pull request #85 from zizzic/feature/glue_young_ho
poriz Feb 23, 2024
b2b5e4e
Merge pull request #81 from zizzic/ci-cd-workflow
srlee056 Feb 23, 2024
4b096d8
[feat] add follower.py
poriz Feb 23, 2024
836c708
Merge pull request #82 from zizzic/develop_young_ho_for_fix
mediwind Feb 23, 2024
4fee174
[feat] : get bj station info
srlee056 Feb 23, 2024
a84d84a
[feat] followers dag update
poriz Feb 23, 2024
7451ef4
[fix] sync_dag_code.yml > true
poriz Feb 23, 2024
1569465
Merge pull request #87 from zizzic/feature/follower
poriz Feb 23, 2024
aa63876
[fix] DAG schedule small fix
mediwind Feb 23, 2024
043c8f3
[feat] live_viewer.py, game_price
poriz Feb 23, 2024
70b9f83
[feat] add GlueJobSensor to DAG
mediwind Feb 23, 2024
8aa2847
[fix] rename DAG file
mediwind Feb 23, 2024
52a9c20
Merge branch 'feature/glue' into feature/glue_young_ho
poriz Feb 23, 2024
4853ed2
Merge pull request #88 from zizzic/feature/glue_young_ho
poriz Feb 23, 2024
889ecca
[fix] fix job_name
mediwind Feb 23, 2024
b28edf8
[update] live_viewer.py, template
poriz Feb 23, 2024
b291ab9
[fix] very small comment
mediwind Feb 23, 2024
8cf1480
Merge pull request #89 from zizzic/feature/glue_young_ho
mediwind Feb 23, 2024
c4be4a3
[feat] raw_data change
poriz Feb 23, 2024
c749255
Merge pull request #90 from zizzic/feature/streaming
poriz Feb 23, 2024
c60be0e
Merge branch 'develop' into feature/glue
poriz Feb 23, 2024
259a8b9
[fix] adding region_name to DAG task
mediwind Feb 23, 2024
cf5a496
Merge pull request #92 from zizzic/feature/glue_young_ho
mediwind Feb 23, 2024
b79f904
[feature] new Glue job DAG for Game CCU
mediwind Feb 23, 2024
541ca6f
Merge pull request #93 from zizzic/feature/glue_young_ho
mediwind Feb 23, 2024
c2abca1
[fix] DAG time fix
mediwind Feb 23, 2024
c5301b1
Merge pull request #94 from zizzic/feature/glue_young_ho
mediwind Feb 23, 2024
007fc1d
[fix] remove region_name
mediwind Feb 23, 2024
7a5b7ba
Merge pull request #95 from zizzic/feature/glue_young_ho
mediwind Feb 23, 2024
72ba984
[feat] live_viewer_template.py change code, add platform
poriz Feb 24, 2024
62954ee
[feat] add liveid check again
poriz Feb 24, 2024
5a8741f
Merge pull request #96 from zizzic/feature/glue
poriz Feb 24, 2024
35247e7
[hotfix] null check
poriz Feb 24, 2024
5a7b7f9
[feat]: dag for getting banners of streamers
srlee056 Feb 24, 2024
e09d225
[feat]: change airflow image to 3.11
srlee056 Feb 24, 2024
79c799a
Feat: Add templates of github and Code-owners
Kangho-Lee Feb 22, 2024
d79a917
Merge pull request #98 from zizzic/feature/template
srlee056 Feb 24, 2024
8051486
[feat]: dag for getting banners of steam games
srlee056 Feb 24, 2024
c24dbec
[fix]:fix non iterable and try-else warnings
srlee056 Feb 24, 2024
d9f4a5d
[feat] make Glue DAG for game_rating
mediwind Feb 24, 2024
19511e8
Revert "[feat] make Glue DAG for game_rating"
mediwind Feb 24, 2024
c1483c7
[feat] make Glue DAG for game_rating
mediwind Feb 24, 2024
cfa93fa
[feat] live_viewer sensor add
poriz Feb 24, 2024
2a465dd
[feat] live_viewer sensor verbose=False
poriz Feb 24, 2024
421dcc0
Merge pull request #100 from zizzic/feature/glue_for_young_ho
mediwind Feb 24, 2024
4e640f6
Merge pull request #101 from zizzic/feature/glue
mediwind Feb 24, 2024
8baf39a
[feat] live_viewer sensor add
poriz Feb 24, 2024
57bec14
Merge remote-tracking branch 'origin/feature/glue' into feature/glue
poriz Feb 24, 2024
94001d1
[fix] remove verbose&region_name parameter
mediwind Feb 24, 2024
28b1ea5
Merge branch 'feature/glue' of https://github.com/zizzic/airflow_repo…
mediwind Feb 24, 2024
bd15c10
[fix] change json key to lowercase
mediwind Feb 24, 2024
2aa156f
Merge pull request #102 from zizzic/develop_for_DAG_fix_by_youngho
mediwind Feb 24, 2024
4a56663
Merge pull request #103 from zizzic/feature/glue
mediwind Feb 24, 2024
49e1c89
[feat] add partitions use PLATFORM -> result 2files in folder -> S3 c…
poriz Feb 25, 2024
f204c4a
Merge remote-tracking branch 'origin/feature/glue' into feature/glue
poriz Feb 25, 2024
1484593
[feat] live_viewer add 59 if -> if not
poriz Feb 25, 2024
befe1c8
[feat] live_viewer_template.py change code
poriz Feb 25, 2024
c1c0abe
Merge remote-tracking branch 'origin/feature/glue' into feature/glue
poriz Feb 25, 2024
dec31c1
Merge pull request #97 from zizzic/feature/dockerfile
srlee056 Feb 26, 2024
a4fa495
Merge pull request #99 from zizzic/feature/get_image_url_dag
srlee056 Feb 26, 2024
95ef84a
[feat] set Catchup&Startdate for Glue DAG
mediwind Feb 26, 2024
0b17f3f
Merge pull request #105 from zizzic/develop_fix_for_youngho
mediwind Feb 26, 2024
75a39bc
Merge pull request #106 from zizzic/feature/glue
poriz Feb 26, 2024
a4ad481
[feat] live_viewer template change
poriz Feb 26, 2024
0d02039
[fix] addig collect_time to ccu DAG
mediwind Feb 26, 2024
66f9dc6
Merge pull request #107 from zizzic/develop_fix_for_youngho
mediwind Feb 26, 2024
29b8a8f
[fix] correct time difference
mediwind Feb 26, 2024
eace001
Merge pull request #108 from zizzic/develop_fix_for_youngho
mediwind Feb 26, 2024
c352afe
[fix] hotfix Glue CCU DAG start_date
mediwind Feb 26, 2024
2aa1706
[fix] hotfix typo error
mediwind Feb 26, 2024
ccdecd9
[hotfix] follow.py change local_file change, schedule_interval change…
poriz Feb 27, 2024
dde6455
Merge pull request #110 from zizzic/feature/glue_error_check
poriz Feb 27, 2024
9708cb3
[hotfix] follow.py delete func
poriz Feb 27, 2024
b3a3bcc
[feat] make glue job dag for followers
srlee056 Feb 27, 2024
6deaa87
Merge pull request #111 from zizzic/feature/glue_followers
srlee056 Feb 27, 2024
ff38eec
[fix] variable change & game rating DAG fix
mediwind Feb 27, 2024
b71f037
Merge pull request #112 from zizzic/develop_glue_rating_fix_YOUNG_HO
mediwind Feb 27, 2024
52a8fc4
[feat] passing arguments to Glue job script instead of overwriting ex…
mediwind Feb 28, 2024
0c1bc7a
Merge pull request #113 from zizzic/develop_for_script_args_test_by_Y…
mediwind Feb 28, 2024
1145d43
[feat] passing arguments to Streaming Glue job script
mediwind Feb 28, 2024
a1a6b80
Merge pull request #114 from zizzic/develop_for_script_args_test_by_Y…
mediwind Feb 28, 2024
24672d8
[fix] defend code for region lock game
mediwind Feb 29, 2024
eb43364
Merge pull request #117 from zizzic/develop_for_adding_region_lock_de…
mediwind Feb 29, 2024
73d6354
[fix] appid type hotfix
mediwind Feb 29, 2024
484ab49
[hot-fix]: change follower dag
srlee056 Feb 29, 2024
db86cf7
Merge pull request #118 from zizzic/develop_for_adding_region_lock_de…
mediwind Feb 29, 2024
06d3fef
[hot-fix]: change glue job dag start date
srlee056 Feb 29, 2024
a756599
[hot-fix]: change glue job dag max dag run
srlee056 Feb 29, 2024
13dfe51
[feat] ELT_test_DAG
mediwind Mar 4, 2024
316e5e9
Merge pull request #120 from zizzic/develop_for_ELT_by_YOUNG_HO
mediwind Mar 4, 2024
74cf765
[fix] hotfix follower_dag_schedule
mediwind Mar 4, 2024
55ca50d
[hotfix] live_viewer.py max_active_runs=1
poriz Mar 4, 2024
4cf5d0a
Merge remote-tracking branch 'origin/develop' into develop
poriz Mar 4, 2024
4c418d8
[fix] hotfix DAG scheduling time fix
mediwind Mar 4, 2024
c5d6412
[fix] script to explain time difference between Korean time and UTC
mediwind Mar 4, 2024
dd22ee6
[feat] ELT YSD_GAME_CCU
Danee12 Mar 4, 2024
7deb0ee
Merge pull request #125 from zizzic/feature/elt/ccu
Danee12 Mar 4, 2024
85e31fa
[feat] ELT ysd_game_rating
Danee12 Mar 4, 2024
01558b4
Merge pull request #126 from zizzic/feature/elt/game_rating
Danee12 Mar 4, 2024
da4e881
Merge branch 'develop' of https://github.com/zizzic/airflow_repo into…
mediwind Mar 4, 2024
913b81e
[hotfix] live_viewer.py retries change, add timedelta sensor(wait30s)
poriz Mar 4, 2024
7bb0038
[feat] add anal_broadcast.py, fix-live_viewer_script.py template(x)
poriz Mar 4, 2024
fe9d71b
[feat] script change
poriz Mar 4, 2024
3b96c21
[feat] script change add 19 filter
poriz Mar 4, 2024
7bcad64
[hotfix] 30->60s
poriz Mar 4, 2024
cf2e68d
[hotfix] timedeltasensor -> sleep method
poriz Mar 4, 2024
c0c5483
[feat]: add crawler-operator to dag
srlee056 Mar 4, 2024
97d8082
[fix]: catchup false->true
srlee056 Mar 4, 2024
30e4640
[fix]: add variable and rename key
srlee056 Mar 4, 2024
942ae2d
[fix]: fix variable part
srlee056 Mar 4, 2024
6964eac
[feat]: modify test for not checking Variable
srlee056 Mar 4, 2024
04fcb6d
Merge pull request #127 from zizzic/feature/glue_crawler
srlee056 Mar 4, 2024
67c11a4
[hotfix]: fix s3 path of crawler
srlee056 Mar 4, 2024
dcb8f35
Merge pull request #128 from zizzic/feature/glue_crawler
srlee056 Mar 4, 2024
699e869
[feat]: Update crawler task to glue game_price dag
srlee056 Mar 5, 2024
9da2989
[feat]: Update crawler task to glue game_rating dag
srlee056 Mar 5, 2024
452a83e
[feat]: Update crawler task to glue followers dag
srlee056 Mar 5, 2024
7658145
[feat]: Update crawler task to glue live_viewer dag
srlee056 Mar 5, 2024
23e4179
Merge branch 'develop' into feature/glue_crawler
srlee056 Mar 5, 2024
7b91564
Merge pull request #129 from zizzic/feature/glue_crawler
srlee056 Mar 5, 2024
de86b07
[feat] analytics table add
poriz Mar 5, 2024
5e60b00
[feat] change analytics time
poriz Mar 5, 2024
0fc08ec
[fix] hotfix DAG time schedule fix
mediwind Mar 5, 2024
c6771c1
Merge branch 'develop' of https://github.com/zizzic/airflow_repo into…
mediwind Mar 5, 2024
4c22d1c
Merge branch 'develop' into feature/anal_broadcast
poriz Mar 5, 2024
60e2cd9
[fix] edit analytics DAG schedule
Danee12 Mar 5, 2024
c674c7f
Merge pull request #130 from zizzic/feature/anal_broadcast
poriz Mar 5, 2024
d086b55
Merge pull request #131 from zizzic/feature/elt
Danee12 Mar 5, 2024
ae99443
[hotfix] chzzk - requests
poriz Mar 5, 2024
52c3137
[fix] fix anal_week_game_viewer
mediwind Mar 5, 2024
fd50ca3
[fix] cast for column type
mediwind Mar 5, 2024
69e3f83
[fix] fix DAG anal_week_game_viewer
mediwind Mar 5, 2024
70f2f8f
Merge pull request #132 from zizzic/develop_to_fix_anal_week_game_vie…
mediwind Mar 5, 2024
b037fcd
[hotfix] change_anal_broadcast
poriz Mar 5, 2024
fe4021a
[fix] ysd_game_rating to tdy_game_rating
Danee12 Mar 5, 2024
455061f
Merge pull request #133 from zizzic/feature/elt
Danee12 Mar 5, 2024
3f1a546
[feat] anal_game_price
mediwind Mar 5, 2024
4e30be4
Merge pull request #134 from zizzic/develop_to_fix_anal_week_game_vie…
mediwind Mar 5, 2024
0c50ff4
[fix] hotfix script fix
mediwind Mar 5, 2024
830377d
[hotfix] follower add header
poriz Mar 6, 2024
331f2b2
Merge remote-tracking branch 'origin/develop' into develop
poriz Mar 6, 2024
643eaf0
Revert "[hotfix] follower add header"
poriz Mar 6, 2024
4322a2b
[hotfix] follower add header 2
poriz Mar 6, 2024
15d2879
[feat] anal_broadcast_incremental
poriz Mar 6, 2024
862b088
[feat] full-refresh_ all data
poriz Mar 6, 2024
e08e7f6
[feat] ELT rank table
Danee12 Mar 7, 2024
9695484
Merge pull request #136 from zizzic/feature/elt/rank
Danee12 Mar 7, 2024
8a2749d
[feat] ELT rader chart
Danee12 Mar 7, 2024
709ad38
Merge pull request #138 from zizzic/feature/anal_broadcast_timechange
poriz Mar 7, 2024
fa7000d
[hotfix] game_code -> game_nm
poriz Mar 7, 2024
0f898b2
[hotfix] game_code -> game_nm & not null
poriz Mar 7, 2024
4038109
Merge pull request #137 from zizzic/feature/elt/rader
Danee12 Mar 7, 2024
36f42b8
[feat] raw_data.raw_game_ccu incremental_update
poriz Mar 7, 2024
a37a7e8
Merge pull request #139 from zizzic/feature/incre
poriz Mar 7, 2024
ff050b7
[fix] steamer -> streamer
Danee12 Mar 7, 2024
63df833
Merge branch 'develop' of https://github.com/zizzic/airflow_repo into…
Danee12 Mar 7, 2024
4fe7f91
[feat] ELT streamer follower
Danee12 Mar 7, 2024
1205489
Merge pull request #140 from zizzic/feature/elt/follower
Danee12 Mar 7, 2024
4265708
[feat] ELT ysd game top5
Danee12 Mar 7, 2024
0c5c2a2
Merge pull request #141 from zizzic/feature/elt/game_top5
Danee12 Mar 7, 2024
09934de
[fix] fix rader chart SQL
Danee12 Mar 7, 2024
7ed59af
[fix] rank table INNER -> LEFT JOIN
Danee12 Mar 7, 2024
c368a3e
[hotfix] n_game_code error
poriz Mar 8, 2024
e1d9308
[hotfix] current_date tz change
poriz Mar 9, 2024
12ae175
[hotfix] current_date tz change
poriz Mar 9, 2024
88c39d8
[feat] add README.md & glue scripts
poriz Mar 14, 2024
47bdd4e
Update README.md
poriz Mar 14, 2024
e1c2665
images for readme
srlee056 Mar 14, 2024
5529bf2
images for readme
srlee056 Mar 14, 2024
d437ea8
Update README.md
srlee056 Mar 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @zizzic/programmers
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: 버그 관련 이슈 템플릿
about: 버그와 관련된 이슈
title: "[BUG] XXXXX"
labels: bug
assignees: ''

---

<!-- 버그 관련 이슈 제목은 [BUG]를 붙여 생성하는 것을 추천드립니다.-->
### Description
<!--
작업이 필요한 내용을 적어주세요.
ex.)
- Spark 실행을 위한 GlueJobOperator dag 수정
-->
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: 새로운 기능 이슈 템플릿
about: 새로운 기능 이슈와 관련된 템플릿
title: "[FEAT] XXXXXXX"
labels: enhancement
assignees: ''

---

<!-- 새로운 기능 관련 이슈 제목은 [FEAT]를 붙여 생성하는 것을 추천드립니다.-->
### Description
<!--
작업이 필요한 내용을 적어주세요.
ex.)
- Spark 실행을 위한 GlueJobOperator dag 작성
-->
17 changes: 17 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!-- 제목 : [#{issue number}] {이슈 제목}-->
### 작업 분류

- [x] 신규 기능
- [ ] 기능 수정
- [ ] 버그 수정
- [ ] 프로젝트 구조 변경

### 작업 상세 내용
<!-- 작업한 내용을 적어주세요. -->


### 생각해볼 문제
<!-- 생략 가능 -->


resolve #{issue number}
94 changes: 94 additions & 0 deletions .github/workflows/sync_dag_code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: CI/CD Workflow

on:
push:
branches: develop
pull_request:
branches: develop

permissions:
contents: read
pull-requests: read

jobs:
path-filter:
runs-on: ubuntu-latest
outputs:
dags-changed: ${{ steps.filter.outputs.dags }}
docker-changed: ${{ steps.filter.outputs.docker }}
plugin-created: ${{ steps.filter.outputs.plugin}}
steps:
- uses: actions/checkout@v4

- name: Path Filter
id: filter
uses: dorny/paths-filter@v3
with:
filters: |
dags:
- 'dags/**/*.py'
- 'tests/dags/**/*.py'
docker:
- 'docker-compose.yaml'
- 'Dockerfile'
plugin:
- 'plugins/***'

build:
needs: path-filter
if: (needs.path-filter.outputs.dags-changed == 'true'|| needs.path-filter.outputs.plugin-created == 'true') && github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Set Environment Variables
run: |
echo "PYTHON_VERSION=3.11" >> $GITHUB_ENV
echo "AIRFLOW_VERSION=2.7.2" >> $GITHUB_ENV

- name: Install dependencies
run: |
CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"
echo "Installing Apache Airflow version ${AIRFLOW_VERSION} with constraints from ${CONSTRAINT_URL}"
pip install "apache-airflow[amazon,mysql]==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"
pip install pytest

- name: Install Pylint
run: pip install pylint
- name: Run Pylint
env:
PYTHONPATH: plugins
run: pylint --output-format=colorized --disable=missing-docstring,invalid-name,W,C0301,C0411 $(find dags/ tests/dags/ plugins/ -name "*.py") || true
- name: Test DAG integrity
run: pytest tests/

deploy:
needs: path-filter
if: github.event_name == 'push'
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Extract repository name
run: echo "REPO_NAME=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 2)" >> $GITHUB_ENV

- name: Sync specific files
env:
DEPLOY_DIRECTORY: /home/zizzicteam2/${{ env.REPO_NAME }}
run: |
rsync -av --include='dags/***' --include='plugins/***' --include='docker-compose.yaml' --include='Dockerfile' --exclude='*' ./ $DEPLOY_DIRECTORY
- name: Restart Docker Services
if: ${{ needs.path-filter.outputs.docker-changed == 'true' || needs.path-filter.outputs.plugin-created == 'true'}}
env:
DEPLOY_DIRECTORY: /home/zizzicteam2/${{ env.REPO_NAME }}
run: |
cd $DEPLOY_DIRECTORY

docker compose down
docker compose up -d
181 changes: 181 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
# Created by https://www.toptal.com/developers/gitignore/api/python
# Edit at https://www.toptal.com/developers/gitignore?templates=python

# airflow
logs/


### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
airflowvenv/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

### Python Patch ###
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
poetry.toml

# ruff
.ruff_cache/

# LSP config files
pyrightconfig.json

# End of https://www.toptal.com/developers/gitignore/api/python
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
repos:
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
language_version: python3.11
# Black doesn't use file filters for inclusion, it formats all Python files by default.

- repo: https://github.com/PyCQA/flake8
rev: "7.0.0"
hooks:
- id: flake8
# Use a regex pattern to include dags and tests/dags directories
files: ^(dags|tests/dags)/.*\.py$
# Add errors that would be ignored
args: ["--ignore=E501,W503"]
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 기본 이미지 지정. 버전은 2.7.2
FROM apache/airflow:2.7.2-python3.11

# root 사용자로 전환 (필요한 경우)
USER root

# 패키지 목록 업데이트 및 필요한 패키지 설치
RUN apt-get update && \
apt-get install -y \
vim \
&& rm -rf /var/lib/apt/lists/*

# 이후 필요한 작업 수행. 예를 들어, 환경 설정 변경, 파일 복사 등
Loading
Loading