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

test/try merge 1 #51

Merged
merged 345 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
345 commits
Select commit Hold shift + click to select a range
9d5c4ad
Small fix for non tool calling LLMs
Weves Jul 24, 2024
27824d6
Fixed login issue (#1920)
hagen-danswer Jul 25, 2024
546bfbd
autoscale with pool=thread crashes celery. remove and use concurrency…
rkuo-danswer Jul 25, 2024
a4d71e0
Added check for unknown tool names (#1924)
hagen-danswer Jul 25, 2024
c9fb99d
changed default fast model to gpt-4o-mini (#1939)
hagen-danswer Jul 25, 2024
a40d2a1
Change the way we get sqlalchemy session (#1940)
hagen-danswer Jul 25, 2024
e4b31cd
allow setting secondary worker count via environment variable. defaul…
rkuo-danswer Jul 25, 2024
c277a74
Add icons to assistants! (#1930)
pablodanswer Jul 26, 2024
2a37c95
Types for Migrations (#1944)
yuhongsun96 Jul 26, 2024
2a98326
Small update- Danswer update icons as well (#1945)
pablodanswer Jul 26, 2024
26a1e96
Update personas.yaml (#1948)
pablodanswer Jul 26, 2024
3ab35f0
Resolve conflicts
onimsha Jul 26, 2024
c81b453
Configurable models + updated assistants bar (#1942)
pablodanswer Jul 26, 2024
e325e06
Bugfix/persona access (#1951)
rkuo-danswer Jul 26, 2024
5c78af1
Deduplicate model names (#1950)
pablodanswer Jul 26, 2024
8e441d9
Issue fix
Astroner Jul 26, 2024
d28f460
Fix black
Weves Jul 26, 2024
e422f96
Pull Request Template (#1956)
yuhongsun96 Jul 27, 2024
d839595
Add query override
Weves Jul 27, 2024
6c32821
Allow removal of max_output_tokens by setting GEN_AI_MAX_OUTPUT_TOKEN…
emerzon Jul 27, 2024
f2f60c9
Fix EE Import backoff Logic (#1959)
yuhongsun96 Jul 27, 2024
3aa0e01
Add new admin page (#1947)
pablodanswer Jul 29, 2024
cbfbe4e
Fix image generation follow up q
Weves Jul 9, 2024
1f32182
Bigger images
Weves Jul 29, 2024
1b31541
Fixed default indexing frequency (#1965)
hagen-danswer Jul 29, 2024
38af12a
remove unnecessary index drop (#1968)
pablodanswer Jul 29, 2024
ea9a9cb
Fix typing for previous message
hagen-danswer Jul 29, 2024
4a0a927
fix removed parameter in MediaWikiConnector (#1970)
rkuo-danswer Jul 29, 2024
96b5820
authorized users and groups only have read access (#1960)
rkuo-danswer Jul 29, 2024
015f415
avoid reindexing secondary indexes after they succeed (#1971)
rkuo-danswer Jul 30, 2024
fb6695a
Fix flow where oidc_expiry is different from token expiry (#1974)
Weves Jul 30, 2024
7932e76
Make chat page layout cleaner + fix updating assistant images (#1973)
pablodanswer Jul 30, 2024
3938a05
Rework tokenizer (#1957)
hagen-danswer Jul 30, 2024
e4b1f5b
fix index attempt migration where no credential ID
pablodanswer Jul 30, 2024
d151082
Moved warmup_encoders into scope (#1978)
hagen-danswer Jul 30, 2024
eb9bb56
Add initial mobile support (#1962)
pablodanswer Jul 31, 2024
60a87d9
Add back modals on chat page (#1983)
pablodanswer Jul 31, 2024
036d5c7
No Null Embeddings (#1982)
yuhongsun96 Jul 31, 2024
89b6da3
process files with null title (#1989)
pablodanswer Jul 31, 2024
348a217
Fix Dropped Documents (#1997)
yuhongsun96 Jul 31, 2024
d619602
Skip shortcut docs (#1999)
yuhongsun96 Jul 31, 2024
5307d38
Fixed tokenizer logic (#1986)
hagen-danswer Jul 31, 2024
288e6fa
Bugfix/pg connections (#2002)
rkuo-danswer Jul 31, 2024
4022667
Add proper default values for assistant editing / creation (#2001)
pablodanswer Jul 31, 2024
7c283b0
Feature/postgres connection names (#1998)
rkuo-danswer Jul 31, 2024
d6d391d
Fix not_applicable (#2003)
Weves Jul 31, 2024
1654378
Fix user dropdown font (#2007)
Weves Aug 1, 2024
1be1959
Changed default local model to nomic (#1943)
hagen-danswer Aug 1, 2024
ca893f9
Rerank Handle Null (#2010)
yuhongsun96 Aug 1, 2024
445f7e7
Fix image generation (#2009)
Weves Aug 1, 2024
459bd46
Add Prompt library (#1990)
pablodanswer Aug 1, 2024
73a92c0
Fix chunker (#2014)
yuhongsun96 Aug 1, 2024
a54ea9f
Fix cartesian issue with index attempts (#2015)
pablodanswer Aug 1, 2024
e6a92aa
support confluence single page only indexing (#2008)
hagen-danswer Aug 1, 2024
e31d6be
Switched build to use a larger runner (#2019)
hagen-danswer Aug 1, 2024
f280586
pass function to Process correctly instead of running it inline (#2018)
rkuo-danswer Aug 2, 2024
51731ad
Fix issue where large docs/batches break openai embedding
Weves Aug 2, 2024
6a61331
Feature/log despam (#2022)
rkuo-danswer Aug 2, 2024
57cc53a
Added content tags to zendesk connector (#2017)
hagen-danswer Aug 2, 2024
ed45539
detect foreign key composition sessions (#2024)
pablodanswer Aug 2, 2024
52c505c
Remove partially implemented reply cancellation (#2031)
nschwerd Aug 3, 2024
aa4a00c
fix minor html error (#2034)
pablodanswer Aug 3, 2024
0261d68
Various Admin Page + User Flow Improvements (#1987)
pablodanswer Aug 4, 2024
876feec
Fix code pasting formatting (#2033)
pablodanswer Aug 4, 2024
9d7100a
Fix secondary index attempts showing up as the primary index status +…
Weves Aug 4, 2024
76b7792
Harden embedding calls
Weves Aug 4, 2024
6d67d47
Add answers to search (#2020)
pablodanswer Aug 5, 2024
66e4dde
Add properly random icons to assistant creation page (#2044)
pablodanswer Aug 5, 2024
a3ea217
ensure consistency of answers + update llm relevance prompting (#2045)
pablodanswer Aug 5, 2024
cd22cca
remove non-EE public connector options
pablodanswer Aug 5, 2024
5825d01
Better assistant interactions + UI (#2029)
pablodanswer Aug 5, 2024
0bde66a
remove "quotes" section (#2049)
pablodanswer Aug 5, 2024
5bfdeca
fix assistant drag transform effect (#2052)
pablodanswer Aug 5, 2024
a8a4ad9
Chunk Filter Metadata Format (#2053)
yuhongsun96 Aug 5, 2024
cc3856e
enforce index attempt deduping on secondary indexing. (#2054)
rkuo-danswer Aug 6, 2024
ab564a9
Add cleaner loading / streaming for image loading (#2055)
pablodanswer Aug 6, 2024
dc2a500
Clean chat banner (#2056)
pablodanswer Aug 6, 2024
7f7452d
Whitelabelling consistency (#2058)
pablodanswer Aug 6, 2024
3bc2cf9
update tool display bubbles to have cursor-dfeault
pablodanswer Aug 6, 2024
6350219
Add proper default temperature + overrides (#2059)
pablodanswer Aug 6, 2024
57aec7d
doc sidebar width fix
pablodanswer Aug 6, 2024
e0f0cfd
Ensure relevance functions for selected docs (#2063)
pablodanswer Aug 6, 2024
f20984e
Don't persist error perennially (#2061)
pablodanswer Aug 6, 2024
fcc4c30
don't skip the start of the json answer value (#2067)
rkuo-danswer Aug 6, 2024
bb7e1d6
Add integration tests for document set syncing (#1904)
Weves Aug 7, 2024
291e6c4
somewhat clearer API errors (#2064)
pablodanswer Aug 7, 2024
d2e16a5
Improve shared chat page (#2066)
pablodanswer Aug 7, 2024
44d8e34
Improve seeding (includes all enterprise features) (#2065)
pablodanswer Aug 7, 2024
53d9762
proper new chat button redirects (#2074)
pablodanswer Aug 7, 2024
eab8278
Add proper delay for assistant switching (#2070)
pablodanswer Aug 7, 2024
c4e1c62
Admin UX updates (#2057)
pablodanswer Aug 7, 2024
5097c7f
Handle saved search docs in eval flow (#2075)
pablodanswer Aug 7, 2024
509fa3a
add postgres configuration (#2076)
rkuo-danswer Aug 8, 2024
9eb48ca
account for empty links + fix quote processing
pablodanswer Aug 8, 2024
bdaaebe
use re.search instead of re.match (which searches from start of strin…
rkuo-danswer Aug 8, 2024
f411b9c
quality of life improvements for the launch.json template (#2082)
josvdw Aug 8, 2024
c630fcf
Improve code block formatting (#2084)
pablodanswer Aug 8, 2024
be9ed31
add unit test for quotes (#2085)
rkuo-danswer Aug 8, 2024
c1e3a1b
Select proper assistant override (#2068)
pablodanswer Aug 8, 2024
1d989f5
Fix model override for persisting default assistant (#2081)
pablodanswer Aug 8, 2024
f28b930
Image -> img (#2087)
pablodanswer Aug 8, 2024
384e61f
add new gpt-4o model
pablodanswer Aug 8, 2024
e59d1a0
fix edge case with simpler code block + python formatting (#2092)
pablodanswer Aug 9, 2024
7dcc42a
Intent Model Update (#2069)
yuhongsun96 Aug 9, 2024
8cd1eda
Rework Rerankers (#2093)
yuhongsun96 Aug 9, 2024
b230082
Openai encoding temp hotfix (#2094)
hagen-danswer Aug 9, 2024
7bfa997
Add support for google slides (#2083)
pablodanswer Aug 9, 2024
c8ead6a
Need Reindexing Flag Setup (#2102)
yuhongsun96 Aug 10, 2024
54d4526
(Minor) Add cleaner search, feedback model, and connector view (#2098)
pablodanswer Aug 10, 2024
cc8a6da
improve llm-generated citations (account for edge case) (#2096)
pablodanswer Aug 10, 2024
0a8d44b
quote processing for lengthy intros (#2103)
pablodanswer Aug 10, 2024
a4caf66
User Notification Backend (#2104)
yuhongsun96 Aug 10, 2024
7d5cfd2
Add user specific model defaults (#2043)
pablodanswer Aug 10, 2024
9c5d33e
open chatdocument links in a new tab instead of overriding danswer (#…
josvdw Aug 10, 2024
7358ece
enable assistant editing
pablodanswer Aug 7, 2024
d60fb15
Allowing users to set Search Settings (#2106)
yuhongsun96 Aug 11, 2024
ce666f3
Propagate Embedding Enum (#2108)
yuhongsun96 Aug 11, 2024
386b229
Cohere Rerank (#2109)
yuhongsun96 Aug 11, 2024
7fae66b
provider type default to none (#2110)
pablodanswer Aug 11, 2024
79523f2
Warm up reranker (#2111)
yuhongsun96 Aug 11, 2024
b940471
Resolve conflicts
onimsha Aug 12, 2024
f3e7afc
Resolve conflicts
onimsha Aug 12, 2024
c7e5b11
EE Connector Deletion Bugfix + Refactor (#2042)
nschwerd Aug 12, 2024
e517f47
add send-message-simple-with-history endpoint to avoid… (#2101)
rkuo-danswer Aug 12, 2024
0a165aa
Slack improvements (#2113)
Weves Aug 12, 2024
1a4df1d
Remove unnecessary LLM settings
Weves Aug 12, 2024
26df869
Feature/harden memory limits (#2118)
rkuo-danswer Aug 12, 2024
83e945b
add cleaner / consolidate `no docs found` message (#2119)
pablodanswer Aug 12, 2024
bbb8c5f
Speed up docker launch (#2099)
hagen-danswer Aug 13, 2024
e12ed77
Add scrollbar to search / chat (#2121)
pablodanswer Aug 13, 2024
d636181
Added catch for empty link (#2037)
hagen-danswer Aug 13, 2024
5ad54fe
Inference to handle no link docs (#2129)
yuhongsun96 Aug 13, 2024
ffd9b01
Fix overflow for quotes in search section (#2123)
pablodanswer Aug 13, 2024
5dda047
Always show search filters (#2128)
pablodanswer Aug 13, 2024
f15d6d2
allow admin role api keys (#2124)
rkuo-danswer Aug 13, 2024
20369fc
Refactor/default indexing embedder (#2073)
rkuo-danswer Aug 13, 2024
5e6365c
Minor update to clarify user adding (#2126)
pablodanswer Aug 13, 2024
54732a8
stopgap: clarify text on standard answer page for improved UX (#2122)
josvdw Aug 14, 2024
3540aa5
Add ux improvements (#2130)
pablodanswer Aug 14, 2024
0530f42
updating readme for widget (#2132)
josvdw Aug 14, 2024
1c10f54
GPU Model Server (#2135)
yuhongsun96 Aug 14, 2024
2ab1929
Added import statement to fix typescript error (#2138)
hagen-danswer Aug 14, 2024
d9bcacf
validate messages (#2139)
pablodanswer Aug 14, 2024
6803885
UX clarity + minor new features (#2136)
pablodanswer Aug 14, 2024
61b5bd5
Reworked chunking to support mega chunks (#2032)
hagen-danswer Aug 15, 2024
f6547a6
More logging for SAML endpoints
Weves Aug 15, 2024
0853d1a
Update force deletion script
Weves Aug 15, 2024
4d194bc
Cohere No Large Chunks (#2145)
yuhongsun96 Aug 15, 2024
9fa4280
add configurable support for memory tracing during indexing (#2140)
rkuo-danswer Aug 15, 2024
33fed95
Add verbose error messages + robustify assistant switching (#2144)
pablodanswer Aug 15, 2024
3ffbe65
add handling for poorly formatting model names (#2143)
pablodanswer Aug 15, 2024
46c7089
Enable seeding of analytics via file path (#2146)
pablodanswer Aug 16, 2024
3cbc341
Enable persistence / removal of assistant icons + remove accidental r…
pablodanswer Aug 17, 2024
f8e0e6f
Extremely robustified Index Attempt migration (#2151)
pablodanswer Aug 17, 2024
efae24a
improve model seeding (#2155)
Weves Aug 17, 2024
22573ab
Improve Search (#2105)
pablodanswer Aug 17, 2024
c0edfb5
k
yuhongsun96 Aug 17, 2024
1757003
Add PG query logging (#2156)
Weves Aug 17, 2024
739058a
Logging updates (#2159)
yuhongsun96 Aug 18, 2024
492797c
Feature/indexing errors (#2148)
rkuo-danswer Aug 18, 2024
8a7bc4e
Log Level Default (#2163)
yuhongsun96 Aug 18, 2024
12fccfe
Add `stop generating` functionality (#2100)
pablodanswer Aug 18, 2024
119aefb
Add log files to containers (#2164)
yuhongsun96 Aug 19, 2024
5ab4d94
Logging Level Update (#2165)
yuhongsun96 Aug 19, 2024
c44c22a
Fix model server
Weves Aug 19, 2024
ea53977
prevent empty doc link click (#2170)
pablodanswer Aug 19, 2024
af64795
Performance Improvements (#2162)
Weves Aug 19, 2024
8a4e477
remove history sidebar on mouse exiting window (#2173)
pablodanswer Aug 19, 2024
583bd1d
add kombu message cleanup task (#2172)
rkuo-danswer Aug 20, 2024
12f0dbc
Background Container Logs (#2176)
yuhongsun96 Aug 20, 2024
71c2b16
Pull out stripping of model suffix (#2175)
pablodanswer Aug 20, 2024
19cccd2
show full stack trace
pablodanswer Aug 20, 2024
919110a
Untoggle sidebar fully on untoggling (#2179)
pablodanswer Aug 20, 2024
53a3fb8
Scrollable user model (#2177)
pablodanswer Aug 20, 2024
69f6b7d
Update SSE handling to accommodate slow networks (#2180)
pablodanswer Aug 20, 2024
006cfa1
fix text selection + closing modal
pablodanswer Aug 20, 2024
730a757
Disable oidc_expiry by default (#2182)
Weves Aug 20, 2024
5053f4e
Add granularity to filter widths (#2183)
pablodanswer Aug 20, 2024
8de04ac
k
yuhongsun96 Aug 20, 2024
42f0fea
Fix Assistant vs Persona (#2185)
yuhongsun96 Aug 20, 2024
1ddb4b2
normalize emails on bulk invite, normalize/lowercase emails on invite…
rkuo-danswer Aug 20, 2024
f77b1eb
Updated pruning defaults (#2186)
hagen-danswer Aug 20, 2024
075eacd
added collection and collection type to Guru metadata (#2187)
hagen-danswer Aug 20, 2024
ec6e236
Log YQL (#2189)
yuhongsun96 Aug 21, 2024
53387ab
Simplify index and model name swap logic (#2188)
pablodanswer Aug 21, 2024
3b035d7
Fix Model Server (#2191)
yuhongsun96 Aug 21, 2024
048cb8d
update alembic version (for rebase) (#2193)
pablodanswer Aug 21, 2024
bb1916d
Warm Up Models Prep (#2196)
yuhongsun96 Aug 21, 2024
b9b633b
support indexing attachments as separate docs when not part of a page…
rkuo-danswer Aug 21, 2024
584eae1
fix message param to use query instead of rephrased query (#2199)
rkuo-danswer Aug 21, 2024
13303ed
Jira email optional + PAT (#2198)
pablodanswer Aug 21, 2024
020dff5
Remove settings cache (#2203)
Weves Aug 22, 2024
e50b558
prevent usage of combinedSettings if endpoints fail (which none of th…
rkuo-danswer Aug 22, 2024
9bf42d2
Fix connectors running while deleting (#2204)
Weves Aug 22, 2024
d84c4b6
resolve conflicts
onimsha Aug 22, 2024
8afcb03
Fix OIDC expiry issues (#2206)
Weves Aug 22, 2024
1a9e5da
Enable Surrounding Context (#2210)
yuhongsun96 Aug 22, 2024
27e094d
allow graceful 404s (#2211)
pablodanswer Aug 22, 2024
9d5db05
Add Migration (#2213)
yuhongsun96 Aug 22, 2024
197b62a
Regenerate (branch of stop) (#2157)
pablodanswer Aug 22, 2024
99db27d
Add metadata for simple doc (#2212)
Weves Aug 22, 2024
5f4b7dd
clarify what model and provider name should be for custom models (#2215)
josvdw Aug 22, 2024
5409777
add edge case (#2216)
pablodanswer Aug 22, 2024
c042a19
Curator role (#2166)
hagen-danswer Aug 23, 2024
7da6d33
slightly updated settings error (#2217)
pablodanswer Aug 23, 2024
e89dc67
Update embedding interface (#2205)
pablodanswer Aug 23, 2024
b130230
Add chat_session_id + message_pair_num (#2220)
Weves Aug 23, 2024
5cb9c17
Add better logging for connectors (#2219)
Weves Aug 23, 2024
c152123
alembic once again (#2221)
pablodanswer Aug 23, 2024
2e0222d
logotype from toggle -> redirect (#2222)
pablodanswer Aug 23, 2024
e749fa0
Update search tool selection (#2223)
pablodanswer Aug 23, 2024
7d201f6
Fix typing for custom tool response
Weves Aug 23, 2024
6fc6ee5
Update white-labelling to be clearer (advanced settings) (#2228)
pablodanswer Aug 23, 2024
1bc899c
Add CSS identifiers to main sections (#2224)
pablodanswer Aug 23, 2024
c1c35b0
Fixed slack bot auto filters for document sets (#2231)
hagen-danswer Aug 24, 2024
1e1b2a0
add some quick search filterl logic (UX) (#2218)
pablodanswer Aug 24, 2024
c21b0ee
Curator polish (#2229)
hagen-danswer Aug 25, 2024
e5ceb76
Fix icons in personas (assistants) - AWS and Azrue were mixed up (#2027)
derkoe Aug 25, 2024
205c3c3
Combined the get document set endpoints (#2234)
hagen-danswer Aug 25, 2024
c0e1a02
Add it on merge queue (#2112)
Weves Aug 26, 2024
a873fc6
Fix Confluence freezing (#2239)
Weves Aug 27, 2024
5f12b7a
Rebased concurrent chats (#2214)
pablodanswer Aug 27, 2024
97ba71e
Db search (#2235)
pablodanswer Aug 27, 2024
b36cd49
Cleaner + cleaner assistants creation flow etc. (#2232)
pablodanswer Aug 27, 2024
feaa85f
new util for modal edge cases
pablodanswer Aug 27, 2024
525f3e0
remove constant refresh artifact (#2241)
pablodanswer Aug 27, 2024
8614cd8
Handle missing email more gracefully (#2244)
Weves Aug 27, 2024
336ddbd
Filter by user for docset display (#2245)
pablodanswer Aug 27, 2024
3640d0c
Better Web Connector Logging (#2246)
yuhongsun96 Aug 27, 2024
657d205
Confluence Internal Error Handling (#2247)
yuhongsun96 Aug 27, 2024
50c1743
Litellm bump (#2195)
josvdw Aug 28, 2024
e5b3843
Add othe checks to merge queue
Weves Aug 28, 2024
effce91
Remove redundant merge queue files
Weves Aug 28, 2024
1e67332
Remove warning on user signup (#2252)
yuhongsun96 Aug 28, 2024
04d56c3
resolve conflicts
onimsha Aug 28, 2024
c5a3178
Resolve conflicts
onimsha Aug 28, 2024
fb6637d
Fix quality-checks on merge queue
Weves Aug 28, 2024
8afa53c
Confluence improvements (#2248)
Weves Aug 28, 2024
e4e67c6
Some additional curator polish (#2253)
hagen-danswer Aug 28, 2024
57491ce
Lowercase slack channels automatically (#2254)
Weves Aug 28, 2024
5a83b00
change backg (#2255)
pablodanswer Aug 28, 2024
3b596fd
Default rerank API key to None (new Pydantic compatibility) (#2258)
pablodanswer Aug 28, 2024
b4c1189
Merge remote-tracking branch 'upstream/main' into chore/merge-upstrea…
onimsha Aug 29, 2024
5f8c2df
Correct the api_key for reranking in the client side
onimsha Aug 29, 2024
00fa36d
Get accurate model output max (#2260)
pablodanswer Aug 29, 2024
766652d
ignore kombu tables used by celery in alembic (#2261)
rkuo-danswer Aug 29, 2024
1734a4a
Added DanswerBot response limit environment variables (#2266)
hagen-danswer Aug 29, 2024
1620862
Merge remote-tracking branch 'upstream/main' into chore/merge-upstrea…
onimsha Aug 30, 2024
2978e9f
fix whitelabelling
onimsha Aug 30, 2024
28656cc
Merge branch 'main' into test/try-merge-1
onimsha Sep 4, 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
  •  
  •  
  •  
25 changes: 25 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Description
[Provide a brief description of the changes in this PR]


## How Has This Been Tested?
[Describe the tests you ran to verify your changes]


## Accepted Risk
[Any know risks or failure modes to point out to reviewers]


## Related Issue(s)
[If applicable, link to the issue(s) this PR addresses]


## 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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:

jobs:
build-and-push:
runs-on: ubuntu-latest
runs-on:
group: amd64-image-builders

steps:
- name: Checkout code
Expand Down
55 changes: 0 additions & 55 deletions .github/workflows/docker-build-web-container-on-merge-group.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/pr-python-checks.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Python Checks

on:
merge_group:
pull_request:
branches: [ main ]

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-python-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Python Unit Tests

on:
merge_group:
pull_request:
branches: [ main ]

Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/pr-quality-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ concurrency:
cancel-in-progress: true

on:
merge_group:
pull_request: null

jobs:
quality-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: pre-commit/action@v3.0.0
with:
extra_args: --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: pre-commit/action@v3.0.0
with:
extra_args: ${{ github.event_name == 'pull_request' && format('--from-ref {0} --to-ref {1}', github.event.pull_request.base.sha, github.event.pull_request.head.sha) || '' }}
172 changes: 172 additions & 0 deletions .github/workflows/run-it.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
name: Run Integration Tests
concurrency:
group: Run-Integration-Tests-${{ github.head_ref }}
cancel-in-progress: true

on:
merge_group:
pull_request:
branches: [ main ]

env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

jobs:
integration-tests:
runs-on:
group: 'arm64-image-builders'
steps:
- 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: Build Web Docker image
uses: docker/build-push-action@v5
with:
context: ./web
file: ./web/Dockerfile
platforms: linux/arm64
pull: true
push: true
load: true
tags: danswer/danswer-web-server:it
cache-from: type=registry,ref=danswer/danswer-web-server:it
cache-to: |
type=registry,ref=danswer/danswer-web-server:it,mode=max
type=inline

- name: Build Backend Docker image
uses: docker/build-push-action@v5
with:
context: ./backend
file: ./backend/Dockerfile
platforms: linux/arm64
pull: true
push: true
load: true
tags: danswer/danswer-backend:it
cache-from: type=registry,ref=danswer/danswer-backend:it
cache-to: |
type=registry,ref=danswer/danswer-backend:it,mode=max
type=inline

- name: Build Model Server Docker image
uses: docker/build-push-action@v5
with:
context: ./backend
file: ./backend/Dockerfile.model_server
platforms: linux/arm64
pull: true
push: true
load: true
tags: danswer/danswer-model-server:it
cache-from: type=registry,ref=danswer/danswer-model-server:it
cache-to: |
type=registry,ref=danswer/danswer-model-server:it,mode=max
type=inline

- name: Build integration test Docker image
uses: docker/build-push-action@v5
with:
context: ./backend
file: ./backend/tests/integration/Dockerfile
platforms: linux/arm64
pull: true
push: true
load: true
tags: danswer/integration-test-runner:it
cache-from: type=registry,ref=danswer/integration-test-runner:it
cache-to: |
type=registry,ref=danswer/integration-test-runner:it,mode=max
type=inline

- name: Start Docker containers
run: |
cd deployment/docker_compose
ENABLE_PAID_ENTERPRISE_EDITION_FEATURES=true \
IMAGE_TAG=it \
docker compose -f docker-compose.dev.yml -p danswer-stack up -d --build
id: start_docker

- name: Wait for service to be ready
run: |
echo "Starting wait-for-service script..."

start_time=$(date +%s)
timeout=300 # 5 minutes in seconds

while true; do
current_time=$(date +%s)
elapsed_time=$((current_time - start_time))

if [ $elapsed_time -ge $timeout ]; then
echo "Timeout reached. Service did not become ready in 5 minutes."
exit 1
fi

# Use curl with error handling to ignore specific exit code 56
response=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:8080/health || echo "curl_error")

if [ "$response" = "200" ]; then
echo "Service is ready!"
break
elif [ "$response" = "curl_error" ]; then
echo "Curl encountered an error, possibly exit code 56. Continuing to retry..."
else
echo "Service not ready yet (HTTP status $response). Retrying in 5 seconds..."
fi

sleep 5
done
echo "Finished waiting for service."

- name: Run integration tests
run: |
echo "Running integration tests..."
docker run --rm --network danswer-stack_default \
-e POSTGRES_HOST=relational_db \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=password \
-e POSTGRES_DB=postgres \
-e VESPA_HOST=index \
-e API_SERVER_HOST=api_server \
-e OPENAI_API_KEY=${OPENAI_API_KEY} \
danswer/integration-test-runner:it
continue-on-error: true
id: run_tests

- name: Check test results
run: |
if [ ${{ steps.run_tests.outcome }} == 'failure' ]; then
echo "Integration tests failed. Exiting with error."
exit 1
else
echo "All integration tests passed successfully."
fi

- name: Save Docker logs
if: success() || failure()
run: |
cd deployment/docker_compose
docker compose -f docker-compose.dev.yml -p danswer-stack logs > docker-compose.log
mv docker-compose.log ${{ github.workspace }}/docker-compose.log

- name: Upload logs
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: docker-logs
path: ${{ github.workspace }}/docker-compose.log

- name: Stop Docker containers
run: |
cd deployment/docker_compose
docker compose -f docker-compose.dev.yml -p danswer-stack down -v
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/deployment/data/nginx/app.conf
.vscode/launch.json
*.sw?
/backend/tests/regression/answer_quality/search_test_config.yaml
2 changes: 1 addition & 1 deletion .vscode/env_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ LOG_LEVEL=debug

# This passes top N results to LLM an additional time for reranking prior to answer generation
# This step is quite heavy on token usage so we disable it for dev generally
DISABLE_LLM_CHUNK_FILTER=True
DISABLE_LLM_DOC_RELEVANCE=True


# Useful if you want to toggle auth on/off (google_oauth/OIDC specifically)
Expand Down
Loading
Loading