Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/release_24.0' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed May 21, 2024
2 parents e796826 + 37551f5 commit d6d3aa5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions doc/source/dev/create_release.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Creating Galaxy Releases
========================

The "main" release process is an interactive checklist with instructions (see `Publication of Galaxy Release v 23.2 https://github.com/galaxyproject/galaxy/issues/16742>`_ for an example).
The "main" release process is an interactive checklist with instructions (see `Publication of Galaxy Release v 23.2 <https://github.com/galaxyproject/galaxy/issues/16742>`_ for an example).
This issue is generated via `make release-issue`.
The final result of the release process are

Expand All @@ -24,7 +24,7 @@ The command is shipped with the `galaxy-release-util <https://pypi.org/project/g
- stage and commit all changes
- create a new tag,
- (intelligently) merge forward changes to newer release branches and dev
- push changes to the repo identified by `--upstream` (defaults to https://github.com/galaxyporject/galaxy.git/)
- push changes to the repo identified by `--upstream` (defaults to https://github.com/galaxyproject/galaxy.git/)

The script has 2 important arguments:

Expand Down
4 changes: 2 additions & 2 deletions lib/galaxy/datatypes/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ def estimate_file_lines(self, dataset: DatasetProtocol) -> Optional[int]:
sample_lines = dataset_read.count("\n")
return int(sample_lines * (float(dataset.get_size()) / float(sample_size)))
except UnicodeDecodeError:
log.error(f"Unable to estimate lines in file {dataset.get_file_name()}")
log.warning(f"Unable to estimate lines in file {dataset.get_file_name()}, likely not a text file.")
return None

def count_data_lines(self, dataset: HasFileName) -> Optional[int]:
Expand All @@ -1069,7 +1069,7 @@ def count_data_lines(self, dataset: HasFileName) -> Optional[int]:
if line and not line.startswith("#"):
data_lines += 1
except UnicodeDecodeError:
log.error(f"Unable to count lines in file {dataset.get_file_name()}")
log.warning(f"Unable to count lines in file {dataset.get_file_name()}, likely not a text file.")
return None
return data_lines

Expand Down
9 changes: 8 additions & 1 deletion lib/galaxy/jobs/runners/drmaa.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,14 @@ def stop_job(self, job_wrapper):
commands.execute(cmd)
log.info(f"({job.id}/{ext_id}) Removed from DRM queue at user's request")
except drmaa.InvalidJobException:
log.exception(f"({job.id}/{ext_id}) User killed running job, but it was already dead")
log.warning(f"({job.id}/{ext_id}) User killed running job, but it was already dead")
except drmaa.InternalException as e:
if "already completing or completed" in str(e):
log.warning(f"({job.id}/{ext_id}) User killed running job, but job already terminal in DRM queue")
else:
log.exception(
f"({job.id}/{ext_id}) User killed running job, but error encountered removing from DRM queue"
)
except commands.CommandLineException as e:
log.error(f"({job.id}/{ext_id}) User killed running job, but command execution failed: {unicodify(e)}")
except Exception:
Expand Down

0 comments on commit d6d3aa5

Please sign in to comment.