-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into sagerb-remove-old-vsc…
…ode-ui-tests
- Loading branch information
Showing
43 changed files
with
7,319 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
extensions/vscode/webviews/homeView/src/components/views/Credentials.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
extensions/vscode/webviews/homeView/src/components/views/HelpAndFeedback.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"*.{js,ts}": ["eslint --fix", "prettier --write"], | ||
"!*.{js,ts}": "prettier --write --ignore-unknown" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Defines an image that installs connect-manager and a Connect DEB | ||
# The Connect host to be used as the publishing target. | ||
|
||
FROM ubuntu:22.04 AS e2e-publisher-connect | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
ARG R_VERSION=4.3.0 | ||
ARG R_REPOSITORY=https://packagemanager.posit.co/cran/__linux__/jammy/latest | ||
ARG PYTHON_VERSION=3.11.3 | ||
ARG CONNECT_MANAGER_VERSION=0.5.1 | ||
RUN export TZ=America/New_York | ||
|
||
# Install prerequisites | ||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
xz-utils | ||
|
||
# Install Python | ||
ADD https://astral.sh/uv/0.5.29/install.sh /uv-installer.sh | ||
RUN sh /uv-installer.sh && rm /uv-installer.sh | ||
ENV PATH="/root/.local/bin/:$PATH" | ||
RUN UV_PYTHON_INSTALL_DIR=/opt/python uv python install ${PYTHON_VERSION} | ||
|
||
# Install R | ||
RUN curl -O https://cdn.rstudio.com/r/ubuntu-2204/pkgs/r-${R_VERSION}_1_amd64.deb | ||
RUN apt-get install -y ./r-${R_VERSION}_1_amd64.deb | ||
|
||
WORKDIR /opt/connect-manager | ||
|
||
RUN curl -fsSL "https://cdn.rstudio.com/connect/connect-manager/${CONNECT_MANAGER_VERSION}/connect-manager-${CONNECT_MANAGER_VERSION}.tar.xz" | tar --strip-components=1 -xvJf - | ||
|
||
RUN tar \ | ||
--strip-components=1 \ | ||
--exclude=PKG-INFO \ | ||
--exclude=README.md \ | ||
--exclude='*.egg-info' \ | ||
--exclude='setup.*' \ | ||
-xzvf connect-manager-*.tar.gz | ||
|
||
RUN rm -f \ | ||
connect-manager-client-*.tar.gz \ | ||
connect_manager_client-*.whl | ||
|
||
# Pull and Install Connect .deb | ||
RUN curl -O https://cdn.posit.co/connect/2024.12/rstudio-connect_2024.12.0~ubuntu22_amd64.deb | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y ./rstudio-connect_2024.12.0~ubuntu22_amd64.deb \ | ||
&& rm -rf rstudio-connect_2024.12.0~ubuntu22_amd64.deb \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Copy Connect config | ||
COPY test/e2e/config/connect.gcfg /etc/rstudio-connect/rstudio-connect.gcfg | ||
|
||
# Copy Bootstrap Key | ||
COPY test/e2e/bootstrap-secret.key /etc/rstudio-connect/bootstrap-secret.key | ||
|
||
ENV CONNECT_LICENSE ${CONNECT_LICENSE} | ||
|
||
CMD [ "/opt/connect-manager/connect-manager", \ | ||
"--start-connect", \ | ||
"--connect-binary", "/opt/rstudio-connect/bin/connect", \ | ||
"--connect-user", "rstudio-connect", \ | ||
"--license-manager-binary", "/opt/rstudio-connect/bin/license-manager", \ | ||
"--connect-log", "/var/log/rstudio/rstudio-connect/rstudio-connect.log", \ | ||
"--manager-log", "/var/log/rstudio/rstudio-connect/connect-manager.log", \ | ||
"--connect-config-prefix", "/etc/rstudio-connect", \ | ||
"--connect-config", "rstudio-connect.gcfg", \ | ||
"--manager-port", "4723" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM cypress/browsers:node-18.20.3-chrome-125.0.6422.141-1-ff-126.0.1-edge-125.0.2535.85-1 | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
RUN npm ci | ||
|
||
ENV PATH /app/node_modules/.bin:$PATH | ||
|
||
WORKDIR /app/e2e | ||
|
||
CMD ["cypress", "run"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Defines an image that installs code-server and the Publisher extension to it | ||
|
||
FROM codercom/code-server:39 AS code-server | ||
|
||
WORKDIR /home/coder/workspace | ||
|
||
ENTRYPOINT ["/home/coder/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bz/Y5QqRA8s1wn5hk86eSyFoQoovxmt1PwF3/E5P6wo= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
# Get the latest linux-amd64 build | ||
VSIX_FILENAME=$(ls -Art /home/coder/vsix | grep linux-amd64 | tail -n 1) | ||
|
||
# Install the Publisher extension | ||
code-server --install-extension "/home/coder/vsix/${VSIX_FILENAME}" | ||
|
||
# Custom vscode User settings, avoid setup wizards | ||
# echo > /home/coder/.local/share/code-server/User/settings.json | ||
cat <<EOF > /home/coder/.local/share/code-server/User/settings.json | ||
{ | ||
"remote.autoForwardPortsSource": "hybrid", | ||
"workbench.settings.applyToAllProfiles": [], | ||
"workbench.startupEditor": "none", | ||
"window.restoreWindows": "none", | ||
"files.hotExit": "off" | ||
} | ||
EOF | ||
|
||
# Run the original code server entrypoint that starts the service | ||
/usr/bin/entrypoint.sh --disable-workspace-trust --auth none --bind-addr 0.0.0.0:8080 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
; Posit test/e2e configuration | ||
|
||
[Server] | ||
Address = http://localhost:3939/ | ||
SenderEmail = [email protected] | ||
EmailProvider = print | ||
DataDir = /var/lib/rstudio-connect | ||
AllowConfirmedUsers = true | ||
JumpStartEnabled = false | ||
|
||
[Bootstrap] | ||
Enabled = true | ||
SecretKeyFile = /etc/rstudio-connect/bootstrap-secret.key | ||
|
||
[SQLite] | ||
Backup = false | ||
ForeignKeyConstraints = true | ||
|
||
[HTTP] | ||
Listen = :3939 | ||
NoWarning = true | ||
|
||
[Authentication] | ||
Provider = password | ||
InsecureDefaultUserAPIKey = true | ||
APIKeyBcryptCost = 4 | ||
|
||
[Python] | ||
Enabled = true | ||
Executable = /opt/python/cpython-3.11.3-linux-x86_64-gnu/bin/python3.11 | ||
EnvironmentManagement = false | ||
|
||
[Metrics] | ||
Enabled = false | ||
|
||
[RPackageRepository "CRAN"] | ||
URL = "https://packagemanager.posit.co/cran/__linux__/jammy/latest" | ||
|
||
[R] | ||
EnvironmentManagement = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// This is a config file for the `wait-on` package. | ||
// Used by the `startConnect` Cypress command. | ||
module.exports = { | ||
// Connect will respond with a 402 status code when the license is invalid. | ||
// We want to allow Connect to load in that case. | ||
validateStatus: function (status) { | ||
return (status >= 200 && status < 300) || status == 402; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
source("renv/activate.R") |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Another | ||
|
||
Here is another page. It links to [index](index.html) and [article](article.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Article | ||
|
||
This is an article. It has a link to [index](index.html) and [another](another.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# R Markdown site | ||
|
||
This is the index page. It has a link to [article](article.html) and [another](another.html). |
Oops, something went wrong.