Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
396 commits
Select commit Hold shift + click to select a range
0de4870
lock to avoid rare serializable errors (#2818)
rkuo-danswer Oct 17, 2024
90bd535
Merge pull request #2836 from danswer-ai/flakey-test-run-but-dont-fail
hagen-danswer Oct 17, 2024
deb66a8
dont fail flaky tests
hagen-danswer Oct 17, 2024
6b8ecb3
Merge pull request #2838 from danswer-ai/dont-fail-flaky
hagen-danswer Oct 17, 2024
e48086b
add slack markdown formatting (#2829)
pablonyx Oct 17, 2024
b169f78
Push multi tenancy for slackbot (#2828)
pablonyx Oct 17, 2024
4c2cf8b
always finalize the serialized transaction so that it doesn't leak ou…
rkuo-danswer Oct 17, 2024
61424de
add sentry (#2786)
pablonyx Oct 17, 2024
6e54c97
multitenant setup (#2845)
pablonyx Oct 18, 2024
7906d9e
Add all-tenants migration for K8 job (#2846)
pablonyx Oct 18, 2024
e12785d
no serializable, use with_for_update to lock the row.
rkuo-danswer Oct 18, 2024
59364aa
Revert "no serializable, use with_for_update to lock the row."
rkuo-danswer Oct 18, 2024
5b78299
use native rate limiting in the confluence client (#2837)
rkuo-danswer Oct 18, 2024
3613402
Refactor + add global timeout env variable (#2844)
Weves Oct 18, 2024
55de519
Cleanup connector form (#2849)
hagen-danswer Oct 18, 2024
12cbbe6
use with for update instead of serializable (#2848)
rkuo-danswer Oct 18, 2024
6913efe
fresh indexing feature branch (#2790)
rkuo-danswer Oct 18, 2024
8b220d2
Add assistant notifications + update assistant context (#2816)
pablonyx Oct 19, 2024
f7d77a3
Empty embedding fix (#2853)
pablonyx Oct 19, 2024
2c77ad2
Add errors to search (#2854)
pablonyx Oct 19, 2024
ee1cb08
modify default (#2856)
pablonyx Oct 19, 2024
8f9d433
(minor) search memoization + context (#2732)
pablonyx Oct 19, 2024
2fb1d06
update google sites + formik (#2834)
pablonyx Oct 19, 2024
457e799
missing tenant_id as optional param (#2851)
rkuo-danswer Oct 19, 2024
eaaa135
push vespa managed service configs (#2857)
pablonyx Oct 19, 2024
f745ca1
ensure **all** sharp-related packages installed (#2855)
pablonyx Oct 19, 2024
dd25510
Docstring Update for Docs (#2863)
yuhongsun96 Oct 20, 2024
7ab0063
(minor) quote overflow (#2862)
pablonyx Oct 20, 2024
a24b465
Minor tenant ID improvements (#2850)
pablonyx Oct 20, 2024
cee6810
Minor vespa standardization (#2861)
pablonyx Oct 21, 2024
45d852a
modal onboarding clarity (#2780)
pablonyx Oct 21, 2024
c516f35
Make it so you can update model providers (#2866)
Weves Oct 21, 2024
802086e
Refactored Confluence Connector (#2859)
hagen-danswer Oct 21, 2024
e4779c2
tighter signaling to prevent indexing cleanup from hitting tasks that…
rkuo-danswer Oct 21, 2024
6e9b6a1
Handle models like openai/bedrock/claude-3.5-... (#2869)
Weves Oct 22, 2024
8f236a1
Update reset_indexes.py
Yash-2707 Oct 22, 2024
bae7947
add stale issues and pr's cron
rkuo-danswer Oct 22, 2024
e031576
Salesforce Connector Note (#2872)
yuhongsun96 Oct 22, 2024
914da2e
Confluence polish (#2874)
hagen-danswer Oct 22, 2024
eccec6a
Notion Fix Nested Properties (#2877)
yuhongsun96 Oct 22, 2024
9105f95
Feature/celery refactor (#2813)
rkuo-danswer Oct 22, 2024
5703ea4
Auth on main (#2878)
pablonyx Oct 23, 2024
a1680fa
Implement freshdesk frontend
skylares Oct 23, 2024
143da5b
add copying for unrecognized languages (#2883)
pablonyx Oct 23, 2024
85b56e3
Fix Freshdesk connector date parsing for UTC timestamps
skylares Oct 23, 2024
7abbfa3
Tiny confluence fix (#2885)
hagen-danswer Oct 23, 2024
786a46c
sticky credential description (#2886)
pablonyx Oct 23, 2024
8b72264
Gating Notifications (#2868)
pablonyx Oct 23, 2024
3eb67ba
Bugfix/indexing UI (#2879)
rkuo-danswer Oct 23, 2024
14e75bb
add default schema config (#2888)
pablonyx Oct 23, 2024
b9fb657
Temporary fix for empty Google App credentials (#2892)
hagen-danswer Oct 24, 2024
0545fb4
Multitenant redis update (#2889)
pablonyx Oct 24, 2024
87b5975
Remove unnecessary log & Add LoadConnector
skylares Oct 24, 2024
cc1e1c1
Replace html processing library with danswer util
skylares Oct 24, 2024
4ad35d7
Make ticket fetching a seperate function from processing
skylares Oct 24, 2024
245adc4
Remove 2 month time check & Add time range to fetch and process
skylares Oct 24, 2024
1b6b134
Clearer azure models (#2898)
pablonyx Oct 24, 2024
2b9a751
working chat feedback dump script (with api addition) (#2891)
rkuo-danswer Oct 24, 2024
32b595d
update stale workflow
rkuo-danswer Oct 24, 2024
705b825
fix typo
rkuo-danswer Oct 24, 2024
da979e5
More intuitive search settings interfaces (#2899)
pablonyx Oct 24, 2024
33eabf1
Add global assistants context (#2900)
pablonyx Oct 24, 2024
4bce143
Merge pull request #2904 from danswer-ai/bugfix/fix-typo
rkuo-danswer Oct 24, 2024
94b4dc1
can't add to primary_worker_locks if it doesn't exist (#2903)
rkuo-danswer Oct 24, 2024
9f50417
try hiding celery task spam (#2905)
rkuo-danswer Oct 24, 2024
b49a9ab
Seeding (#2902)
yuhongsun96 Oct 24, 2024
10b5b55
entry["id"] can apparently be a number, so convert to str
rkuo-danswer Oct 25, 2024
eae1dad
Silence unnecessary debug log (#2908)
pablonyx Oct 25, 2024
863f00f
Auto Backport Partial (#2910)
yuhongsun96 Oct 25, 2024
a931494
Harmless Backport (#2911)
yuhongsun96 Oct 25, 2024
eaa8ae7
Bugfix/connector deletion lockout (#2901)
rkuo-danswer Oct 25, 2024
b9781c4
Merge pull request #2909 from danswer-ai/bugfix/loopio
rkuo-danswer Oct 25, 2024
07a4e11
Dev Experience (#2912)
yuhongsun96 Oct 25, 2024
55b9111
Harmless Backport (#2914)
yuhongsun96 Oct 25, 2024
9c0f927
Workflow (#2915)
yuhongsun96 Oct 25, 2024
d7a30b0
Harmless Backport (#2916)
yuhongsun96 Oct 25, 2024
4a47e9a
Add strict json mode (#2917)
Weves Oct 25, 2024
4ca3820
Fix IT fixture ordering
Weves Oct 25, 2024
84d551e
Merge branch 'patch-1' of https://github.com/Yash-2707/danswer into f…
rkuo-danswer Oct 25, 2024
76415af
Ensure proper modal fallback (#2906)
pablonyx Oct 25, 2024
a348caa
Add pagination & Remove req.obj from connectors.tsx
skylares Oct 25, 2024
bd63119
Fix structured outputs (#2923)
Weves Oct 25, 2024
9b147ae
Tenant integration tests (#2913)
pablonyx Oct 25, 2024
0ed77aa
Merge branch 'main' of https://github.com/danswer-ai/danswer into fea…
rkuo-danswer Oct 25, 2024
94edcac
upgraded claude model strings (#2876)
hagen-danswer Oct 26, 2024
5e01d6b
check for index swap (#2922)
pablonyx Oct 26, 2024
8023caf
Fixed polling issue with timezone
skylares Oct 26, 2024
9def9f0
add posthog + layout rework (#2926)
pablonyx Oct 26, 2024
8c2138a
Backport Test (#2930)
yuhongsun96 Oct 26, 2024
c0ab86b
Backport Branch Fix (#2931)
yuhongsun96 Oct 26, 2024
848d86b
feat: sentry updates (#2929)
pablonyx Oct 26, 2024
ccc68c5
Backport Test (#2935)
yuhongsun96 Oct 26, 2024
b4bc6d9
Backport Auth (#2936)
yuhongsun96 Oct 26, 2024
e8c28e7
ensure proper sentry silencing (#2934)
pablonyx Oct 26, 2024
80f8d7a
Backport Permissions (#2937)
yuhongsun96 Oct 26, 2024
4bcd65e
Harmless Backport Test (#2938)
yuhongsun96 Oct 26, 2024
accdd58
Backport Test (#2939)
yuhongsun96 Oct 26, 2024
f6f9112
Backport Test (#2940)
yuhongsun96 Oct 26, 2024
e6bef57
Backport Correct Branch (#2941)
yuhongsun96 Oct 26, 2024
aa0f307
Backport Test Final (#2942)
yuhongsun96 Oct 26, 2024
088551a
remove rt + home-grown sitemap parsing (#2933)
pablonyx Oct 26, 2024
1261d85
Tenant aware JWT strategy (#2943)
pablonyx Oct 26, 2024
0c2cc74
Move user fetching to SS + parallelize some server-side calls (#2932)
Weves Oct 27, 2024
e5d84ca
Clean up code
skylares Oct 27, 2024
da3c5e3
Feat: add clean logging for api routes (#2928)
pablonyx Oct 27, 2024
e5494f9
Refactor & cleanup code, process tickets in batches
skylares Oct 27, 2024
a1bfa78
a (#2815)
pablonyx Oct 27, 2024
179dc41
Onboarding nits (#2907)
pablonyx Oct 27, 2024
53e9165
tenant seeding docs (#2925)
pablonyx Oct 27, 2024
0146344
avoid image generation tool confusion
pablonyx Oct 27, 2024
31a518a
nit
pablonyx Oct 27, 2024
f27071c
Harmless Backport Test (#2950)
yuhongsun96 Oct 27, 2024
aea261d
Ensure build args passed to cloud web images (#2947)
pablonyx Oct 27, 2024
dc7b367
Merge pull request #2949 from danswer-ai/avoid_image_confusion
hagen-danswer Oct 27, 2024
7ea484a
Trigger from Workflow (#2951)
yuhongsun96 Oct 27, 2024
fa88c1d
Test Workflow Trigger (#2952)
yuhongsun96 Oct 27, 2024
6568c78
Update docker-build-push-backend-container-on-tag.yml
yuhongsun96 Oct 27, 2024
ad3df42
Backport Tag Test (#2954)
yuhongsun96 Oct 27, 2024
18dcdd6
GHA Trigger (#2955)
yuhongsun96 Oct 27, 2024
6f8e7ab
Backport (#2956)
yuhongsun96 Oct 27, 2024
7dc06bf
Backport Test (#2957)
yuhongsun96 Oct 27, 2024
1f2be54
Backport Test
yuhongsun96 Oct 27, 2024
e8dfed9
Backport Test (#2958)
yuhongsun96 Oct 27, 2024
2a6c032
Backport No Tag
yuhongsun96 Oct 27, 2024
07d76b2
Notion Child Block Fix (#2953)
yuhongsun96 Oct 27, 2024
85c56f9
Backport Richard
yuhongsun96 Oct 27, 2024
4a99661
Backport Test (#2959)
yuhongsun96 Oct 27, 2024
001801d
Add back Backport Tags
yuhongsun96 Oct 27, 2024
1187849
Backport Touchup
yuhongsun96 Oct 27, 2024
23988f8
Touchup (#2961)
yuhongsun96 Oct 27, 2024
0fb6bae
Echo Merge Commit (#2962)
yuhongsun96 Oct 27, 2024
c7018f7
Backport Test (#2963)
yuhongsun96 Oct 27, 2024
7ddfabe
Backport Debugging
yuhongsun96 Oct 28, 2024
e28ba4b
Backport Test Conn (#2964)
yuhongsun96 Oct 28, 2024
1a31f1e
New Credentials GH
yuhongsun96 Oct 28, 2024
9270782
Backport Test (#2966)
yuhongsun96 Oct 28, 2024
4c417b5
Revert
yuhongsun96 Oct 28, 2024
57e5264
Backport Test (#2967)
yuhongsun96 Oct 28, 2024
20e8c22
Add Conditional
yuhongsun96 Oct 28, 2024
3d9cc76
Backport Test 4 (#2968)
yuhongsun96 Oct 28, 2024
7856718
k
yuhongsun96 Oct 28, 2024
e2c4c07
Push Tag
yuhongsun96 Oct 28, 2024
d8ad3e7
Backport Test 5 (#2969)
yuhongsun96 Oct 28, 2024
b2d8e10
Richard Key
yuhongsun96 Oct 28, 2024
f84e75c
Backport Test 6 (#2970)
yuhongsun96 Oct 28, 2024
e46facb
Backport Final
yuhongsun96 Oct 28, 2024
5062075
Backport Test 7 (#2971)
yuhongsun96 Oct 28, 2024
52bd1ad
Merge pull request #2921 from danswer-ai/feature/reset_indexes
hagen-danswer Oct 28, 2024
075e4f1
Clean up & comment fetch_tickets
skylares Oct 28, 2024
1d89fea
Bugfix/celery light backoff (#2880)
rkuo-danswer Oct 28, 2024
1dec69b
Fix document time parsing
skylares Oct 28, 2024
195e2c3
Fix per_page count
skylares Oct 28, 2024
e05846d
change test port to 8889 (docker desktop is now using port 8888 which…
rkuo-danswer Oct 28, 2024
e5af468
Fix nagging double auth issue (#2960)
pablonyx Oct 28, 2024
a40082c
Distinguish users in posthog (#2965)
pablonyx Oct 28, 2024
678ba41
Cleaner initial chat screen (#2528)
pablonyx Oct 28, 2024
2eefb3c
add srem and sadd to tenant wrapper (#2973)
pablonyx Oct 28, 2024
11d849b
add indent to scan_iter (#2948)
pablonyx Oct 28, 2024
5640230
remove empty directory (#2977)
pablonyx Oct 28, 2024
a60613e
missing scard
rkuo-danswer Oct 28, 2024
1201ed5
Merge pull request #2979 from danswer-ai/bugfix/redis_scard
rkuo-danswer Oct 28, 2024
aafcf7a
fail gracefully on provider fetch (#2981)
pablonyx Oct 29, 2024
75dd103
add additional configuration options (#2980)
pablonyx Oct 29, 2024
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
dea7a8f
Clean up tooltips (#3047)
pablonyx Nov 5, 2024
b2c55eb
ensure props aligned (#3050)
pablonyx Nov 5, 2024
62c4127
limit session scope
rkuo-danswer Nov 6, 2024
93ec2a6
abort mismatched tasks
rkuo-danswer Nov 6, 2024
593b18f
Merge pull request #3071 from danswer-ai/hotfix/v0.12-stale-tasks
rkuo-danswer Nov 6, 2024
5ca949c
Merge tag 'v0.12.0' into update/upstream-0.12.0
sd109 Nov 14, 2024
c08d3e7
Reinstate workflow dep
sd109 Nov 14, 2024
4c314a1
Update header fetching to use async/await
sd109 Nov 14, 2024
dcfc288
Bump helm chart versions
sd109 Nov 14, 2024
dbb65cc
Fix app version tag format
sd109 Nov 14, 2024
bdf8cf5
Add pod resources option for inference model deployment
sd109 Nov 15, 2024
4f9b8c9
Bump version tags for testing
sd109 Nov 15, 2024
b4360a3
Bump to stable image and chart tags
sd109 Nov 25, 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)
136 changes: 136 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,136 @@
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-cloud-web-server
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 }}
# 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'
2 changes: 1 addition & 1 deletion .github/workflows/helm-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
permissions:
contents: write
runs-on: ubuntu-latest
# needs: helm_chart_version_check
needs: helm_chart_version_check
# if: ${{ needs.helm_chart_version_check.outputs.version_changed == 'true' }}
steps:
- name: Checkout
Expand Down
Loading
Loading