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 main to feature #6817

Merged
merged 232 commits into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
a9c8bc0
f-string cleanup #6068 (#6082)
eve-johns Oct 17, 2022
35f7975
Updated string formatting on non-f-strings. (#6086)
luke-bassett Oct 17, 2022
ff2f1f4
Working solution serialization bug. (#5874)
VersusFacit Oct 18, 2022
a7670a3
Add unit tests for recent stringifier functors added to events librar…
VersusFacit Oct 20, 2022
53ae325
CT-1099: Migrate test 071_commented_yaml_regression_3568_tests (#6106)
peterallenwebb Oct 20, 2022
6c86094
Add 'michelleark' to changie's core_team list (#6084)
MichelleArk Oct 20, 2022
17b8266
convert 027 cycle test (#6094)
MichelleArk Oct 21, 2022
c285601
[BUGFIX] Force `tox` to update `pip` (fixes `psycopg2-binary @ 2.9.5`…
iknox-fa Oct 25, 2022
1916784
Ct 1167/030 statement tests conversion (#6109)
VersusFacit Oct 26, 2022
7b73264
switch out to use internal action for triage labels (#6120)
emmyoop Oct 27, 2022
77dfec7
more ergonomic profile name handling (#6157)
iknox-fa Oct 27, 2022
fc00239
point to correct workflow (#6161)
emmyoop Oct 27, 2022
8145eed
revert to community action (#6163)
emmyoop Oct 27, 2022
be4a91a
Convert messages to struct logs (#6064)
emmyoop Oct 31, 2022
a427484
converting 023_exit_codes_tests (#6105)
MichelleArk Nov 1, 2022
d23285b
Add new index.html and changelog yaml files from dbt-docs (#6112)
FishtownBuildBot Nov 2, 2022
8e28f59
Bump python from 3.10.7-slim-bullseye to 3.11.0-slim-bullseye in /doc…
dependabot[bot] Nov 2, 2022
c3ccbe3
add python version and upgrade action (#6204)
emmyoop Nov 3, 2022
cfad27f
add typing to DepsTask.run (#6192)
MichelleArk Nov 3, 2022
d0543c9
Updates lib to use new profile name functionality (#6202)
racheldaniel Nov 4, 2022
68d06d8
Combine various print result log events with different levels (#6174)
gshank Nov 4, 2022
6c76137
CT 1443 remove root path (#6172)
gshank Nov 4, 2022
930bd35
properly track hook running (#6059)
ChenyuLInx Nov 7, 2022
4e78618
Convert threading tests to pytest (#6226)
stu-k Nov 8, 2022
d5e9ce1
Convert color tests to pytest (#6230)
stu-k Nov 8, 2022
f022435
Convert postgres index tests (#6228)
stu-k Nov 8, 2022
73116fb
feature/favor-state-node (#5859)
josephberni Nov 9, 2022
9f280a8
Update colorama requirement from <0.4.6,>=0.3.9 to >=0.3.9,<0.4.7 in …
dependabot[bot] Nov 13, 2022
39c5c42
converting 044_test_run_operations (#6122)
MichelleArk Nov 14, 2022
66ac107
[CT-1262] Convert dbt_debug (#6125)
McKnight-42 Nov 14, 2022
eae9867
s/gitlab/github for flake8 precommit repo (#6252)
MichelleArk Nov 15, 2022
9297e4d
Update pathspec requirement from ~=0.9.0 to >=0.9,<0.11 in /core (#5917)
dependabot[bot] Nov 16, 2022
a235abd
Add new index.html and changelog yaml files from dbt-docs (#6265)
FishtownBuildBot Nov 16, 2022
9877648
Revert "Bump python from 3.10.7-slim-bullseye to 3.11.0-slim-bullseye…
leahwicz Nov 17, 2022
517576c
add back in conditional node length check (#6298)
emmyoop Nov 22, 2022
7d70664
CT 1537 fix event test and rename a couple of fields (#6293)
gshank Nov 22, 2022
bce0e7c
BaseContext: expose md5 function in context (#6247)
haritamar Nov 28, 2022
55db15a
Convert test 067. (#6305)
VersusFacit Nov 29, 2022
020f639
Update stale.yml (#6258)
leahwicz Nov 29, 2022
b344041
Add GHA workflow to build CLI API docs (#6187)
stu-k Nov 29, 2022
47c2edb
Ct 1518/convert 063 relation names tests (#6304)
VersusFacit Nov 29, 2022
c3be975
Ct 288/convert 070 incremental test (#6330)
VersusFacit Nov 29, 2022
b5d303f
Bump mashumaro[msgpack] from 3.0.4 to 3.1 in /core (#6108)
dependabot[bot] Nov 30, 2022
2289e45
Exposures support metrics (#6342)
MichelleArk Dec 1, 2022
481235a
clarify error log for number of allowed models in a Python file (#6251)
justbldwn Dec 1, 2022
1fbcaa4
reformatting of test after some spike investigation (#6314)
McKnight-42 Dec 1, 2022
85d0b5a
Reverting back to older ubuntu image (#6363)
leahwicz Dec 2, 2022
67a8138
[fix] Fix the partial parse write path (#6081)
z3z1ma Dec 2, 2022
ebfcf2a
Update `core/dbt/README.md` to match current (#6371)
dbeatty10 Dec 2, 2022
16f529e
CT 1477 enrich logging events with data similar to legacy logger (#6325)
gshank Dec 3, 2022
540c3b7
Prevent docs gen workflow on forks (#6390)
stu-k Dec 6, 2022
60f8005
CT-1405: Refactor event logging code (#6291)
peterallenwebb Dec 6, 2022
b9a35da
Fix intermittent database connection failure in Windows CI test (#6395)
dbeatty10 Dec 7, 2022
0721f2c
Bump mashumaro[msgpack] from 3.1.1 to 3.2 in /core (#6375)
dependabot[bot] Dec 7, 2022
1b6fed2
CT 1604 remove compiled classes (#6384)
gshank Dec 7, 2022
9c91f3a
Adjust tox passenv to be multiline (#6405)
jtcohen6 Dec 7, 2022
99f27de
Feature/dbt deps tarball (#4689)
timle2 Dec 7, 2022
bef6edb
Fix dbt.config.get default values (python-model) (#6317)
devmessias Dec 7, 2022
0544b08
Add support for Python 3.11 (#6326)
iknox-fa Dec 8, 2022
0fbbc89
Remove PR from most changelog kinds (#6374)
emmyoop Dec 12, 2022
83b1fee
Add aranke to core committers (#6431)
aranke Dec 12, 2022
8478262
Update docker README (#6423)
jaypeedevlin Dec 13, 2022
fafd5ed
CT 1644 node cleanup (#6427)
gshank Dec 13, 2022
3d54a83
[CT-1284] Change Python model default materialization to table (#6432)
aranke Dec 13, 2022
c00052c
Add Optional back on "database" field of HasRelationMetadata (#6439)
gshank Dec 13, 2022
05dc021
Bumping version to 1.4.0b1 and generate changelog (#6440)
github-actions[bot] Dec 14, 2022
5e4e917
CT-1685: Restore certain aspects of legacy logging behavior important…
peterallenwebb Dec 14, 2022
7e90e06
Paw/ct 1652 restore default logging (#6447)
peterallenwebb Dec 14, 2022
e8da84f
Feature/support incremental predicates (#5702)
dave-connors-3 Dec 14, 2022
df93858
Updating 1.4.0b1 changelog (#6450)
leahwicz Dec 15, 2022
b9bdb77
Fix dependency changelog kind (#6452)
emmyoop Dec 19, 2022
304797b
exception cleanup (#6347)
emmyoop Dec 20, 2022
1e35339
Fix typo in util.py (#6037)
eltociear Dec 20, 2022
c39ea80
add back validator_error_message (#6465)
emmyoop Dec 20, 2022
ce9d0af
[CT-1591] Don't parse empty Python files (#6433)
aranke Dec 20, 2022
9ecb6e5
Treat dense text blobs as binary for `git grep` (#6462)
dbeatty10 Dec 21, 2022
76fd12c
adding pre-commit install to make dev (#6417)
justbldwn Jan 3, 2023
6ef3fbb
Partial parsing bug with empty schema file - ensure None is not passe…
gshank Jan 3, 2023
8217ad4
Fix issue link for 5859 changelog entry (#6496)
jtcohen6 Jan 4, 2023
748a932
Update agate requirement from <1.6.4,>=1.6 to >=1.6,<1.7.1 in /core (…
dependabot[bot] Jan 4, 2023
d453964
CT 1551 partial parsing logging events (#6474)
gshank Jan 4, 2023
5453840
DBT_FAVOR_STATE_STATE -> DBT_FAVOR_STATE (#6392)
NiallRees Jan 4, 2023
9d6f961
🎨 add missing fstrings, convert format to fstring (#6243)
justbldwn Jan 5, 2023
9ef2366
Updating metric attributes renamed event (#6518)
callum-mcdata Jan 5, 2023
d43c070
Making Metric Timestamps Optional (#6402)
callum-mcdata Jan 5, 2023
94d6d19
[CT-1693] Port severity test to Pytest (#6537)
aranke Jan 6, 2023
d9a4ee1
CT 1549 reorg logging events to have two top level keys (#6553)
gshank Jan 9, 2023
02c2047
add deprecation decorator (#6540)
emmyoop Jan 9, 2023
ab3f8dc
Ct 1517/convert 060 persist docs (#6409)
VersusFacit Jan 9, 2023
34fa703
fix log msg format (#6557)
emmyoop Jan 9, 2023
294def2
Fix event level regression (#6556)
peterallenwebb Jan 9, 2023
2b0f659
[CT-1694] Deprecate event tracking tests (#6538)
aranke Jan 9, 2023
89cc89d
Fix changelog entry for 5989/6432 (#6560)
jtcohen6 Jan 10, 2023
9eb82c6
Remove duplicated changelog entry for 5521 (#6563)
dbeatty10 Jan 10, 2023
4d6352d
CT-1645: Bump mashumaro version to receive regression fix, and add un…
peterallenwebb Jan 10, 2023
b9fdfd9
Adds the meta field to node_info in logs (#6493)
tmastny Jan 10, 2023
b13b0e9
Re-factor list of YAML keys for hooks to late-render (#6435)
dbeatty10 Jan 10, 2023
0dbdece
Ct 1716 cleanup logging events (#6561)
gshank Jan 10, 2023
457ff3e
fixed minor typos (#6499)
nshuman1 Jan 10, 2023
5da6360
Adds buildable selection mode (#6366)
AGPapa Jan 10, 2023
0fc080d
add defer_to_manifest in before_run to fix faulty deferred docs gener…
mivanicova Jan 10, 2023
eb200b4
Rename exceptions (#6539)
emmyoop Jan 10, 2023
dd4b47d
Check length of escaped strings in the adapter test (#6567)
dbeatty10 Jan 11, 2023
7a61602
Add --warn-error-options (#6520)
MichelleArk Jan 11, 2023
86e8722
Call `update_event_status` earlier + rename an event (#6572)
jtcohen6 Jan 12, 2023
1c7c23a
convert 043_custom_alias_tests (#6590)
MichelleArk Jan 12, 2023
d74ae19
Bumping version to 1.5.0a1 and generate changelog (#6593)
github-actions[bot] Jan 12, 2023
2bfc691
finish message rename in types.proto (#6594)
emmyoop Jan 12, 2023
f789b25
convert adapter table materialization test (#6595)
ChenyuLInx Jan 13, 2023
7077c47
converting 022_test_timezones (#6588)
MichelleArk Jan 13, 2023
585e7c5
migrate ref override (#6600)
ChenyuLInx Jan 13, 2023
c40b488
convert 037_external_references (#6589)
MichelleArk Jan 13, 2023
20c95a4
convert 057_run_query_tests (#6607)
MichelleArk Jan 13, 2023
065ab2e
Reformat `tests/` (#6622)
jtcohen6 Jan 16, 2023
e1b5e68
Convert 068_partial_parsing_tests (#6614)
gshank Jan 17, 2023
89d111a
CT 1440 Fix code to emit ConnectionReused event (#6605)
gshank Jan 17, 2023
43e24c5
update gh action set-output variables (#6635)
davidbloss Jan 18, 2023
0a03355
update test matrix (#6604)
emmyoop Jan 18, 2023
066346f
convert 038_caching_tests (#6612)
jtcohen6 Jan 18, 2023
c7fb9a1
Convert test and make it a bit more pytest-onic
VersusFacit Jan 19, 2023
e2fe29b
Ax old integration test.
VersusFacit Jan 19, 2023
7bc1a66
Run black on test conversion
VersusFacit Jan 19, 2023
f74bd5c
I didn't like how pytest was running the fixture so wrapped it into a…
VersusFacit Jan 19, 2023
fa7c4d1
Respect quoting config in dbt-py models (#6620)
jtcohen6 Jan 19, 2023
b05582d
mv `on_schema_change` tests -> "adapter zone" (#6618)
jtcohen6 Jan 19, 2023
07a004b
convert 062_defer_state_tests (#6616)
jtcohen6 Jan 19, 2023
f841a7c
add backwards compatibility and default argument for `incremental_pre…
dave-connors-3 Jan 19, 2023
6954c4d
CT-1786: Port docs tests to pytest (#6608)
peterallenwebb Jan 19, 2023
9801eeb
Consolidate changie entries from #6620 (#6684)
jtcohen6 Jan 20, 2023
3aeab73
convert 069_build_tests (#6678)
MichelleArk Jan 20, 2023
a181cee
Improve error message for packages missing `dbt_project.yml` (#6685)
dbeatty10 Jan 20, 2023
93619a9
Ct 738/dbt debug log fix (#6541)
VersusFacit Jan 21, 2023
5c765bf
Cheeky performance improvement on big DAGs (#6694)
boxysean Jan 23, 2023
7b464b8
CT-1718: Add Note and Formatting event types (#6691)
peterallenwebb Jan 23, 2023
17014bf
add adapter_response for test (#6645)
aezomz Jan 24, 2023
e2ccf01
CT 1886 include adapter_response in NodeFinished log message (#6709)
gshank Jan 24, 2023
cbb9117
test_init conversion (#6610)
MichelleArk Jan 24, 2023
db99e2f
Event Clean-Up (#6716)
peterallenwebb Jan 25, 2023
da47b90
[CT-1630] Convert Column_types tests (#6690)
McKnight-42 Jan 25, 2023
a34521e
CT 1894 log partial parsing var changes and sort cli vars before hash…
gshank Jan 25, 2023
b0651b1
change `exposure_content` to `source_content` (#6739)
Mathyoub Jan 26, 2023
39df7a8
Merge converted test into persist docs.
VersusFacit Jan 26, 2023
c65ba11
Ct 1827/064 column comments tests conversion (#6654)
VersusFacit Jan 26, 2023
c2c4757
Graph Analysis Optimization for Large Dags (#6720)
peterallenwebb Jan 26, 2023
3f96fad
Ct 1629/052 column quoting tests conversion (#6652)
VersusFacit Jan 26, 2023
36b8173
Add clearer directions for custom test suite vars in Makefile.
VersusFacit Jan 26, 2023
178edd8
Fix up PR for review
VersusFacit Jan 26, 2023
9c1ac39
Fix erroneous whitespace.
VersusFacit Jan 26, 2023
638e43f
Fix a spelling error.
VersusFacit Jan 26, 2023
84f5397
Merge branch 'main' into CT-1827/064_column_comments_tests_conversion
VersusFacit Jan 27, 2023
72ea241
[CT-1841] Convert custom target test to Pytest
aranke Jan 27, 2023
5e8e2aa
Merge branch 'main' into CT-1827/064_column_comments_tests_conversion
VersusFacit Jan 27, 2023
0fd3e3a
Move persist docs tests to the adapter zone. Prep for adapter tests.
VersusFacit Jan 27, 2023
6984636
Fix up test names
VersusFacit Jan 27, 2023
82d9b2f
[CI/CD] Update release workflow and introduce workflow for nightly re…
alexander-smolyakov Jan 27, 2023
dd53725
Adding nssalian to committers list
nssalian Jan 27, 2023
c653330
Adding nssalian to committers list (#6769)
nssalian Jan 27, 2023
19ae035
Nuke test/integration
aranke Jan 27, 2023
fa423a4
Add documentation to discourage makefile edits but provide override t…
VersusFacit Jan 27, 2023
0304b61
Fix quotation marks. Very strange behavior
VersusFacit Jan 27, 2023
5ce80fe
Stand-alone Python module for PostgresColumn
nssalian Jan 28, 2023
ffb3e42
Compact code and verify quotations happy inside bash and python.
VersusFacit Jan 28, 2023
a8abc49
[CT-1940] Stand-alone Python module for PostgresColumn (#6773)
nssalian Jan 28, 2023
f43cf83
Fix name to be less confusing.
VersusFacit Jan 28, 2023
b9cf9a3
Update release workflow
alexander-smolyakov Jan 30, 2023
92d1ef8
Update release workflow (#6778)
alexander-smolyakov Jan 30, 2023
d2f3cdd
[CT-1841] Convert custom target test to Pytest (#6765)
aranke Jan 30, 2023
ff3b9d6
Merge branch 'ns/add-to-committer-list' into merge_main_to_feature_3/…
iknox-fa Jan 31, 2023
710006e
Merge branch 'ns/ct-1940-pythonmodule-postgrescolumn' into merge_main…
iknox-fa Jan 31, 2023
4f395b0
Merge branch 'users/alexander-smolyakov/release-workflow-update-secrt…
iknox-fa Jan 31, 2023
f9321ce
Merge branch 'ct-1841' into merge_main_to_feature_3/click-cli
iknox-fa Jan 31, 2023
b46c606
[CT-1947] Alias `--models` to `--select` for all commands except `dbt…
aranke Jan 31, 2023
95c34b9
fix contributor list generation
emmyoop Jan 31, 2023
c56749e
Add generated CLI API docs
FishtownBuildBot Jan 31, 2023
cc28d99
Remove test_params_are_alpha_sorted
aranke Jan 31, 2023
0eec434
Implement --version in click
stu-k Jan 31, 2023
93f38cc
Add generated CLI API docs
FishtownBuildBot Jan 31, 2023
256684f
Add internal exception to dbtRunner
stu-k Jan 31, 2023
0cff15a
Regen docs
stu-k Jan 31, 2023
502906d
Remove unused pprint
stu-k Jan 31, 2023
1e7c882
Add generated CLI API docs
FishtownBuildBot Jan 31, 2023
622e5fd
fix contributor list generation (#6799)
emmyoop Jan 31, 2023
3b08c01
Merge branch 'feature/click-cli' into merge_main_to_feature_3/click-cli
iknox-fa Jan 31, 2023
7e2cbb9
Fold comments into Makefile.
VersusFacit Jan 31, 2023
5dd107d
Merge branch 'ct-1947' into merge_main_to_feature_3/click-cli
iknox-fa Jan 31, 2023
afdad5e
Merge branch 'CT-1926/migrate-version-task-2' into merge_main_to_feat…
iknox-fa Jan 31, 2023
42b7caa
Ct 1827/064 column comments tests conversion (#6766)
VersusFacit Jan 31, 2023
ee4a83d
move test_store_test_failures.py to adapter zone
colin-rogers-dbt Jan 31, 2023
1a6e4a0
Add clearer directions for custom test suite vars in Makefile. (#6764)
VersusFacit Jan 31, 2023
753b069
Merge branch 'er/ct-1562-fix-contributors' into merge_main_to_feature…
iknox-fa Jan 31, 2023
955e9a9
Merge branch 'CT-1827/064_column_comments_tests_conversion' into merg…
iknox-fa Jan 31, 2023
949c273
Merge branch 'CT-1874/adjust_makefile_integration_test_job' into merg…
iknox-fa Jan 31, 2023
383e349
remove global WIP
ChenyuLInx Jan 27, 2023
5cee81f
flags mostly working, missing dir set from previous
ChenyuLInx Jan 31, 2023
902467a
more work on flags
ChenyuLInx Jan 31, 2023
2b7afc8
29 tests failing
ChenyuLInx Feb 1, 2023
9095034
Add generated CLI API docs
FishtownBuildBot Feb 1, 2023
0d50e03
Merge branch 'cl/consolidate_flags' into merge_main_to_feature_3/clic…
iknox-fa Feb 1, 2023
563fd0d
Add generated CLI API docs
FishtownBuildBot Feb 1, 2023
ccd8e38
Merge branch 'main' into merge_main_to_feature_3/click-cli
iknox-fa Feb 1, 2023
62481b3
Modify semver.py to not use packaging.version.parse
gshank Feb 1, 2023
7dfd33c
Changie
gshank Feb 1, 2023
af0b608
update regex to match all iterations
emmyoop Feb 1, 2023
003ad78
flags mostly working
ChenyuLInx Feb 2, 2023
c6156fa
Add generated CLI API docs
FishtownBuildBot Feb 2, 2023
4ac3dc5
convert to num to match all adapters
emmyoop Feb 2, 2023
c16c46d
remove test/integration
ChenyuLInx Feb 2, 2023
d9424cc
CT 2000 fix semver prerelease comparisons (#6838)
gshank Feb 2, 2023
2245d8d
update regex to match all iterations (#6839)
emmyoop Feb 2, 2023
b2ea2b8
move test_store_test_failures.py to adapter zone (#6816)
colin-rogers-dbt Feb 2, 2023
8cbefde
more flag fix
ChenyuLInx Feb 2, 2023
93ce195
remove running integration test
ChenyuLInx Feb 2, 2023
8519235
remove one global
ChenyuLInx Feb 2, 2023
af85d4d
Merge branch 'cl/consolidate_flags' of github.com:dbt-labs/dbt-core i…
iknox-fa Feb 3, 2023
45478d1
Merge branch 'cl/consolidate_flags' into merge_main_to_feature_3/clic…
iknox-fa Feb 3, 2023
b5a2a07
Merge branch 'ct-2000-fix_semver_prerelease_comparisons' into merge_m…
iknox-fa Feb 3, 2023
24509ee
Merge branch 'er/fix-version-bump' into merge_main_to_feature_3/click…
iknox-fa Feb 3, 2023
d7decfd
Add generated CLI API docs
FishtownBuildBot Feb 3, 2023
22371ec
Merge branch 'moveStoreTestFailsToAdapterZone' into merge_main_to_fea…
iknox-fa Feb 3, 2023
fd625cb
set_args in deprecation unit test + use renamed flags as globals
MichelleArk Feb 3, 2023
82920bf
fix manifest unit test, s/DUPLICATE_PARAMS/EXPECTED_DUPLICATE_PARAMS,…
MichelleArk Feb 3, 2023
51eaafc
Add generated CLI API docs
FishtownBuildBot Feb 3, 2023
75092f0
Merge branch 'cl/consolidate_flags' of github.com:dbt-labs/dbt-core i…
iknox-fa Feb 3, 2023
4d73135
Merge branch 'cl/consolidate_flags' into merge_main_to_feature_3/clic…
iknox-fa Feb 3, 2023
a22bdfe
Merge branch 'merge_main_to_feature_3/click-cli' of github.com:dbt-la…
iknox-fa Feb 3, 2023
d144ac5
fix --version
MichelleArk Feb 3, 2023
554ca6e
Merge branch 'cl/consolidate_flags' of github.com:dbt-labs/dbt-core i…
iknox-fa Feb 3, 2023
a8d16cc
Merge branch 'cl/consolidate_flags' into merge_main_to_feature_3/clic…
iknox-fa Feb 3, 2023
4c63b63
[CT-1959]: moving simple_seed tests to adapter zone (#6859)
nssalian Feb 7, 2023
52ad1e6
Merge branch 'feature/click-cli' into merge_main_to_feature_3/click-cli
MichelleArk Feb 7, 2023
9e2d5d3
Add generated CLI API docs
FishtownBuildBot Feb 7, 2023
34118ed
Merge branch 'main' into merge_main_to_feature_3/click-cli
MichelleArk Feb 7, 2023
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
24 changes: 15 additions & 9 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
[bumpversion]
current_version = 1.5.0a1
parse = (?P<major>\d+)
\.(?P<minor>\d+)
\.(?P<patch>\d+)
((?P<prekind>a|b|rc)
(?P<pre>\d+) # pre-release version num
)(\.(?P<nightly>[a-z..0-9]+)

# `parse` allows parsing the version into the parts we need to check. There are some
# unnamed groups and that's okay because they do not need to be audited. If any part
# of the version passed and does not match the regex, it will fail.
# expected matches: `1.5.0`, `1.5.0a1`, `1.5.0a1.dev123457+nightly`
# excepted failures: `1`, `1.5`, `1.5.2-a1`, `text1.5.0`
parse = (?P<major>[\d]+) # major version number
\.(?P<minor>[\d]+) # minor version number
\.(?P<patch>[\d]+) # patch version number
(((?P<prekind>a|b|rc) # optional pre-release type
?(?P<num>[\d]+?)) # optional pre-release version number
\.?(?P<nightly>[a-z0-9]+\+[a-z]+)? # optional nightly release indicator
)?
serialize =
{major}.{minor}.{patch}{prekind}{pre}.{nightly}
{major}.{minor}.{patch}{prekind}{pre}
{major}.{minor}.{patch}{prekind}{num}.{nightly}
{major}.{minor}.{patch}{prekind}{num}
{major}.{minor}.{patch}
commit = False
tag = False
Expand All @@ -23,7 +29,7 @@ values =
rc
final

[bumpversion:part:pre]
[bumpversion:part:num]
first_value = 1

[bumpversion:part:nightly]
Expand Down
6 changes: 6 additions & 0 deletions .changes/unreleased/Features-20230126-154716.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Features
body: Adjust makefile to have clearer instructions for CI env var changes.
time: 2023-01-26T15:47:16.887327-08:00
custom:
Author: versusfacit
Issue: "6689"
6 changes: 6 additions & 0 deletions .changes/unreleased/Features-20230127-162812.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Features
body: Stand-alone Python module for PostgresColumn
time: 2023-01-27T16:28:12.212427-08:00
custom:
Author: nssalian
Issue: "6772"
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20230201-154418.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Remove pin on packaging and stop using it for prerelease comparisons
time: 2023-02-01T15:44:18.279158-05:00
custom:
Author: gshank
Issue: "6834"
6 changes: 6 additions & 0 deletions .changes/unreleased/Under the Hood-20230126-164741.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Under the Hood
body: '[CT-1841] Convert custom target test to Pytest'
time: 2023-01-26T16:47:41.198714-08:00
custom:
Author: aranke
Issue: "6638"
6 changes: 6 additions & 0 deletions .changes/unreleased/Under the Hood-20230203-143551.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Under the Hood
body: Moving simple_seed to adapter zone to help adapter test conversions
time: 2023-02-03T14:35:51.481856-08:00
custom:
Author: nssalian
Issue: CT-1959
20 changes: 13 additions & 7 deletions .changie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,28 @@ footerFormat: |
{{- /* we only want to include non-core team contributors */}}
{{- if not (has $authorLower $core_team)}}
{{- $changeList := splitList " " $change.Custom.Author }}
{{- /* Docs kind link back to dbt-docs instead of dbt-core issues */}}
{{- $IssueList := list }}
{{- $changeLink := $change.Kind }}
{{- if or (eq $change.Kind "Dependencies") (eq $change.Kind "Security") }}
{{- $changeLink = "[#nbr](https://github.com/dbt-labs/dbt-core/pull/nbr)" | replace "nbr" $change.Custom.PR }}
{{- else if eq $change.Kind "Docs"}}
{{- $changeLink = "[dbt-docs/#nbr](https://github.com/dbt-labs/dbt-docs/issues/nbr)" | replace "nbr" $change.Custom.Issue }}
{{- $changes := splitList " " $change.Custom.PR }}
{{- range $issueNbr := $changes }}
{{- $changeLink := "[#nbr](https://github.com/dbt-labs/dbt-core/pull/nbr)" | replace "nbr" $issueNbr }}
{{- $IssueList = append $IssueList $changeLink }}
{{- end -}}
{{- else }}
{{- $changeLink = "[#nbr](https://github.com/dbt-labs/dbt-core/issues/nbr)" | replace "nbr" $change.Custom.Issue }}
{{- $changes := splitList " " $change.Custom.Issue }}
{{- range $issueNbr := $changes }}
{{- $changeLink := "[#nbr](https://github.com/dbt-labs/dbt-core/issues/nbr)" | replace "nbr" $issueNbr }}
{{- $IssueList = append $IssueList $changeLink }}
{{- end -}}
{{- end }}
{{- /* check if this contributor has other changes associated with them already */}}
{{- if hasKey $contributorDict $author }}
{{- $contributionList := get $contributorDict $author }}
{{- $contributionList = append $contributionList $changeLink }}
{{- $contributionList = concat $contributionList $IssueList }}
{{- $contributorDict := set $contributorDict $author $contributionList }}
{{- else }}
{{- $contributionList := list $changeLink }}
{{- $contributionList := $IssueList }}
{{- $contributorDict := set $contributorDict $author $contributionList }}
{{- end }}
{{- end}}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ jobs:
nightly_release: ${{ inputs.nightly_release }}

secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.PRODUCTION_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.PRODUCTION_AWS_SECRET_ACCESS_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

github-release:
name: GitHub Release
Expand Down Expand Up @@ -212,7 +212,7 @@ jobs:

slack-notification:
name: Slack Notification
if: ${{ failure() }}
if: ${{ failure() && (!inputs.test_run || inputs.nightly_release) }}

needs:
[
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ coverage.xml
*,cover
.hypothesis/
test.env
makefile.test.env
*.pytest_cache/


Expand Down
34 changes: 21 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,26 @@ ifeq ($(USE_DOCKER),true)
DOCKER_CMD := docker-compose run --rm test
endif

LOGS_DIR := ./logs
#
# To override CI_flags, create a file at this repo's root dir named `makefile.test.env`. Fill it
# with any ENV_VAR overrides required by your test environment, e.g.
# DBT_TEST_USER_1=user
# LOG_DIR="dir with a space in it"
#
# Warn: Restrict each line to one variable only.
#
ifeq (./makefile.test.env,$(wildcard ./makefile.test.env))
include ./makefile.test.env
endif

# Optional flag to invoke tests using our CI env.
# But we always want these active for structured
# log testing.
CI_FLAGS =\
DBT_TEST_USER_1=dbt_test_user_1\
DBT_TEST_USER_2=dbt_test_user_2\
DBT_TEST_USER_3=dbt_test_user_3\
RUSTFLAGS="-D warnings"\
LOG_DIR=./logs\
DBT_LOG_FORMAT=json
DBT_TEST_USER_1=$(if $(DBT_TEST_USER_1),$(DBT_TEST_USER_1),dbt_test_user_1)\
DBT_TEST_USER_2=$(if $(DBT_TEST_USER_2),$(DBT_TEST_USER_2),dbt_test_user_2)\
DBT_TEST_USER_3=$(if $(DBT_TEST_USER_3),$(DBT_TEST_USER_3),dbt_test_user_3)\
RUSTFLAGS=$(if $(RUSTFLAGS),$(RUSTFLAGS),"-D warnings")\
LOG_DIR=$(if $(LOG_DIR),$(LOG_DIR),./logs)\
DBT_LOG_FORMAT=$(if $(DBT_LOG_FORMAT),$(DBT_LOG_FORMAT),json)


.PHONY: dev_req
dev_req: ## Installs dbt-* packages in develop mode along with only development dependencies.
Expand Down Expand Up @@ -66,7 +74,7 @@ test: .env ## Runs unit tests with py and code checks against staged changes.
.PHONY: integration
integration: .env ## Runs postgres integration tests with py-integration
@\
$(if $(USE_CI_FLAGS), $(CI_FLAGS)) $(DOCKER_CMD) tox -e py-integration -- -nauto
$(CI_FLAGS) $(DOCKER_CMD) tox -e py-integration -- -nauto

.PHONY: integration-fail-fast
integration-fail-fast: .env ## Runs postgres integration tests with py-integration in "fail fast" mode.
Expand All @@ -76,9 +84,9 @@ integration-fail-fast: .env ## Runs postgres integration tests with py-integrati
.PHONY: interop
interop: clean
@\
mkdir $(LOGS_DIR) && \
mkdir $(LOG_DIR) && \
$(CI_FLAGS) $(DOCKER_CMD) tox -e py-integration -- -nauto && \
LOG_DIR=$(LOGS_DIR) cargo run --manifest-path test/interop/log_parsing/Cargo.toml
LOG_DIR=$(LOG_DIR) cargo run --manifest-path test/interop/log_parsing/Cargo.toml

.PHONY: setup-db
setup-db: ## Setup Postgres database with docker-compose for system testing.
Expand Down
2 changes: 1 addition & 1 deletion core/dbt/config/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,8 @@ def create_project(self, rendered: RenderComponents) -> "Project":

flag_target_path = str(flags.TARGET_PATH) if flags.TARGET_PATH else None
target_path: str = flag_or(flag_target_path, cfg.target_path, "target")

log_path: str = str(flags.LOG_PATH)

clean_targets: List[str] = value_or(cfg.clean_targets, [target_path])
packages_install_path: str = value_or(cfg.packages_install_path, "dbt_packages")
# in the default case we'll populate this once we know the adapter type
Expand Down
Binary file modified core/dbt/docs/build/doctrees/environment.pickle
Binary file not shown.
47 changes: 39 additions & 8 deletions core/dbt/semver.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
from dataclasses import dataclass
import re
import warnings
from typing import List

from packaging import version as packaging_version

from dbt.exceptions import VersionsNotCompatibleError
import dbt.utils

Expand Down Expand Up @@ -70,6 +67,11 @@ class VersionSpecification(dbtClassMixin):
_VERSION_REGEX = re.compile(_VERSION_REGEX_PAT_STR, re.VERBOSE)


def _cmp(a, b):
"""Return negative if a<b, zero if a==b, positive if a>b."""
return (a > b) - (a < b)


@dataclass
class VersionSpecifier(VersionSpecification):
def to_version_string(self, skip_matcher=False):
Expand Down Expand Up @@ -142,13 +144,19 @@ def compare(self, other):
return 1
if b is None:
return -1
# This suppresses the LegacyVersion deprecation warning
with warnings.catch_warnings():
warnings.simplefilter("ignore", category=DeprecationWarning)
if packaging_version.parse(a) > packaging_version.parse(b):

# Check the prerelease component only
prcmp = self._nat_cmp(a, b)
if prcmp != 0: # either -1 or 1
return prcmp
# else is equal and will fall through

else: # major/minor/patch, should all be numbers
if a > b:
return 1
elif packaging_version.parse(a) < packaging_version.parse(b):
elif a < b:
return -1
# else is equal and will fall through

equal = (
self.matcher == Matchers.GREATER_THAN_OR_EQUAL
Expand Down Expand Up @@ -212,6 +220,29 @@ def is_upper_bound(self):
def is_exact(self):
return self.matcher == Matchers.EXACT

@classmethod
def _nat_cmp(cls, a, b):
def cmp_prerelease_tag(a, b):
if isinstance(a, int) and isinstance(b, int):
return _cmp(a, b)
elif isinstance(a, int):
return -1
elif isinstance(b, int):
return 1
else:
return _cmp(a, b)

a, b = a or "", b or ""
a_parts, b_parts = a.split("."), b.split(".")
a_parts = [int(x) if re.match(r"^\d+$", x) else x for x in a_parts]
b_parts = [int(x) if re.match(r"^\d+$", x) else x for x in b_parts]
for sub_a, sub_b in zip(a_parts, b_parts):
cmp_result = cmp_prerelease_tag(sub_a, sub_b)
if cmp_result != 0:
return cmp_result
else:
return _cmp(len(a), len(b))


@dataclass
class VersionRange:
Expand Down
18 changes: 18 additions & 0 deletions core/dbt/tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
# rm_file
# write_file
# read_file
# mkdir
# rm_dir
# get_artifact
# update_config_file
# write_config_file
Expand Down Expand Up @@ -166,6 +168,22 @@ def read_file(*paths):
return contents


# To create a directory
def mkdir(directory_path):
try:
os.makedirs(directory_path)
except FileExistsError:
raise FileExistsError(f"{directory_path} already exists.")


# To remove a directory
def rm_dir(directory_path):
try:
shutil.rmtree(directory_path)
except FileNotFoundError:
raise FileNotFoundError(f"{directory_path} does not exist.")


# Get an artifact (usually from the target directory) such as
# manifest.json or catalog.json to use in a test
def get_artifact(*paths):
Expand Down
2 changes: 1 addition & 1 deletion core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"minimal-snowplow-tracker==0.0.2",
"networkx>=2.3,<2.8.1;python_version<'3.8'",
"networkx>=2.3,<3;python_version>='3.8'",
"packaging>=20.9,<22.0",
"packaging>20.9",
"sqlparse>=0.2.3,<0.5",
"dbt-extractor~=0.4.1",
"typing-extensions>=3.7.4",
Expand Down
2 changes: 1 addition & 1 deletion plugins/postgres/dbt/adapters/postgres/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# these are mostly just exports, #noqa them so flake8 will be happy
from dbt.adapters.postgres.connections import PostgresConnectionManager # noqa
from dbt.adapters.postgres.connections import PostgresCredentials
from dbt.adapters.postgres.relation import PostgresColumn # noqa
from dbt.adapters.postgres.column import PostgresColumn # noqa
from dbt.adapters.postgres.relation import PostgresRelation # noqa: F401
from dbt.adapters.postgres.impl import PostgresAdapter

Expand Down
12 changes: 12 additions & 0 deletions plugins/postgres/dbt/adapters/postgres/column.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from dbt.adapters.base import Column


class PostgresColumn(Column):
@property
def data_type(self):
# on postgres, do not convert 'text' or 'varchar' to 'varchar()'
if self.dtype.lower() == "text" or (
self.dtype.lower() == "character varying" and self.char_size is None
):
return self.dtype
return super().data_type
2 changes: 1 addition & 1 deletion plugins/postgres/dbt/adapters/postgres/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from dbt.adapters.base.impl import AdapterConfig
from dbt.adapters.sql import SQLAdapter
from dbt.adapters.postgres import PostgresConnectionManager
from dbt.adapters.postgres import PostgresColumn
from dbt.adapters.postgres.column import PostgresColumn
from dbt.adapters.postgres import PostgresRelation
from dbt.dataclass_schema import dbtClassMixin, ValidationError
from dbt.exceptions import (
Expand Down
12 changes: 0 additions & 12 deletions plugins/postgres/dbt/adapters/postgres/relation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from dbt.adapters.base import Column
from dataclasses import dataclass
from dbt.adapters.base.relation import BaseRelation
from dbt.exceptions import DbtRuntimeError
Expand All @@ -21,14 +20,3 @@ def __post_init__(self):

def relation_max_name_length(self):
return 63


class PostgresColumn(Column):
@property
def data_type(self):
# on postgres, do not convert 'text' or 'varchar' to 'varchar()'
if self.dtype.lower() == "text" or (
self.dtype.lower() == "character varying" and self.char_size is None
):
return self.dtype
return super().data_type
1 change: 0 additions & 1 deletion test/unit/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
from .utils import normalize

INITIAL_ROOT = os.getcwd()
# Skip due to interface for config updated


@contextmanager
Expand Down
Loading