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

build(deps): bump actions/checkout from 3 to 4 #1099

Closed
2 changes: 1 addition & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true && (github.event_name != 'labeled' || startsWith('backport', github.event.label.name))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Create backport PRs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/basic-eval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
# we don't limit this action to only NixOS repo since the checks are cheap and useful developer feedback
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v20
- uses: cachix/cachix-action@v12
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-maintainers-sorted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
if: github.repository_owner == 'NixOS'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/editorconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: print list of changed files
run: |
cat "$HOME/changed_files"
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual-nixos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
if: github.repository_owner == 'NixOS'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual-nixpkgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
if: github.repository_owner == 'NixOS'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual-rendering.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
if: github.repository_owner == 'NixOS'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v20
with:
# explicitly enable sandbox
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/periodic-merge-24h.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
into: staging-22.11
name: ${{ matrix.pairs.from }} → ${{ matrix.pairs.into }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: ${{ matrix.pairs.from }} → ${{ matrix.pairs.into }}
uses: devmasx/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/periodic-merge-6h.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
into: staging
name: ${{ matrix.pairs.from }} → ${{ matrix.pairs.into }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: ${{ matrix.pairs.from }} → ${{ matrix.pairs.into }}
uses: devmasx/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-terraform-providers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
if: github.repository_owner == 'NixOS' && github.ref == 'refs/heads/master' # ensure workflow_dispatch only runs on master
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/security/pam.nix
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ let
] ++ optional cfg.ttyAudit.openOnly "open_only"
++ optional (cfg.ttyAudit.enablePattern != null) "enable=${cfg.ttyAudit.enablePattern}"
++ optional (cfg.ttyAudit.disablePattern != null) "disable=${cfg.ttyAudit.disablePattern}"
)) +
) + "\n") +
optionalString config.services.homed.enable ''
session required ${config.systemd.package}/lib/security/pam_systemd_home.so
'' +
Expand Down
12 changes: 10 additions & 2 deletions nixos/modules/services/misc/gitlab.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ let
prometheus_listen_addr = "localhost:9236"

[git]
bin_path = "${pkgs.git}/bin/git"
bin_path = "${cfg.packages.git}/bin/git"

[gitlab-shell]
dir = "${cfg.packages.gitlab-shell}"
Expand Down Expand Up @@ -258,6 +258,14 @@ in {
'';
};

packages.git = mkOption {
type = types.package;
default = pkgs.git;
defaultText = literalExpression "pkgs.git";
description = lib.mdDoc "Reference to the git package";
example = literalExpression "pkgs.git";
};

packages.gitlab = mkOption {
type = types.package;
default = pkgs.gitlab;
Expand Down Expand Up @@ -1125,7 +1133,7 @@ in {
}
];

environment.systemPackages = [ pkgs.git gitlab-rake gitlab-rails cfg.packages.gitlab-shell ];
environment.systemPackages = [ cfg.packages.git gitlab-rake gitlab-rails cfg.packages.gitlab-shell ];

systemd.targets.gitlab = {
description = "Common target for all GitLab services.";
Expand Down
7 changes: 5 additions & 2 deletions pkgs/development/python-modules/batchspawner/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, buildPythonPackage
, fetchFromGitHub
, jupyterhub
, packaging
, pythonOlder
}:

