Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

chore/merge upstream 2024112801 #81

Merged
merged 620 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
620 commits
Select commit Hold shift + click to select a range
cc40f0d
fixed label filter (#2978)
hagen-danswer Oct 29, 2024
fcb94f1
Tiny logging clarity improvement (#2985)
Weves Oct 29, 2024
40a0f71
Temp fix to add retries to get_all_vespa_ids_for_document_id
Weves Oct 29, 2024
ea80cdc
init sqlalchemy in child process (#2987)
rkuo-danswer Oct 29, 2024
ea406c5
add extra tags to pruning logs (#2994)
rkuo-danswer Oct 30, 2024
8223dc7
add regeneration clarity (#2986)
pablonyx Oct 30, 2024
5be457e
Add alternative auth header (#2999)
Weves Oct 30, 2024
53d2d33
Refactor metadata
skylares Oct 30, 2024
73ee709
Fix typing errors
skylares Oct 30, 2024
7384ca8
clarity (#3001)
pablonyx Oct 30, 2024
f318e30
Minor theming (#2993)
pablonyx Oct 30, 2024
1a7d627
Disable Mediawiki Tests (#3005)
yuhongsun96 Oct 31, 2024
dba2d67
only warmup on index swap (#3003)
rkuo-danswer Oct 31, 2024
ff9d714
Gmail Connector Robustify (#3000)
yuhongsun96 Oct 31, 2024
231ab3f
Feature/indexing logs (#3002)
rkuo-danswer Oct 31, 2024
e3be318
Update connector.py
hagen-danswer Oct 31, 2024
4499c63
Fix model test action name
Weves Oct 31, 2024
787fdf2
Update README.md (#3011)
samarth29jc Oct 31, 2024
add87fa
remove endpoint (#3014)
pablonyx Oct 31, 2024
0b08bf4
Proper tenant reset (#3015)
pablonyx Oct 31, 2024
b34f586
Remove License Issues (#3013)
yuhongsun96 Nov 1, 2024
71d4fb9
Refactored Google Drive Connector + Permission Syncing (#2945)
hagen-danswer Nov 1, 2024
dc2dfeb
Fix pywikibot droppings (#2924)
rkuo-danswer Nov 1, 2024
4a23c87
Quicky
hagen-danswer Nov 1, 2024
ccdc09e
Merge pull request #3020 from danswer-ai/gdrive-interface
hagen-danswer Nov 1, 2024
6d543f3
Do not count API keys as users (#3022)
pablonyx Nov 1, 2024
753293c
Basic multi tenant api key (#3004)
pablonyx Nov 1, 2024
d66b81a
Feat/certificate (#2998)
pablonyx Nov 1, 2024
ecf4923
Fix answer with specified doc ids (#2703)
Weves Nov 1, 2024
7723132
minor foreign key update (#3007)
pablonyx Nov 1, 2024
645402c
Tremor -> Shadcn (#2983)
pablonyx Nov 1, 2024
12c82de
experimental github action to scan licenses
rkuo-danswer Nov 2, 2024
5e050f8
we didn't checkout the code, no trivy ignore
rkuo-danswer Nov 2, 2024
5439c33
don't scan the os packages
rkuo-danswer Nov 2, 2024
f981106
Update connector.py
hagen-danswer Nov 2, 2024
4fc8a35
try repo level scan
LostVector Nov 2, 2024
ea2da63
try installing npm deps
LostVector Nov 2, 2024
678ed23
codel permissions?
LostVector Nov 2, 2024
d3062ca
manual only for now
LostVector Nov 2, 2024
40beda3
try pip-license-checker
LostVector Nov 2, 2024
a1ae22e
fix run key
LostVector Nov 2, 2024
013292a
mypy fixes
hagen-danswer Nov 2, 2024
6f440d1
more mypy fixes
hagen-danswer Nov 2, 2024
4a6b8db
out of scope
hagen-danswer Nov 2, 2024
d7bcd32
out of scope
hagen-danswer Nov 2, 2024
2e49027
Merge pull request #2884 from skylares/sky-dev
hagen-danswer Nov 2, 2024
5e444d4
Cleaned up connector
hagen-danswer Nov 2, 2024
d652cb3
renamed variables
hagen-danswer Nov 2, 2024
6e8c88e
made id more unique
hagen-danswer Nov 2, 2024
6b4143c
ID fix
hagen-danswer Nov 2, 2024
83c299e
troll logger statement
hagen-danswer Nov 2, 2024
5d9b836
Merge pull request #3032 from danswer-ai/freshdesk-cleanup
hagen-danswer Nov 2, 2024
e4bb14d
Super user (#2944)
pablonyx Nov 2, 2024
5f5cc9a
Feature/redis connector refactor (#2992)
rkuo-danswer Nov 2, 2024
8bcf80a
minor nit
hagen-danswer Nov 3, 2024
70f703c
Merge pull request #3035 from danswer-ai/freshdesk-nit
hagen-danswer Nov 3, 2024
938d578
Upgrade to latest NextJS + switch to turbopack (#3027)
Weves Nov 3, 2024
19d6b63
temporary update (#3037)
pablonyx Nov 3, 2024
d4f38bb
Revert temporary modifications (#3038)
pablonyx Nov 3, 2024
46e5ffa
add validated + reformatted dynamic beat acquisition (#3006)
pablonyx Nov 3, 2024
93d0104
slight upgrade to image generation prompts (#3036)
pablonyx Nov 3, 2024
a7002df
add CSV display (#3028)
pablonyx Nov 3, 2024
51b79f6
Tool call per message (#3025)
pablonyx Nov 3, 2024
fac2b10
Last Message Too Large Logging (#3039)
yuhongsun96 Nov 3, 2024
56c3a5f
add POSTGRES_IDLE_SESSIONS_TIMEOUT (#3019)
rkuo-danswer Nov 3, 2024
c2d04f5
Add drive sections (#3040)
Weves Nov 3, 2024
c6e8bf2
add multiple formats to tools (#3041)
pablonyx Nov 3, 2024
bafb95d
Misc color clean up (#3026)
pablonyx Nov 3, 2024
8e55566
Fix slack bot form + LLM provider form
Weves Nov 4, 2024
2cd1e6b
gmail refactor + permission syncing (#3021)
hagen-danswer Nov 4, 2024
2cb33b1
add default api keys for cloud users (#3044)
pablonyx Nov 4, 2024
1d8e662
ensure we reset all (#3048)
pablonyx Nov 4, 2024
b6ecbbc
add to async get session as well (#3046)
rkuo-danswer Nov 4, 2024
9032fb4
Improve background token refresh
Weves Nov 4, 2024
ddae234
form
pablonyx Nov 5, 2024
dea7a8f
Clean up tooltips (#3047)
pablonyx Nov 5, 2024
b2c55eb
ensure props aligned (#3050)
pablonyx Nov 5, 2024
bd6baf3
update
pablonyx Nov 5, 2024
257dbec
k
pablonyx Nov 5, 2024
afce57b
clarity
pablonyx Nov 5, 2024
5b06b53
add sentry to spawned indexing task
rkuo-danswer Nov 5, 2024
6bf06ac
limit session scope of index attempt (use id's where appropriate as w…
rkuo-danswer Nov 5, 2024
08600db
Merge pull request #3056 from danswer-ai/form_stretch
hagen-danswer Nov 5, 2024
9ac256e
Merge branch 'main' of https://github.com/danswer-ai/danswer into bug…
rkuo-danswer Nov 5, 2024
7ff18e0
Create connector
skylares Nov 6, 2024
001fcb3
fix stale indexing tasks being allowed to run after a restart
rkuo-danswer Nov 5, 2024
583cd14
comment why we need sentry here
rkuo-danswer Nov 6, 2024
12cb77c
Merge pull request #3059 from danswer-ai/bugfix/sentry_indexing
rkuo-danswer Nov 6, 2024
864ac2a
need to see vespa url for container debugging
LostVector Nov 6, 2024
da6ed5b
Merge pull request #3066 from danswer-ai/bugfix/log-vespa-url
rkuo-danswer Nov 6, 2024
4087292
evaluate None to default
pablonyx Nov 6, 2024
ee4b334
Fix errors and cleanup
skylares Nov 6, 2024
467ce4e
fix usage report pagination
pablonyx Nov 6, 2024
3eef4e3
functioning
pablonyx Oct 31, 2024
2372e6a
update slack
pablonyx Oct 31, 2024
5a24ed2
updated cleanup
pablonyx Oct 31, 2024
06f937c
no typing
pablonyx Oct 31, 2024
4b152aa
update slack
pablonyx Oct 31, 2024
187a7d2
validated approach
pablonyx Oct 31, 2024
2d81710
minor udpate
pablonyx Oct 31, 2024
25f5c12
remove print
pablonyx Nov 1, 2024
faeb9f0
Merge pull request #3008 from danswer-ai/horizontal_slack
hagen-danswer Nov 6, 2024
43d8daa
update redirect
pablonyx Nov 6, 2024
07a1b49
update persona defaults (#3042)
pablonyx Nov 7, 2024
2758ffd
Google Drive Improvements (#3057)
hagen-danswer Nov 7, 2024
2b1dbde
minor improvements (#3081)
pablonyx Nov 7, 2024
1d0fb6d
Evaluate None to default (#3069)
pablonyx Nov 7, 2024
55919f5
PG Dev Max Connections (#3082)
yuhongsun96 Nov 7, 2024
95d9b33
Clean up connector
skylares Nov 8, 2024
0c45488
wait for db before allowing worker to proceed (reduces error spam on …
rkuo-danswer Nov 8, 2024
8137209
Fix failure cases
skylares Nov 8, 2024
c25f164
Remove linux
skylares Nov 8, 2024
ac51469
Merge branch 'main' into fireflies-dev
hagen-danswer Nov 8, 2024
1fb4cdf
Merge pull request #3073 from skylares/fireflies-dev
hagen-danswer Nov 8, 2024
f6d8f5c
Migrate tenant upgrades to data plane (#3051)
pablonyx Nov 8, 2024
cf5d394
adjust default postgres schema for slack listener (#3088)
pablonyx Nov 8, 2024
0a59efe
account for malformatted starter messages
pablonyx Nov 7, 2024
99fbfba
File Connector Metadata (#3089)
yuhongsun96 Nov 8, 2024
950b1c3
Merge pull request #3080 from danswer-ai/robust_assistant_description
rkuo-danswer Nov 8, 2024
2bbc5d5
fix saving docker logs (#3090)
rkuo-danswer Nov 8, 2024
4fb65dc
Reenable OpenAI Tokenizer (#3062)
yuhongsun96 Nov 8, 2024
9272d6e
Remove ee (#3093)
pablonyx Nov 9, 2024
a1b95df
Robustify cloud deployment + include initial KEDA configuration (#3094)
pablonyx Nov 9, 2024
cc2f584
Silence auth logs (#3098)
pablonyx Nov 9, 2024
9d57f34
re-enable helm (#3053)
rkuo-danswer Nov 10, 2024
ba805f7
New assistants api (#3097)
Weves Nov 11, 2024
5166649
Cleaner EE fallback for no op (#3106)
pablonyx Nov 11, 2024
f4a020b
moderate component fixes (#3095)
pablonyx Nov 12, 2024
942e47d
improved mobile scroll (#3110)
pablonyx Nov 12, 2024
021d0cf
Support LITELLM_EXTRA_BODY env variable (#3119)
Weves Nov 12, 2024
fdc4811
doc sync celery refactor (#3084)
hagen-danswer Nov 12, 2024
22189f0
Add referral source to cloud on data plane (#3096)
pablonyx Nov 13, 2024
6e29d19
Fix widget example
Weves Nov 13, 2024
227aff1
clean up logging in light worker (#3072)
rkuo-danswer Nov 13, 2024
490a687
update organization (#3118)
pablonyx Nov 13, 2024
eb0e20b
quick fix for google doc sync
hagen-danswer Nov 13, 2024
6066042
Merge pull request #3124 from danswer-ai/fix-doc-sync
hagen-danswer Nov 13, 2024
d703e69
limited role api keys (#3115)
rkuo-danswer Nov 13, 2024
60471b6
Added support for page within a page in Confluence (#3125)
hagen-danswer Nov 13, 2024
a50a394
Make curators able to create permission synced connectors (#3126)
hagen-danswer Nov 13, 2024
dcbea88
add creator id to cc pair (#3121)
rkuo-danswer Nov 13, 2024
485f3f7
Updated google copy and added non admin oauth support (#3120)
hagen-danswer Nov 13, 2024
65a205d
use text()
rkuo-danswer Nov 13, 2024
d68f8d6
scale indexing sql pool based on concurrency (#3130)
rkuo-danswer Nov 13, 2024
facf1d5
Cloud improvements (#3099)
pablonyx Nov 13, 2024
6e91964
minor clarity (#3116)
pablonyx Nov 14, 2024
7c84105
Cohere (#3111)
pablonyx Nov 14, 2024
21d5cc4
Merge pull request #3131 from danswer-ai/bugfix/session_text
rkuo-danswer Nov 14, 2024
54dc1ac
unnecessary python setup
rkuo-danswer Nov 14, 2024
637b6d9
Merge pull request #3135 from danswer-ai/bugfix/helm_ct_python_setup
rkuo-danswer Nov 14, 2024
97932dc
Fix Quotes Prompting (#3137)
yuhongsun96 Nov 15, 2024
ddff7ec
minor configuration updates (#3134)
pablonyx Nov 15, 2024
24be13c
Improved tokenizer fallback (#3132)
pablonyx Nov 15, 2024
7015e6f
Bugfix/overlapping connectors (#3138)
rkuo-danswer Nov 16, 2024
259fc04
Add error message on JSON decode error in CustomTool
Weves Nov 16, 2024
6e83fe3
reworked drive+confluence frontend and implied backend changes (#3143)
hagen-danswer Nov 16, 2024
b7de74f
Feature/playwright tests (#3129)
rkuo-danswer Nov 16, 2024
618bc02
Fixed int test (#3148)
hagen-danswer Nov 16, 2024
521425a
nits + pricing
pablonyx Nov 17, 2024
954b5b2
Made external permissioned users and slack users show diff (#3147)
hagen-danswer Nov 17, 2024
33ee899
Long term logs (#3150)
Weves Nov 18, 2024
a7d9566
Add assistant categories (#3064)
pablonyx Nov 18, 2024
aa37051
Bugfix/indexing redux (#3151)
rkuo-danswer Nov 18, 2024
d69180a
add additional theming options (#3155)
pablonyx Nov 18, 2024
6e698ac
Hardening deletion when cc pair relationships are left over (#3154)
rkuo-danswer Nov 19, 2024
e69303e
add helpful hint on 507 (#3157)
rkuo-danswer Nov 19, 2024
ce3124f
Extend query history API
Weves Nov 19, 2024
9b7cc83
add new date search filter (#3065)
pablonyx Nov 19, 2024
487ef4a
Merge pull request #3160 from danswer-ai/add-to-admin-chat-sessions-api
hagen-danswer Nov 19, 2024
eb81258
Update README.md
Weves Nov 19, 2024
e6df32d
improve logging around pruning
rkuo-danswer Nov 19, 2024
b712877
Merge pull request #3165 from danswer-ai/bugfix/pruning_logs
rkuo-danswer Nov 19, 2024
9209fc8
multiple slackbot support (#3077)
hagen-danswer Nov 20, 2024
2a54f14
ensure everythigng has a default max height in selectorformfield (#3174)
pablonyx Nov 20, 2024
645e7e8
Add Google Tag Manager for Web Cloud Build (#3173)
pablonyx Nov 20, 2024
e89dcd7
added logging and bugfixing to conf (#3167)
hagen-danswer Nov 20, 2024
0ff2565
ensure margin properly applied (#3176)
pablonyx Nov 20, 2024
8309f4a
test overlapping connectors (but using a source that is way too big a…
rkuo-danswer Nov 20, 2024
bf291d0
Fix missing json (#3177)
pablonyx Nov 20, 2024
194dcb5
update slack redirect + token missing check (#3179)
pablonyx Nov 20, 2024
3dac245
silence small error (#3182)
pablonyx Nov 20, 2024
049091e
decreased confluence retry times and added more logging (#3184)
hagen-danswer Nov 21, 2024
c875a47
valid props (#3186)
pablonyx Nov 21, 2024
3f648cb
Folder clarity (#3180)
pablonyx Nov 21, 2024
50826b6
Formatting Niceties (#3183)
pablonyx Nov 21, 2024
70207b4
improve web testing (#3162)
rkuo-danswer Nov 21, 2024
100b4a0
Added Slim connector for Jira (#3181)
hagen-danswer Nov 21, 2024
deee237
Sheet update (#3189)
pablonyx Nov 21, 2024
366aa2a
quick fix (#3200)
pablonyx Nov 21, 2024
bd9f158
provider fix (#3187)
pablonyx Nov 21, 2024
13f08f3
Horizontal scrollbar (#3195)
pablonyx Nov 21, 2024
3c54ae9
Bugfix/redis wait (#3169)
rkuo-danswer Nov 21, 2024
9a492ce
admins cant be set as curator on backend (#3194)
hagen-danswer Nov 21, 2024
5eddc89
merge indexing and heartbeat callbacks (and associated lock reacquisi…
rkuo-danswer Nov 21, 2024
35b5c44
update default sidebar toggle
pablonyx Nov 22, 2024
e3573b2
add comment
pablonyx Nov 22, 2024
fe1400a
replace deprecated confluence group api endpoint (#3197)
hagen-danswer Nov 22, 2024
682319d
Bugfix/curator interface (#3198)
pablonyx Nov 22, 2024
8d5b8a4
Merge pull request #3202 from danswer-ai/toggled_chat_default
hagen-danswer Nov 22, 2024
9819aa9
implement double check pattern for error conditions (#3201)
rkuo-danswer Nov 22, 2024
67bfcab
llm provider causing re render in effect (#3205)
pablonyx Nov 22, 2024
129c8f8
Add start/end date ability for query history as CSV endpoint (#3211)
Weves Nov 22, 2024
5dc07d4
Each section is now cleaned before being chunked (#3210)
hagen-danswer Nov 22, 2024
c6dadb2
cleaned up new slack bot creation
hagen-danswer Nov 22, 2024
2381c8d
Refresh all assistants on assistant refresh (#3216)
pablonyx Nov 22, 2024
3e58f9f
fixed ugly stuff
hagen-danswer Nov 22, 2024
e32809f
moved it outside
hagen-danswer Nov 22, 2024
9dc23bf
revert to previous doc select logic (#3217)
pablonyx Nov 22, 2024
85cbd9c
Increased slim doc batch size for confluence connector (#3221)
hagen-danswer Nov 23, 2024
3a466a4
add minimal retries to confluence probe (#3222)
rkuo-danswer Nov 23, 2024
93add96
Various Nits (#3228)
pablonyx Nov 23, 2024
1e17934
Merge pull request #3214 from danswer-ai/fix-slack-ui
hagen-danswer Nov 23, 2024
c530614
Ensure daterange not consistently re rendered (#3229)
pablonyx Nov 23, 2024
a0065b0
Update CONTRIBUTING.md (#3112)
sanjuruk Nov 23, 2024
d9b87bb
Fixed 400 error when author of ticket is no longer an active user in …
jwjordan Nov 23, 2024
8ae6b19
Bugfix/usage report (#3075)
pablonyx Nov 23, 2024
694e79f
minor enforcement of CSV length for internal processing (#3109)
pablonyx Nov 23, 2024
84615ab
Seeding (#3231)
yuhongsun96 Nov 23, 2024
a357cdc
Remove Dead Code (#3232)
yuhongsun96 Nov 23, 2024
62a4aa1
Refactor Search (#3233)
yuhongsun96 Nov 23, 2024
5dfafc8
minor calendar cleanup (#3219)
pablonyx Nov 23, 2024
a343960
Remove Dead Code (#3234)
yuhongsun96 Nov 23, 2024
7a0a4d4
Remove Deprecated Endpoints (#3235)
yuhongsun96 Nov 23, 2024
413891f
Token Level Log (#3238)
yuhongsun96 Nov 24, 2024
3466451
Fix Prompt for Non Function Calling LLMs (#3241)
yuhongsun96 Nov 24, 2024
8abcde9
Fix Test (#3242)
yuhongsun96 Nov 24, 2024
86d8666
Add Test Case
yuhongsun96 Nov 24, 2024
7573416
Fix API keys for MIT users (#3237)
Weves Nov 25, 2024
1c84760
Assistant cleanup (#3236)
pablonyx Nov 25, 2024
c32b93f
increase indexing worker concurrency to 3
rkuo-danswer Nov 22, 2024
b625ee3
File handling cleanup (#3240)
pablonyx Nov 25, 2024
076ce2e
Saml fix
Weves Nov 25, 2024
77cf9b3
improve messaging and UI around cleanup of leftover index attempts (#…
rkuo-danswer Nov 25, 2024
2ecc28b
remove unused stripe promise (#3248)
pablonyx Nov 26, 2024
1f2f7d0
Improved logging for confluence doc sync and robust user creation
hagen-danswer Nov 26, 2024
284e375
Merge pull request #3257 from danswer-ai/minor-perm-sync
hagen-danswer Nov 26, 2024
0553062
Adds icons for Google Gemini models and custom model icons for L… (#3…
emerzon Nov 26, 2024
28e2b78
Fix search dropdown (#3269)
pablonyx Nov 27, 2024
07dfde2
add continue in danswer button to slack bot responses (#3239)
hagen-danswer Nov 27, 2024
9c0cc94
refresh router -> refresh assistants (#3271)
pablonyx Nov 27, 2024
09d3e47
Perm sync behavior change (#3262)
hagen-danswer Nov 27, 2024
634a0b9
no stack by default (#3278)
pablonyx Nov 27, 2024
ac44895
Add handling for rate limiting (#3280)
Weves Nov 27, 2024
eb8708f
the word "error" might be throwing off sentry
rkuo-danswer Nov 27, 2024
212353e
Fixed default feedback options
415matt Nov 26, 2024
36941ae
fix: Cannot configure API keys #3191
Subash-Mohan Nov 23, 2024
fd84b7a
Remove duplicate API key router
Weves Nov 28, 2024
56ea018
Revolve conflicts
onimsha Nov 28, 2024
971e417
Add back employee context injection
onimsha Nov 28, 2024
e5ca503
Fix Slack bot
onimsha Nov 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
47 changes: 40 additions & 7 deletions .github/actions/custom-build-and-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,20 @@ inputs:
description: 'Cache destinations'
required: false
retry-wait-time:
description: 'Time to wait before retry in seconds'
description: 'Time to wait before attempt 2 in seconds'
required: false
default: '5'
default: '60'
retry-wait-time-2:
description: 'Time to wait before attempt 3 in seconds'
required: false
default: '120'

runs:
using: "composite"
steps:
- name: Build and push Docker image (First Attempt)
- name: Build and push Docker image (Attempt 1 of 3)
id: buildx1
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
continue-on-error: true
with:
context: ${{ inputs.context }}
Expand All @@ -54,16 +58,39 @@ runs:
cache-from: ${{ inputs.cache-from }}
cache-to: ${{ inputs.cache-to }}

- name: Wait to retry
- name: Wait before attempt 2
if: steps.buildx1.outcome != 'success'
run: |
echo "First attempt failed. Waiting ${{ inputs.retry-wait-time }} seconds before retry..."
sleep ${{ inputs.retry-wait-time }}
shell: bash

- name: Build and push Docker image (Retry Attempt)
- name: Build and push Docker image (Attempt 2 of 3)
id: buildx2
if: steps.buildx1.outcome != 'success'
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ${{ inputs.context }}
file: ${{ inputs.file }}
platforms: ${{ inputs.platforms }}
pull: ${{ inputs.pull }}
push: ${{ inputs.push }}
load: ${{ inputs.load }}
tags: ${{ inputs.tags }}
cache-from: ${{ inputs.cache-from }}
cache-to: ${{ inputs.cache-to }}

- name: Wait before attempt 3
if: steps.buildx1.outcome != 'success' && steps.buildx2.outcome != 'success'
run: |
echo "Second attempt failed. Waiting ${{ inputs.retry-wait-time-2 }} seconds before retry..."
sleep ${{ inputs.retry-wait-time-2 }}
shell: bash

- name: Build and push Docker image (Attempt 3 of 3)
id: buildx3
if: steps.buildx1.outcome != 'success' && steps.buildx2.outcome != 'success'
uses: docker/build-push-action@v6
with:
context: ${{ inputs.context }}
file: ${{ inputs.file }}
Expand All @@ -74,3 +101,9 @@ runs:
tags: ${{ inputs.tags }}
cache-from: ${{ inputs.cache-from }}
cache-to: ${{ inputs.cache-to }}

- name: Report failure
if: steps.buildx1.outcome != 'success' && steps.buildx2.outcome != 'success' && steps.buildx3.outcome != 'success'
run: |
echo "All attempts failed. Possible transient infrastucture issues? Try again later or inspect logs for details."
shell: bash
30 changes: 17 additions & 13 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,24 @@
[Describe the tests you ran to verify your changes]


## Accepted Risk
[Any know risks or failure modes to point out to reviewers]
## Accepted Risk (provide if relevant)
N/A


## Related Issue(s)
[If applicable, link to the issue(s) this PR addresses]
## Related Issue(s) (provide if relevant)
N/A


## Checklist:
- [ ] All of the automated tests pass
- [ ] All PR comments are addressed and marked resolved
- [ ] If there are migrations, they have been rebased to latest main
- [ ] If there are new dependencies, they are added to the requirements
- [ ] If there are new environment variables, they are added to all of the deployment methods
- [ ] If there are new APIs that don't require auth, they are added to PUBLIC_ENDPOINT_SPECS
- [ ] Docker images build and basic functionalities work
- [ ] Author has done a final read through of the PR right before merge
## Mental Checklist:
- All of the automated tests pass
- All PR comments are addressed and marked resolved
- If there are migrations, they have been rebased to latest main
- If there are new dependencies, they are added to the requirements
- If there are new environment variables, they are added to all of the deployment methods
- If there are new APIs that don't require auth, they are added to PUBLIC_ENDPOINT_SPECS
- Docker images build and basic functionalities work
- Author has done a final read through of the PR right before merge

## Backporting (check the box to trigger backport action)
Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.
- [ ] This PR should be backported (make sure to check that the backport attempt succeeds)
88 changes: 51 additions & 37 deletions .github/workflows/docker-build-push-backend-container-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,61 @@ name: Build and Push Backend Image on Tag
on:
push:
tags:
- '*'
- "*"

env:
REGISTRY_IMAGE: danswer/danswer-backend
REGISTRY_IMAGE: ${{ contains(github.ref_name, 'cloud') && 'danswer/danswer-backend-cloud' || 'danswer/danswer-backend' }}
LATEST_TAG: ${{ contains(github.ref_name, 'latest') }}

jobs:
build-and-push:
# TODO: make this a matrix build like the web containers
runs-on:
group: amd64-image-builders
# TODO: investigate a matrix build like the web container
# See https://runs-on.com/runners/linux/
runs-on: [runs-on, runner=8cpu-linux-x64, "run-id=${{ github.run_id }}"]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Backend Image Docker Build and Push
uses: docker/build-push-action@v5
with:
context: ./backend
file: ./backend/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
${{ env.REGISTRY_IMAGE }}:latest
build-args: |
DANSWER_VERSION=${{ github.ref_name }}

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
# To run locally: trivy image --severity HIGH,CRITICAL danswer/danswer-backend
image-ref: docker.io/${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
severity: 'CRITICAL,HIGH'
trivyignores: ./backend/.trivyignore
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Install build-essential
run: |
sudo apt-get update
sudo apt-get install -y build-essential

- name: Backend Image Docker Build and Push
uses: docker/build-push-action@v5
with:
context: ./backend
file: ./backend/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
${{ env.LATEST_TAG == 'true' && format('{0}:latest', env.REGISTRY_IMAGE) || '' }}
build-args: |
DANSWER_VERSION=${{ github.ref_name }}

# trivy has their own rate limiting issues causing this action to flake
# we worked around it by hardcoding to different db repos in env
# can re-enable when they figure it out
# https://github.com/aquasecurity/trivy/discussions/7538
# https://github.com/aquasecurity/trivy-action/issues/389
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
env:
TRIVY_DB_REPOSITORY: "public.ecr.aws/aquasecurity/trivy-db:2"
TRIVY_JAVA_DB_REPOSITORY: "public.ecr.aws/aquasecurity/trivy-java-db:1"
with:
# To run locally: trivy image --severity HIGH,CRITICAL danswer/danswer-backend
image-ref: docker.io/${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
severity: "CRITICAL,HIGH"
trivyignores: ./backend/.trivyignore
137 changes: 137 additions & 0 deletions .github/workflows/docker-build-push-cloud-web-container-on-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
name: Build and Push Cloud Web Image on Tag
# Identical to the web container build, but with correct image tag and build args

on:
push:
tags:
- "*"

env:
REGISTRY_IMAGE: danswer/danswer-web-server-cloud
LATEST_TAG: ${{ contains(github.ref_name, 'latest') }}

jobs:
build:
runs-on:
- runs-on
- runner=${{ matrix.platform == 'linux/amd64' && '8cpu-linux-x64' || '8cpu-linux-arm64' }}
- run-id=${{ github.run_id }}
- tag=platform-${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64

steps:
- name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v4

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=raw,value=${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
type=raw,value=${{ env.LATEST_TAG == 'true' && format('{0}:latest', env.REGISTRY_IMAGE) || '' }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and push by digest
id: build
uses: docker/build-push-action@v5
with:
context: ./web
file: ./web/Dockerfile
platforms: ${{ matrix.platform }}
push: true
build-args: |
DANSWER_VERSION=${{ github.ref_name }}
NEXT_PUBLIC_CLOUD_ENABLED=true
NEXT_PUBLIC_POSTHOG_KEY=${{ secrets.POSTHOG_KEY }}
NEXT_PUBLIC_POSTHOG_HOST=${{ secrets.POSTHOG_HOST }}
NEXT_PUBLIC_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
NEXT_PUBLIC_GTM_ENABLED=true
# needed due to weird interactions with the builds for different platforms
no-cache: true
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true

- name: Export digest
run: |
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"

- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests-${{ env.PLATFORM_PAIR }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1

merge:
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Download digests
uses: actions/download-artifact@v4
with:
path: /tmp/digests
pattern: digests-*
merge-multiple: true

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Create manifest list and push
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)

- name: Inspect image
run: |
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}

# trivy has their own rate limiting issues causing this action to flake
# we worked around it by hardcoding to different db repos in env
# can re-enable when they figure it out
# https://github.com/aquasecurity/trivy/discussions/7538
# https://github.com/aquasecurity/trivy-action/issues/389
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
env:
TRIVY_DB_REPOSITORY: "public.ecr.aws/aquasecurity/trivy-db:2"
TRIVY_JAVA_DB_REPOSITORY: "public.ecr.aws/aquasecurity/trivy-java-db:1"
with:
image-ref: docker.io/${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
severity: "CRITICAL,HIGH"
Loading
Loading