Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
15c60e8
fix: Histogram examples config (#32122)
michael-s-molina Feb 3, 2025
95694aa
fix(datepicker): Full width datepicker on filter value select (#32064)
msyavuz Feb 3, 2025
b632567
fix(ci): ephemeral env, handle different label, create comment (#32040)
dpgaspar Feb 3, 2025
b80aa86
fix: No virtual environment when running Docker translation compiler …
michael-s-molina Feb 4, 2025
890186a
chore: Adds RC1 data to CHANGELOG.md and UPDATING.md
michael-s-molina Feb 4, 2025
faae9cc
chore(timeseries charts): adjust legend width by padding (#32030)
eschutho Feb 3, 2025
deb88e4
fix: Local tarball Docker container is missing zstd dependency (#32135)
michael-s-molina Feb 4, 2025
92bc43e
fix: move oauth2 capture to `get_sqla_engine` (#32137)
betodealmeida Feb 4, 2025
923d076
fix(releasing): fix borked SVN-based image building process (#32151)
hainenber Feb 5, 2025
e67089b
fix(migrations): Handle no params in time comparison migration (#32155)
Antonio-RiveroMartnez Feb 5, 2025
50705e7
fix: ScreenshotCachePayload serialization (#32156)
betodealmeida Feb 6, 2025
cbebac9
fix(docker): Docker python-translation-build (#32163)
EmmanuelCbd Feb 6, 2025
8ad24fa
fix(virtual dataset sync): Sync virtual dataset columns when changing…
fisjac Feb 7, 2025
53d05a4
fix(sqllab): correct URL format for SQL Lab permalinks (#32154)
LevisNgigi Feb 7, 2025
ed82e6a
fix: Adds an entry to UPDATING.md about DISABLE_LEGACY_DATASOURCE_EDI…
michael-s-molina Feb 7, 2025
d83ae36
fix: TDengine move tdengine.png to databases/ subfolder (#32176)
DuanKuanJun Feb 7, 2025
9ea2ad5
fix: handlebars html and css templates reset on dataset update (#32195)
DamianPendrak Feb 10, 2025
000f2e3
fix: hidrate datasetsStatus (#32211)
betodealmeida Feb 11, 2025
8ba36ab
fix(SaveDatasetModal): repairs field alignment in the SaveDatasetModa…
EnxDev Feb 11, 2025
699d22c
fix: set `Rich tooltip` -> 'Show percentage' to false by default (#32…
mistercrunch Feb 11, 2025
8b1de4c
fix(sqllab): close the table tab (#32224)
justinpark Feb 11, 2025
c6e764e
fix(Scope): Correct issue where filters appear out of scope when sort…
LevisNgigi Feb 12, 2025
d0417c3
chore(ci): fix ephemeral env null issue number (#32220)
dpgaspar Feb 11, 2025
6b95ecd
chore(ci): fix ephemeral env null issue number (v2) (#32221)
dpgaspar Feb 11, 2025
e90b359
fix: Update 'Last modified' time when modifying RLS rules (#32227)
fardin-developer Feb 12, 2025
adce138
docs: adding notes about using uv instead of raw pip (#32239)
mistercrunch Feb 12, 2025
39859e0
fix: remove sort values on stacked totals (#31333)
eschutho Feb 13, 2025
4a298e8
fix: upgrade to 3.11.11-slim-bookworm to address critical vulnerabili…
gpchandran Feb 13, 2025
ed217ce
fix(Datasource): handle undefined datasource_type in fetchSyncedColum…
tahvane1 Feb 14, 2025
c7cc436
fix: Decimal values for Histogram bins (#32253)
michael-s-molina Feb 14, 2025
1463111
fix(viz/table): selected column not shown in Conditional Formatting p…
hainenber Feb 16, 2025
45045d3
fix: keep the tab order (#30888)
US579 Feb 19, 2025
2c03455
fix: Download as PDF fails due to cache error (#32332)
kgabryje Feb 20, 2025
e8246ea
fix: oauth2 trino (#31993)
aurokk Feb 20, 2025
b2bd39c
fix: revert "fix: remove sort values on stacked totals (#31333)" (#32…
eschutho Feb 21, 2025
7aa4cd4
fix(fe/dashboard-list): display modifier info for `Last modified` dat…
hainenber Feb 21, 2025
724f2dc
fix(roles): Add SqlLabPermalinkRestApi as default sqlab roles. (#32284)
LevisNgigi Feb 21, 2025
7ef38fe
fix(SSHTunnelForm): make the password tooltip visible (#32356)
EnxDev Feb 23, 2025
3eda222
fix(firebolt): allow backslach escape for single quotes (#32350)
betodealmeida Feb 24, 2025
98c82ad
fix(docker): Configure nginx for consistent port mapping and hot relo…
vedantprajapati Feb 24, 2025
09a93d2
fix: clickhouse-connect engine SSH parameter (#32348)
maybedino Feb 24, 2025
654062d
fix: ensure metric_macro expands templates (#32344)
betodealmeida Feb 24, 2025
ae3493a
fix: bump FAB to 4.5.4 (#32325)
dpgaspar Feb 25, 2025
d611c25
fix(pinot): revert join and subquery flags (#32382)
yuribogomolov Feb 25, 2025
b11fd2f
fix(viz): update nesting logic to handle multiple dimensions in Parti…
DamianPendrak Feb 28, 2025
8a09fd9
fix(clickhouse): get_parameters_from_uri failing when secure is true …
codenamelxl Feb 28, 2025
f129139
fix(com/grid-comp/markdown): pin `remark-gfm` to v3 to allow inline c…
hainenber Mar 1, 2025
92549ef
fix(plugin-chart-echarts): remove erroneous upper bound value (#32473)
villebro Mar 2, 2025
6dd10ab
fix(tooltip): displaying <a> tags correctly (#32488)
rusackas Mar 3, 2025
5f1a5a1
fix: skip DB filter when doing OAuth2 (#32486)
betodealmeida Mar 4, 2025
98c0eec
fix: dashboard, chart and dataset import validation (#32500)
dpgaspar Mar 5, 2025
266fb7f
fix(explore): Glitch in a tooltip with metric's name (#32499)
kgabryje Mar 5, 2025
d0a5bd8
fix(beat): prune_query celery task args fix (#32511)
Usiel Mar 6, 2025
405bc26
fix(Slack): Fix Slack recipients migration to V2 (#32336)
Vitor-Avila Mar 6, 2025
2df776e
fix: Show response message as default error (#32507)
eschutho Mar 6, 2025
d33b81a
fix: keep calculated columns when datasource is updated (#32523)
eschutho Mar 6, 2025
d493c9d
fix(migrations): Handle comparator None in old time comparison migrat…
Antonio-RiveroMartnez Mar 7, 2025
91ba5b3
fix(sqllab): Allow clear on schema and catalog (#32515)
justinpark Mar 7, 2025
586d88c
fix: add DateOffset to json serializer (#32532)
eschutho Mar 8, 2025
a032194
fix: Log table retention policy (#32572)
michael-s-molina Mar 10, 2025
bdb9f48
fix(Slack V2): Specify the filename for the Slack upload method (#32599)
Vitor-Avila Mar 11, 2025
2f9edd3
fix(dashboard): Support bigint value in native filters (#32549)
justinpark Mar 12, 2025
1f34e3c
fix(welcome): perf on distinct recent activities (#32608)
justinpark Mar 13, 2025
43e68c7
fix: Upgrade node base image to Debian 12 bookworm (#32652)
dolph Mar 13, 2025
45cf969
fix(dashboard): Ensure `dashboardId` is included in `form_data` for e…
mostopalove Mar 14, 2025
24c1201
fix(import): Import a DB connection with expanded rows enabled (#32657)
Vitor-Avila Mar 14, 2025
3f2ddba
fix(gsheets): update params from encrypted extra (#32661)
betodealmeida Mar 14, 2025
2ff9fab
fix: Update RELEASING/README.md (#32678)
michael-s-molina Mar 14, 2025
a1d7f7a
fix(log): Update recent_activity by event name (#32681)
justinpark Mar 17, 2025
d2ba0fc
fix: Signature of Celery pruner jobs (#32699)
michael-s-molina Mar 17, 2025
980d912
fix(cosmetics): allow toast message to be toggled off when modal is o…
hainenber Mar 17, 2025
30e3e2e
fix(spreadsheet uploads): make file extension comparisons case-insens…
sfirke Mar 17, 2025
9b8194f
fix: boolean filters in Explore (#32701)
betodealmeida Mar 17, 2025
4a18994
fix(logging): missing path in event data (#32708)
justinpark Mar 17, 2025
8ba265c
fix: coerce datetime conversion errors (#32683)
betodealmeida Mar 18, 2025
6119d79
fix(import): Ensure import exceptions are logged (#32410)
withnale Mar 18, 2025
6917362
fix: ensure datasource permission in explore (#32679)
hxtmdev Mar 18, 2025
f6f1ffa
fix(contextmenu): uncaught TypeError (#28203)
sowo Mar 19, 2025
4a7014b
fix: Changing language doesn't affect echarts charts (#31751)
jpchev Mar 19, 2025
5d333ac
fix: do not add calculated columns when syncing (#32761)
eschutho Mar 20, 2025
13b97af
fix(chart control): Change default of "Y Axis Title Margin" (#32720)
Quatters Mar 20, 2025
a6576a1
fix(sqllab): Pass query_id as kwarg so backoff can see it (#32774)
Antonio-RiveroMartnez Mar 20, 2025
a530da2
fix(import): Missing catalog field in saved query schema (#32775)
Quatters Mar 20, 2025
1c3c6db
fix(css): typos in styles (#28350)
Kukusik8 Mar 20, 2025
231d9a3
fix(config): correct slack image url in talisman (#32778)
v9dev Mar 21, 2025
59d03a3
fix(excel export): big number truncation handling (#32739)
CharlesNkdl Mar 21, 2025
e943604
fix(model/helper): represent RLS filter clause in proper textual SQL …
hainenber Mar 21, 2025
fd1e44b
fix(sec): resolve CVE-2025-29907 and CVE-2025-25977 by pinning `jspdf…
hainenber Mar 22, 2025
2bdfe52
fix: CSV/Excel upload form change column dates description (#32797)
SBIN2010 Mar 24, 2025
c070d9e
fix: key error in frontend on disallowed GSheets (#32792)
chrisvnimbus Mar 24, 2025
7ed2361
fix: Time Comparison Feature Reverts Metric Labels to Metric Keys in …
fardin-developer Mar 25, 2025
e593bc0
fix(log): store navigation path to get correct logging path (#32795)
justinpark Mar 25, 2025
ea3a823
fix(echarts): Sort series by name using naturalCompare (#32850)
Vitor-Avila Mar 26, 2025
c63a33e
fix: update dataset/query catalog on DB changes (#32829)
betodealmeida Mar 26, 2025
b5bb3c7
fix(translation): Dutch translations for Current datetime filter (#31…
christiaan Mar 26, 2025
34b4edb
fix(table-chart): Do not show comparison columns config if time_compa…
Vitor-Avila Mar 26, 2025
2e0363e
fix(ColorPickerControl): change color picker control width (#32851)
SBIN2010 Mar 26, 2025
2c6cdfe
fix: use role_model from security manager (#32873)
lohart13 Mar 27, 2025
56f6e11
fix(backend/async_events): allow user to configure username for Redis…
hainenber Mar 28, 2025
f27bf9e
fix(Jinja): Emit time grain to table charts even if they don't have a…
Vitor-Avila Mar 28, 2025
e4d3490
fix(sqllab): Invalid display of table column keys (#32763)
justinpark Mar 31, 2025
5bc3ca2
chore: Adds RC2 data to CHANGELOG.md
michael-s-molina Apr 1, 2025
766c795
chore(🦾): bump python sqlglot 26.1.3 -> 26.11.1 (#32745)
github-actions[bot] Mar 19, 2025
5620aca
fix: Clicking in the body of a Markdown component does not put it int…
notHuman9504 Apr 1, 2025
6a78260
fix(pivot-table): Revert "fix(Pivot Table): Fix column width to respe…
justinpark Apr 1, 2025
e756094
fix: fixed Add Metrics to Tree Chart (#29158) (#30679)
SBIN2010 Apr 2, 2025
4e8aa6d
fix: Bar Chart (legacy) migration to keep labels layout (#32965)
michael-s-molina Apr 3, 2025
1b60d36
fix: `show_filters` URL parameter is not working (#29422)
hexcafe Apr 3, 2025
052392e
fix(dashboard): chart fullscreen issue when filter pane is collapsed …
hlvhe Apr 4, 2025
8df4b6d
fix: fix bug where dashboard did not enter fullscreen mode. (#32839)
LevisNgigi Apr 7, 2025
ddecaa4
fix(log): Missing failed query log on async queries (#33024)
justinpark Apr 8, 2025
f85f3f8
fix(export): charts csv export in dashboards (#31720)
EmmanuelCbd Apr 8, 2025
e0e2d32
fix: improve error type on parse error (#33048)
justinpark Apr 9, 2025
d0355d5
fix: Adds missing __init__ file to commands/logs (#33059)
michael-s-molina Apr 9, 2025
1a1986a
fix(docker): fallback to pip if uv is not available (#33087)
hossein-khalilian Apr 10, 2025
65c9375
fix(dashboard): Generate screenshot via celery (#32193)
tahvane1 Apr 12, 2025
bf2e014
fix(thumbnails): ensure consistent cache_key (#33109)
hxtmdev Apr 12, 2025
d0aa633
fix: Allows configuration of Selenium Webdriver binary (#33103)
michael-s-molina Apr 14, 2025
65c7602
fix: resolve recent merge collisio (#33110)
mistercrunch Apr 12, 2025
4954133
fix: Bump FAB to 4.5.5
michael-s-molina Apr 14, 2025
0325581
fix(playwright): allow screenshotting empty dashboards (#33107)
hxtmdev Apr 14, 2025
0c80ab0
fix: Viz migration error handling (#33037)
michael-s-molina Apr 15, 2025
5e475ec
fix(dashboard): invalid active tab state (#33106)
justinpark Apr 15, 2025
aab564f
fix(lang): patch FAB's LocaleView to redirect to previous page (#31692)
pomegranited Apr 15, 2025
454397f
fix(echart): Tooltip date format doesn't follow time grain (#33138)
justinpark Apr 16, 2025
35d7e15
fix(echart): Thrown errors shown after resized (#33143)
justinpark Apr 17, 2025
d9c1ee6
fix: os.makedirs race condition (#33161)
jamra Apr 17, 2025
7c46374
fix(deckgl): Update Arc to properly adjust line width (#33154)
rusackas Apr 18, 2025
f4ea15e
fix(sqllab): Invalid SQL Error breaks SQL Lab (#33164)
justinpark Apr 18, 2025
84b437d
fix(export): Full CSV/Excel exports respecting SQL_MAX_ROW config (#3…
Vitor-Avila Apr 23, 2025
692d47c
fix(antd): Invalid dashed border in tertiary button (#33291)
justinpark Apr 30, 2025
5b178df
fix(standalone): Ensure correct URL param value for standalone mode (…
Vitor-Avila Apr 24, 2025
a3c08fd
fix(sqllab permalink): Commit SQL Lab permalinks (#33237)
Vitor-Avila Apr 25, 2025
a6895e0
fix(heatmap): correctly render int and boolean falsy values on axes (…
sfirke Apr 25, 2025
f8b0632
fix(DB update): Gracefully handle querry error during DB update (#33250)
Vitor-Avila Apr 25, 2025
850f35a
fix(histogram): remove extra single quotes (#33248)
rusackas Apr 25, 2025
f56757a
fix: LocalProxy is not mapped warning (#33025)
dpgaspar Apr 29, 2025
ee8edcf
fix: mask password on DB import (#33267)
betodealmeida Apr 29, 2025
8cc6f26
fix(echarts): rename time series shifted colnames (#33269)
justinpark Apr 30, 2025
ce6d0d5
fix: improve function detection (#33306)
betodealmeida May 1, 2025
7f57df5
fix: Temporal filter conversion in viz migrations (#33224)
michael-s-molina May 2, 2025
2f3658c
fix: Edge case with metric not getting quoted in sort by when normali…
Vitor-Avila May 3, 2025
aeb50c5
chore(🦾): bump python h11 0.14.0 -> 0.16.0 (#33339)
github-actions[bot] May 5, 2025
782e11b
fix(i18n): zh_TW pybabel compile error: placeholders are incompatible…
bestlong May 7, 2025
8ffcd7e
fix(be/utils): sync cache timeout for memoized function (#31917)
hainenber May 7, 2025
602208d
fix: loading examples from raw.githubusercontent.com fails with 429 e…
mistercrunch May 5, 2025
cd12f30
fix(Row): don't unload charts while embedded to reduce rerenders (#33…
msyavuz May 13, 2025
6bdfb7a
fix(deckgl): fix deckgl multiple layers chart filter and viewport (#3…
syedbarimanjan May 14, 2025
c54778d
fix(table-chart): time shift is not working (#33425)
justinpark May 14, 2025
ec2b168
fix: allow metadata to parse json (#33444)
eschutho May 16, 2025
a86a156
fix(Sqllab): Autocomplete got stuck in UI when open it too fast (#33…
rebenitez1802 May 20, 2025
405fcfc
fix(table): table sort by fix (#33540)
amaannawab923 May 21, 2025
979e3a2
fix(user settings): Update forked cosmo theme to resolve down chevron…
mklumpen May 21, 2025
8021a8c
fix(AllEntities): Display action buttons according to the user permis…
Vitor-Avila May 22, 2025
685b259
fix(sankey): incorrect nodeValues (#33431)
richardfogaca May 23, 2025
cfba5cd
fix: Adjust viz migrations to also migrate the queries object (#33285)
luizotavio32 May 26, 2025
00cd069
fix: Missing processor context when rendering Jinja (#33596)
michael-s-molina May 27, 2025
f9ff325
fix: Makes time compare migration more resilient (#33592)
michael-s-molina May 27, 2025
a5f0b24
chore: Adds RC3 data to CHANGELOG.md
michael-s-molina May 28, 2025
96298a0
chore: update Dockerfile - Upgrade to 3.11.12 (#33612)
gpchandran May 29, 2025
e83ac1d
fix: Migrate charts with empty query_context (#33710)
luizotavio32 Jun 9, 2025
e5c6d3e
feat(api): Added uuid to list api calls (#32414)
withnale Mar 6, 2025
94369ca
fix(template_processing): get_filters now works for IS_NULL and IS_NO…
Prokos Jun 5, 2025
77d1849
fix(dashboard): show dashboard thumbnail images when retrieved (#33726)
rad-pat Jun 9, 2025
be13950
fix(Alerts & reports): invalid "Last updated" time formatting (#33719)
Quatters Jun 9, 2025
24ec0c8
fix(explore): add gap to the "Cached" button (#33717)
Quatters Jun 11, 2025
cbbf335
fix(dataset): Fix plural toast messages (#33743)
rad-pat Jun 11, 2025
715fe6f
fix: sync dot color between dashboard chart and edit chart (#33748)
anantaoutlook Jun 12, 2025
4f1ea35
fix(create chart page): add missing space between words (#33752)
Quatters Jun 12, 2025
cdbdaf4
fix: apply d3 format to BigNumber(s) (#33759)
betodealmeida Jun 12, 2025
ad10abd
fix(tooltip): Sanitize tooltip html (#33765)
msyavuz Jun 14, 2025
cff2ce0
build: update Dockerfile to 3.11.13-slim-bookworm (#33745)
gpchandran Jun 15, 2025
9a6261b
fix(Echarts): Echarts Legend Scroll fix (#33779)
amaannawab923 Jun 16, 2025
f906adb
fix: SQL Lab warning message sizes (#33817)
michael-s-molina Jun 18, 2025
465e2a9
chore: Adds RC4 data to CHANGELOG.md
michael-s-molina Jun 18, 2025
dbb0c2c
Set browser tab title to chart name in explore view
RamdathDylan Oct 20, 2025
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
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ updates:

- package-ecosystem: "npm"
directory: "/superset-frontend/packages/superset-ui-core/"
ignore:
# not until React >= 18.0.0
- dependency-name: "react-markdown"
- dependency-name: "remark-gfm"
schedule:
interval: "monthly"
labels:
Expand Down
67 changes: 51 additions & 16 deletions .github/workflows/ephemeral-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,45 @@ jobs:
echo "result=up" >> $GITHUB_OUTPUT
else
echo "result=noop" >> $GITHUB_OUTPUT
exit 1
fi

- name: Get event SHA
id: get-sha
run: |
echo "sha=${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT
if: steps.eval-label.outputs.result == 'up'
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
let prSha;

// If event is workflow_dispatch, use the issue_number from inputs
if (context.eventName === "workflow_dispatch") {
const prNumber = "${{ github.event.inputs.issue_number }}";
if (!prNumber) {
console.log("No PR number found.");
return;
}

// Fetch PR details using the provided issue_number
const { data: pr } = await github.rest.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: prNumber
});

prSha = pr.head.sha;
} else {
// If it's not workflow_dispatch, use the PR head sha from the event
prSha = context.payload.pull_request.head.sha;
}

console.log(`PR SHA: ${prSha}`);
core.setOutput("sha", prSha);

- name: Looking for feature flags in PR description
uses: actions/github-script@v7
id: eval-feature-flags
if: steps.eval-label.outputs.result == 'up'
with:
script: |
const description = context.payload.pull_request
Expand All @@ -81,6 +109,7 @@ jobs:

- name: Reply with confirmation comment
uses: actions/github-script@v7
if: steps.eval-label.outputs.result == 'up'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down Expand Up @@ -161,8 +190,9 @@ jobs:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: superset-ci
IMAGE_TAG: apache/superset:${{ needs.ephemeral-env-label.outputs.sha }}-ci
PR_NUMBER: ${{ github.event.inputs.issue_number || github.event.pull_request.number }}
run: |
docker tag $IMAGE_TAG $ECR_REGISTRY/$ECR_REPOSITORY:pr-${{ github.event.inputs.issue_number || github.event.issue.number }}-ci
docker tag $IMAGE_TAG $ECR_REGISTRY/$ECR_REPOSITORY:pr-$PR_NUMBER-ci
docker push -a $ECR_REGISTRY/$ECR_REPOSITORY

ephemeral-env-up:
Expand Down Expand Up @@ -193,11 +223,13 @@ jobs:
- name: Check target image exists in ECR
id: check-image
continue-on-error: true
env:
PR_NUMBER: ${{ github.event.inputs.issue_number || github.event.pull_request.number }}
run: |
aws ecr describe-images \
--registry-id $(echo "${{ steps.login-ecr.outputs.registry }}" | grep -Eo "^[0-9]+") \
--repository-name superset-ci \
--image-ids imageTag=pr-${{ github.event.inputs.issue_number || github.event.issue.number }}-ci
--image-ids imageTag=pr-$PR_NUMBER-ci

- name: Fail on missing container image
if: steps.check-image.outcome == 'failure'
Expand All @@ -207,7 +239,7 @@ jobs:
script: |
const errMsg = '@${{ github.event.comment.user.login }} Container image not yet published for this PR. Please try again when build is complete.';
github.rest.issues.createComment({
issue_number: ${{ github.event.inputs.issue_number || github.event.issue.number }},
issue_number: ${{ github.event.inputs.issue_number || github.event.pull_request.number }},
owner: context.repo.owner,
repo: context.repo.repo,
body: errMsg
Expand All @@ -220,7 +252,7 @@ jobs:
with:
task-definition: .github/workflows/ecs-task-definition.json
container-name: superset-ci
image: ${{ steps.login-ecr.outputs.registry }}/superset-ci:pr-${{ github.event.inputs.issue_number || github.event.issue.number }}-ci
image: ${{ steps.login-ecr.outputs.registry }}/superset-ci:pr-${{ github.event.inputs.issue_number || github.event.pull_request.number }}-ci

- name: Update env vars in the Amazon ECS task definition
run: |
Expand All @@ -229,37 +261,38 @@ jobs:
- name: Describe ECS service
id: describe-services
run: |
echo "active=$(aws ecs describe-services --cluster superset-ci --services pr-${{ github.event.inputs.issue_number || github.event.issue.number }}-service | jq '.services[] | select(.status == "ACTIVE") | any')" >> $GITHUB_OUTPUT
echo "active=$(aws ecs describe-services --cluster superset-ci --services pr-${{ github.event.inputs.issue_number || github.event.pull_request.number }}-service | jq '.services[] | select(.status == "ACTIVE") | any')" >> $GITHUB_OUTPUT
- name: Create ECS service
id: create-service
if: steps.describe-services.outputs.active != 'true'
env:
ECR_SUBNETS: subnet-0e15a5034b4121710,subnet-0e8efef4a72224974
ECR_SECURITY_GROUP: sg-092ff3a6ae0574d91
PR_NUMBER: ${{ github.event.inputs.issue_number || github.event.pull_request.number }}
run: |
aws ecs create-service \
--cluster superset-ci \
--service-name pr-${{ github.event.inputs.issue_number || github.event.issue.number }}-service \
--service-name pr-$PR_NUMBER-service \
--task-definition superset-ci \
--launch-type FARGATE \
--desired-count 1 \
--platform-version LATEST \
--network-configuration "awsvpcConfiguration={subnets=[$ECR_SUBNETS],securityGroups=[$ECR_SECURITY_GROUP],assignPublicIp=ENABLED}" \
--tags key=pr,value=${{ github.event.inputs.issue_number || github.event.issue.number }} key=github_user,value=${{ github.actor }}
--tags key=pr,value=$PR_NUMBER key=github_user,value=${{ github.actor }}
- name: Deploy Amazon ECS task definition
id: deploy-task
uses: aws-actions/amazon-ecs-deploy-task-definition@v2
with:
task-definition: ${{ steps.task-def.outputs.task-definition }}
service: pr-${{ github.event.inputs.issue_number || github.event.issue.number }}-service
service: pr-${{ github.event.inputs.issue_number || github.event.pull_request.number }}-service
cluster: superset-ci
wait-for-service-stability: true
wait-for-minutes: 10

- name: List tasks
id: list-tasks
run: |
echo "task=$(aws ecs list-tasks --cluster superset-ci --service-name pr-${{ github.event.inputs.issue_number || github.event.issue.number }}-service | jq '.taskArns | first')" >> $GITHUB_OUTPUT
echo "task=$(aws ecs list-tasks --cluster superset-ci --service-name pr-${{ github.event.inputs.issue_number || github.event.pull_request.number }}-service | jq '.taskArns | first')" >> $GITHUB_OUTPUT
- name: Get network interface
id: get-eni
run: |
Expand All @@ -274,20 +307,22 @@ jobs:
with:
github-token: ${{github.token}}
script: |
const issue_number = context.payload.inputs?.issue_number || context.issue.number;
github.rest.issues.createComment({
issue_number: ${{ github.event.inputs.issue_number || github.event.issue.number }},
issue_number: issue_number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '@${{ github.actor }} Ephemeral environment spinning up at http://${{ steps.get-ip.outputs.ip }}:8080. Credentials are `admin`/`admin`. Please allow several minutes for bootstrapping and startup.'
})
body: `@${{ github.actor }} Ephemeral environment spinning up at http://${{ steps.get-ip.outputs.ip }}:8080. Credentials are 'admin'/'admin'. Please allow several minutes for bootstrapping and startup.`
});
- name: Comment (failure)
if: ${{ failure() }}
uses: actions/github-script@v7
with:
github-token: ${{github.token}}
script: |
const issue_number = context.payload.inputs?.issue_number || context.issue.number;
github.rest.issues.createComment({
issue_number: ${{ github.event.inputs.issue_number || github.event.issue.number }},
issue_number: issue_number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '@${{ github.event.inputs.user_login || github.event.comment.user.login }} Ephemeral environment creation failed. Please check the Actions logs for details.'
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ under the License.
- [4.0.1](./CHANGELOG/4.0.1.md)
- [4.0.2](./CHANGELOG/4.0.2.md)
- [4.1.0](./CHANGELOG/4.1.0.md)
- [5.0.0](./CHANGELOG/5.0.0.md)
Loading