Expand All @@ -21,6 +22,7 @@ buildPythonPackage rec {

propagatedBuildInputs = [
jupyterhub
packaging
];

# Tests require a job scheduler e.g. slurm, pbs, etc.
Expand All @@ -32,8 +34,9 @@ buildPythonPackage rec {

meta = with lib; {
description = "A spawner for Jupyterhub to spawn notebooks using batch resource managers";
homepage = "https://jupyter.org";
homepage = "https://github.com/jupyterhub/batchspawner";
changelog = "https://github.com/jupyterhub/batchspawner/blob/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ ];
};
}
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
{ lib
, bash
, buildPythonPackage
, fetchFromGitHub
, jupyterhub
, pythonOlder
, tornado
, bash
}:

buildPythonPackage rec {
pname = "jupyterhub-systemdspawner";
version = "0.15";
version = "1.0.1";
format = "setuptools";

disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "jupyterhub";
repo = "systemdspawner";
rev = "v${version}";
hash = "sha256-EUCA+CKCeYr+cLVrqTqe3Q32JkbqeALL6tfOnlVHk8Q=";
rev = "refs/tags/v${version}";
hash = "sha256-2Pxswa472umovHBUVTIX1l+Glj6bzzgBLsu+p4IA6jA=";
};

propagatedBuildInputs = [
jupyterhub
tornado
];

buildInputs = [ bash ];

postPatch = ''
substituteInPlace systemdspawner/systemd.py \
--replace "/bin/bash" "${bash}/bin/bash"
Expand All @@ -32,7 +29,16 @@ buildPythonPackage rec {
--replace "/bin/bash" "${bash}/bin/bash"
'';

# no tests
buildInputs = [
bash
];

propagatedBuildInputs = [
jupyterhub
tornado
];

# Module has no tests
doCheck = false;

postInstall = ''
Expand All @@ -41,9 +47,14 @@ buildPythonPackage rec {
patchShebangs $out/bin
'';

pythonImportsCheck = [
"systemdspawner"
];

meta = with lib; {
description = "JupyterHub Spawner using systemd for resource isolation";
homepage = "https://github.com/jupyterhub/systemdspawner";
changelog = "https://github.com/jupyterhub/systemdspawner/blob/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ costrouc ];
};
Expand Down
81 changes: 62 additions & 19 deletions pkgs/development/python-modules/jupyterhub/default.nix
Original file line number Diff line number Diff line change
@@ -1,30 +1,38 @@
{ lib
, stdenv
, buildPythonPackage
, pythonOlder
, fetchPypi
, fetchzip
, alembic
, async_generator
, beautifulsoup4
, buildPythonPackage
, certipy
, python-dateutil
, cryptography
, entrypoints
, fetchPypi
, fetchzip
, importlib-metadata
, jinja2
, jsonschema
, jupyter-telemetry
, jupyterlab
, mock
, nbclassic
, nodePackages
, notebook
, oauthlib
, packaging
, pamela
, playwright
, prometheus-client
, pytest-asyncio
, pytestCheckHook
, python-dateutil
, pythonOlder
, requests
, requests-mock
, selenium
, sqlalchemy
, tornado
, traitlets
, nodePackages
, beautifulsoup4
, cryptography
, notebook
, pytest-asyncio
, pytestCheckHook
, requests-mock
, virtualenv
}:

Expand Down Expand Up @@ -61,12 +69,14 @@ in

buildPythonPackage rec {
pname = "jupyterhub";
version = "1.5.0";
disabled = pythonOlder "3.6";
version = "4.0.1";
format = "setuptools";

disabled = pythonOlder "3.7";

src = fetchPypi {
inherit pname version;
hash = "sha256-3GGPZXwjukYoDjYlflCTGAZnS6Dp5kmK+wke/GIm1p0=";
hash = "sha256-jig/9Z5cQBZxIHfSVJ7XSs2RWjKDb+ACGGeKh4G9ft4=";
};

# Most of this only applies when building from source (e.g. js/css assets are
Expand Down Expand Up @@ -111,21 +121,25 @@ buildPythonPackage rec {
'';

propagatedBuildInputs = [
# https://github.com/jupyterhub/jupyterhub/blob/master/requirements.txt
alembic
async_generator
certipy
python-dateutil
entrypoints
jinja2
jupyter-telemetry
jupyterlab
oauthlib
packaging
pamela
prometheus-client
requests
selenium
sqlalchemy
tornado
traitlets
] ++ lib.optionals (pythonOlder "3.10") [
importlib-metadata
];

preCheck = ''
Expand All @@ -134,10 +148,14 @@ buildPythonPackage rec {
'';

nativeCheckInputs = [
# https://github.com/jupyterhub/jupyterhub/blob/master/dev-requirements.txt
beautifulsoup4
cryptography
notebook
jsonschema
nbclassic
mock
jupyterlab
playwright
pytest-asyncio
pytestCheckHook
requests-mock
Expand All @@ -151,14 +169,39 @@ buildPythonPackage rec {
"test_external_service"
# attempts to do ssl connection
"test_connection_notebook_wrong_certs"
# AttributeError: 'coroutine' object...
"test_valid_events"
"test_invalid_events"
"test_user_group_roles"
];

disabledTestPaths = [
# Not testing with a running instance
# AttributeError: 'coroutine' object has no attribute 'db'
"docs/test_docs.py"
"jupyterhub/tests/browser/test_browser.py"
"jupyterhub/tests/test_api.py"
"jupyterhub/tests/test_auth_expiry.py"
"jupyterhub/tests/test_auth.py"
"jupyterhub/tests/test_metrics.py"
"jupyterhub/tests/test_named_servers.py"
"jupyterhub/tests/test_orm.py"
"jupyterhub/tests/test_pages.py"
"jupyterhub/tests/test_proxy.py"
"jupyterhub/tests/test_scopes.py"
"jupyterhub/tests/test_services_auth.py"
"jupyterhub/tests/test_singleuser.py"
"jupyterhub/tests/test_spawner.py"
"jupyterhub/tests/test_user.py"
];

meta = with lib; {
broken = lib.versionAtLeast sqlalchemy.version "2.0";
description = "Serves multiple Jupyter notebook instances";
homepage = "https://jupyter.org/";
changelog = "https://github.com/jupyterhub/jupyterhub/blob/${version}/docs/source/changelog.md";
changelog = "https://github.com/jupyterhub/jupyterhub/blob/${version}/docs/source/reference/changelog.md";
license = licenses.bsd3;
maintainers = with maintainers; [ ixxie cstrahan ];
# darwin: E OSError: dlopen(/nix/store/43zml0mlr17r5jsagxr00xxx91hz9lky-openpam-20170430/lib/libpam.so, 6): image not found
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
};
}
Loading